Skip to content
/ sidle Public

sidle is a CLI tool that helps with directory and file selection

License

Notifications You must be signed in to change notification settings

kdrakon/sidle

Repository files navigation

sidle GitHub release (latest by date)

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

asciicast

Other uses?

You can use sidle with pretty much any application that accepts a file system path as an argument.

To delete a file

$ alias sidle_delete='sidle --files-selectable -o /tmp/sidle_path && rm $(cat /tmp/sidle_path)'

To edit a file

$ alias sidle_edit='sidle --files-selectable -o /tmp/sidle_path && vim $(cat /tmp/sidle_path)'

Usage

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.

Controls

  • ESC or q key to quit without writing to output
  • Left/Right keys to move between directories
  • Up/Down keys to move up and down files and directories
  • PgUp/PgDown keys to move up and down by 10 items
  • Enter/Return/⏎ key to select the highlighted item
  • . key to select the current directory

About

sidle is a CLI tool that helps with directory and file selection

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published