sidle is a CLI tool that helps with directory and file selection.
For example, instead of
$ cd ../../../or
$ cd ..
$ cd ..
$ cd ..you can set up an alias to do this
$ alias sd='sidle -o /tmp/sidle_path && cd $(cat /tmp/sidle_path)'and change directories as demonstrated below
You can use sidle with pretty much any application that accepts a file system path as an argument.
$ alias sidle_delete='sidle --files-selectable -o /tmp/sidle_path && rm $(cat /tmp/sidle_path)'$ alias sidle_edit='sidle --files-selectable -o /tmp/sidle_path && vim $(cat /tmp/sidle_path)'USAGE:
sidle [FLAGS] [OPTIONS] [path]
FLAGS:
--files-selectable Allows files, in addition to directories, to be selected as output
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-o <output> Where to write the final path chosen. Defaults to the file 'sidle_path' in a temp directory
ARGS:
<path> The path to start from. Defaults to current directory.
ESCorqkey to quit without writing to outputLeft/Rightkeys to move between directoriesUp/Downkeys to move up and down files and directoriesPgUp/PgDownkeys to move up and down by 10 itemsEnter/Return/⏎ key to select the highlighted item.key to select the current directory