Interactive ls command made in rust
🌟 Navigate between folders/files using arrow keys
🌟 Browse folders / Open files with native apps using Enter
🌟 Open folder in terminal (CD to folder) using Shift+Enter or Alt+Enter
🌟 Open folder in file manager using Ctrl+Enter
🌟 Type anything to filter current folder content using fuzzy search
🌟 Top button (📁 ..) opens the parent directory (LeftArrow can also be used when fuzzy text field is empty)
🌟 Press Esc to exit
on Linux/Mac Shift+Enter or Ctrl+Enter might not work
-
Download the package for your platform from the releases page
Platform Asset Linux x86_64 (any distro, including Alpine) lsi_<version>_x86_64-unknown-linux-musl.tar.gzLinux ARM64 (Raspberry Pi, ARM servers) lsi_<version>_aarch64-unknown-linux-musl.tar.gzmacOS (Apple Silicon and Intel) lsi_<version>_universal-apple-darwin.tar.gzWindows x86_64 lsi_<version>_x86_64-pc-windows-msvc.zipWindows ARM64 lsi_<version>_aarch64-pc-windows-msvc.zipThe Linux builds are statically linked, so they don't depend on your system's libc.
Releases also include
lsi_<version>_linux.tar.gz,lsi_<version>_macos.tar.gzandlsi_<version>_windows.zip. These are copies of the x86_64 Linux, macOS and x86_64 Windows packages above, kept so older download links still work. Prefer the names in the table, because the old names will be removed in a future release. -
Extract its content into a folder in PATH (guide)
-
Choose variation and follow shell specific instructions:
Open files with your chosen editor
Bash (Linux/Mac) or Zsh
- Copy the
lsifunction from scripts/lsi.sh to your~/.bashrcor~/.zshrcfile:
ls-interactive/scripts/cli-editor/lsi.sh
Lines 3 to 12 in 8104712
Batch (Windows CMD)
- Copy scripts/lsi.bat into a folder that is in your
%PATH%environment variable
ls-interactive/scripts/cli-editor/lsi.bat
Lines 4 to 15 in 8104712
you can open you environment variables settings using the command below: (or by searching for env in the start menu)
rundll32.exe sysdm.cpl,EditEnvironmentVariablesFish Shell
- Copy scripts/lsi.fish into
~/.config/fish/functions/
OR copy the function inside into your ~/.config/fish/config.fish file
ls-interactive/scripts/cli-editor/lsi.fish
Lines 6 to 15 in 8104712
Powershell
- Copy the
lsifunction from scripts/lsi.ps1 to yourMicrosoft.PowerShell_profile.ps1
ls-interactive/scripts/cli-editor/lsi.ps1
Lines 7 to 12 in 8104712
you can open your profile using one of the following commands:
notepad $profilegedit $profileNushell
- Copy the
lsifunction from scripts/lsi.nu to yourenv.nu
ls-interactive/scripts/cli-editor/lsi.nu
Lines 4 to 10 in 8104712
you can open your environment file using the following command:
config envOpen files with operating system
Bash (Linux/Mac) or Zsh
- Copy the
lsifunction from scripts/lsi.sh to your~/.bashrcor~/.zshrcfile:
Lines 3 to 8 in f1cd2db
Batch (Windows CMD)
- Copy scripts/lsi.bat into a folder that is in your
%PATH%environment variable
ls-interactive/scripts/lsi.bat
Lines 3 to 5 in f1cd2db
you can open you environment variables settings using the command below: (or by searching for env in the start menu)
rundll32.exe sysdm.cpl,EditEnvironmentVariablesFish Shell
- Copy scripts/lsi.fish into
~/.config/fish/functions/
OR copy the function inside into your ~/.config/fish/config.fish file
ls-interactive/scripts/lsi.fish
Lines 7 to 13 in f1cd2db
Powershell
- Copy the
lsifunction from scripts/lsi.ps1 to yourMicrosoft.PowerShell_profile.ps1
ls-interactive/scripts/lsi.ps1
Lines 7 to 10 in f1cd2db
you can open your profile using one of the following commands:
notepad $profilegedit $profileNushell
- Copy the
lsifunction from scripts/lsi.nu to yourenv.nu
Lines 4 to 10 in edab355
you can open your environment file using the following command:
config envlsior
lsi some_relative_or_absolute_path(Releases are automatically built by github actions)
-
install
rust -
clone/download the repo
-
run in project directory:
cargo run: to run in dev modecargo build --release: to build locally,- executable will be in
/target/releaseand namedls_interactive - launch script will be in the
/scriptsdirectory
- executable will be in
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Before submitting a Pull Request, verify your changes with all following commands:
cargo checkcargo fmt --all --checkcargo clippy --all-targets --all-features -- -W clippy::pedantic -W clippy::cargo -W clippy::nurseryGive a ⭐ if this package helped you!
MIT. See LICENSE file for details.
