#tree #tui #file-tree #root-directory

app treest

Visually explore a file tree

1 unstable release

0.2.2 Jun 24, 2023

#1466 in Filesystem

44 downloads per month

MIT license

175KB
4.5K SLoC

Treest

Stateful tree view of a root directory.

./screenshot.png

Getting Started

This project uses cargo:

$ cargo install --path .
$ treest --help
Visually explore a file tree.

Usage: treest [OPTIONS] [PATH]

Arguments:
  [PATH]  path to open at, defaults to current directory

Options:
  -x, --clearstate           do not load any existing state for this path
  -u, --userconf <USERCONF>  use specified config instead of any existing default ($HOME/.config/treest)
      --clean                do not use any config
  -h, --help                 Print help
  -V, --version              Print version

Config

When invoked, treest :sources the given file (with -u) or $HOME/.config/treest by default. An example might look like:

sort extension dirs-first
filter add dotfiles
filter add file .gitignore
filter add file .ignore
bind <C-h> seq 'filter toggle dotfiles' 'filter toggle file .gitignore' 'filter toggle file .ignore'
bind <C-l> reload

(see mine here)

To see a list of existing commands use :help, for help on a specific command use :help <command-name>.

Dependencies

~5–14MB
~155K SLoC