- Install Python 3.*
- run
./setup.sh(or./setup.ps1for Windows) then restart your terminal.
- Linux (bash)
- macOS (zsh)
- Windows (Terminal:Powershell)
- Since
lcan quickly copy an entry to the clipboard, it can be used in conjunction
with other commands to avoid mouse input or slow transcription, eg,code <clipboard-contents>.
- General
- The output of
lwill enumerate the result of the query (detailed below) - The selected number will copy the corresponding dir/file to clipboard
- Directories are listed first, then files, then special items
- NOTE: All entries are accessible to
cby number regardless of selection
- The output of
- Query Examples (inexhaustive)
- NOTE:
*'s must be escaped in macOS/Linux- eg.
l dir/subdir/*.pngwould be writtenl dir/subdir/\*.png
- eg.
l- Lists contents of current directory
- Items copied to the clipboard will not include full path
l .- Lists contents of current directory
- Items copied to the clipboard will include full path
l *.png- lists all pngs in current directory
- Items copied to the clipboard will not include full path
l <dir name>/*/- lists all directories contained within <dir name>
- Items copied to the clipboard will include full path
- NOTE:
- Examples
c- Changes to the directory stored in the clipboard
c <index #>- Changes to the directory corresponding an index # in the last run of
l
- Changes to the directory corresponding an index # in the last run of
c <dir name/path>- Changes to <dir name/path>
c ..- Changes to the parent directory