Skip to main content

Curses Tree Style Path Picker

Project description

CURSES TREE STYLE PATH PICKER

A Curses based, Tree style, Path Picker. For use as a terminal based file dialog library.

img

  • Pre-order file system traversal from a given point, or $PWD if not specified.
  • Expand or collapse child nodes one at a time or all at once.
  • Recursively get disk usage of a single node or all expanded nodes.
  • Toggle display of dotfiles.
  • Toggle marking of files that can then be piped into another program or simply echoed back to the screen upon exit.
  • Reset marking and expansion.
USAGE: treepick.py [-h] [-a] [path]

Select paths from a directory tree.

POSITIONAL ARGUMENTS:
path          A valid path.

OPTIONAL ARGUMENTS:
-h, --help    Show this help message and exit.
-a, --hidden  Show all hidden paths too.

KEYBINDINGS

Key Action
UP, k, p Go up one line.
DOWN, j, n Go down one line.
RIGHT, l, f Expand child node, and move down one line (into child).
LEFT, h, b Collapse child node.
Tab Toggle expansion/collapse of child node.
PGDN, d, v Move down a page of lines at a time.
PGUP, V, u Move up a page of lines at a time.
J, N Move to next child node, of parent. (needs some TLC!)
K, P Move to parent node. (also currently pretty broken!)
g, < Move to first line.
G, > Move to last line.
m, SPC, RET Toggle marking of paths.
. Toggle display of dotfiles.
s Display total size of path, recursively
S Display, totol size of all currently expanded paths.
r Reset marking and expansion.
q, e, ESC Quit and display all marked paths.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

treepick-0.0.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

treepick-0.0.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file treepick-0.0.3.tar.gz.

File metadata

  • Download URL: treepick-0.0.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for treepick-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f0d9da7a35990ff26bc7f418ca7f05a404ce6ac0841aee42a107226d15593984
MD5 17d1e30d145e2a67a7853e29f2040562
BLAKE2b-256 74661774ef42094d53b450d8d8ab6184f221f93117b50f862cec9cc1d0a0e412

See more details on using hashes here.

File details

Details for the file treepick-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for treepick-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c15220bc11cf6c15d746facf0e282690bff0d594d84baffc5f0c0b5095773f1d
MD5 b81caae1f9935b4e758ec7adaeccb333
BLAKE2b-256 ebcdae2a98c43004aafc737f280e1490daa2a18a5c89993a7ef343180afdf376

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page