Interactive tree command for file system navigation.
go >= 1.11
- Clone the repository
git clone https://github.com/lobocv/itree
- Install itree
sudo ./install.sh
Once installed, usaging itree is simple, just type itree and an interactive tree navigator will open up in your current terminal.
itree
Press ESC
, q
or CTRL+C
to exit.
Use your arrow keys to easily navigate the directory tree starting from your current directory. itree will change to the directory in which you navigate to when you exit itree.
Without installation you must compile the go binary and call itree as following:
go build itree.go
eval $(./itree)
itree also provides some other convenient hotkeys for easier navigation. Press CTRL+h to show a help screen of all available hotkeys.
CTRL + h
- Opens help menu to show the list of hotkey mappings.
← →
- Enter / exit currently selected directory.
↑ ↓
- Move directory item selector position by one.
ESC
q
- Exit itree and change directory.
CTRL+C
- Exit without changing directory.
h
- Toggle on / off visibility of hidden files.
e
- Move selector half the distance between the current position and the top of the directory.
d
- Move selector half the distance between the current position and the bottom of the directory.
c
- Toggle position
a
- Jump up two directories.
/
- Enters input capture mode for directory filtering.
:
- Enters input capture mode for exit command.