Skip to content
Projetos

Araxeus/ls-interactive

Ver no GitHub

Sobre

Interactive ls command

Ferramentas de desenvolvimento

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

ls-interactive 💻

Version License: MIT Maintenance

Interactive ls command made in rust

image

⚡ 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

  1. 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.

  2. Extract its content into a folder in PATH (guide)

  3. 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)

  • install rust

  • clone/download the repo

  • run in project directory:

    • cargo run: to run in dev mode
    • cargo build --release: to build locally,
      • executable will be in /target/release and named ls_interactive
      • launch script will be in the /scripts directory

🤝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.

Explore projetos relacionados

Carregando…