ls-interactive 💻
Interactive ls command made in rust

⚡ Features
🌟 Navigate between folders/files using arrow keys, or a page at a time with PageUp / PageDown
🌟 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, Ctrl+C or Ctrl+Q to exit
on Linux/Mac Shift+Enter or Ctrl+Enter might not work
see https://github.com/crossterm-rs/crossterm/issues/669
🛠 Installation
-
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.gz |
| Linux ARM64 (Raspberry Pi, ARM servers) |
lsi_<version>_aarch64-unknown-linux-musl.tar.gz |
| macOS (Apple Silicon and Intel) |
lsi_<version>_universal-apple-darwin.tar.gz |
| Windows x86_64 |
lsi_<version>_x86_64-pc-windows-msvc.zip |
| Windows ARM64 |
lsi_<version>_aarch64-pc-windows-msvc.zip |
The 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.gz and lsi_<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
lsi function from scripts/lsi.sh to your ~/.bashrc or ~/.zshrc file:
https://github.com/Araxeus/ls-interactive/blob/53da5f6116a85922d51405116d72d8e142402295/scripts/cli-editor/lsi.sh#L3-L13
Batch (Windows CMD)
- Copy scripts/lsi.bat into a folder that is in your
%PATH% environment variable
https://github.com/Araxeus/ls-interactive/blob/53da5f6116a85922d51405116d72d8e142402295/scripts/cli-editor/lsi.bat#L4-L18
you can open you environment variables settings using the command below: (or by searching for env in the start menu)
rundll32.exe sysdm.cpl,EditEnvironmentVariables
Fish Shell
OR copy the function inside into your ~/.config/fish/config.fish file
https://github.com/Araxeus/ls-interactive/blob/53da5f6116a85922d51405116d72d8e142402295/scripts/cli-editor/lsi.fish#L6-L16
Powershell
- Copy the
lsi function from scripts/lsi.ps1 to your Microsoft.PowerShell_profile.ps1
https://github.com/Araxeus/ls-interactive/blob/53da5f6116a85922d51405116d72d8e142402295/scripts/cli-editor/lsi.ps1#L7-L15
you can open your profile using one of the following commands:
notepad $profile
gedit $profile
Nushell
https://github.com/Araxeus/ls-interactive/blob/53da5f6116a85922d51405116d72d8e142402295/scripts/cli-editor/lsi.nu#L4-L11
you can open your environment file using the following command:
config env
Open files with operating system
Bash (Linux/Mac) or Zsh
- Copy the
lsi function from scripts/lsi.sh to your ~/.bashrc or ~/.zshrc file:
https://github.com/Araxeus/ls-interactive/blob/f1cd2db8a7bddb5aee5e0d3e2482d85b11d76f31/scripts/lsi.sh#L3-L8
Batch (Windows CMD)
- Copy scripts/lsi.bat into a folder that is in your
%PATH% environment variable
https://github.com/Araxeus/ls-interactive/blob/f1cd2db8a7bddb5aee5e0d3e2482d85b11d76f31/scripts/lsi.bat#L3-L5
you can open you environment variables settings using the command below: (or by searching for env in the start menu)
rundll32.exe sysdm.cpl,EditEnvironmentVariables
Fish Shell
OR copy the function inside into your ~/.config/fish/config.fish file
https://github.com/Araxeus/ls-interactive/blob/f1cd2db8a7bddb5aee5e0d3e2482d85b11d76f31/scripts/lsi.fish#L7-L13
Powershell
- Copy the
lsi function from scripts/lsi.ps1 to your Microsoft.PowerShell_profile.ps1
https://github.com/Araxeus/ls-interactive/blob/f1cd2db8a7bddb5aee5e0d3e2482d85b11d76f31/scripts/lsi.ps1#L7-L10
you can open your profile using one of the following commands:
notepad $profile
gedit $profile
Nushell
https://github.com/Araxeus/ls-interactive/blob/edab3551edc1a7e3a18b596166092b13eeffcf2f/scripts/lsi.nu#L4-L10
you can open your environment file using the following command:
config env
💻 How to run it
lsi
or
lsi some_relative_or_absolute_path
⚙️ Build it yourself
(Releases are automatically built by github actions)
🤝Contributing
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 check
cargo fmt --all --check
cargo clippy --all-targets --all-features -- -W clippy::pedantic -W clippy::cargo -W clippy::nursery
❤️ Show your support
Give a ⭐ if this package helped you!
📜 License
MIT. See LICENSE file for details.
评论