An alternative to the ls command that makes it easier to navigate complicated directories with lots of files.
- Features
- Prerequisites
- Installation
- Getting Started
- Usage
- Configuration
- Key Bindings
- Contributing
- Support
- License
- Easy navigation in complex directories
- Search functionality
- File and directory operations (rename, move, delete, copy)
- Git repository status
- Customizable key bindings and themes
- Git
- Go programming language
Install Git and Go:
- Arch Linux:
sudo pacman -S git go
- Fedora:
sudo dnf install git go
- Ubuntu/Debian:
sudo apt install git golang-go
- Snap:
sudo snap install --classic go
Option A: Download the binary
- Go to the latest release and download the binary.
- Make it executable:
chmod +x ~/Downloads/lds - Move it to
/usr/local/bin/:sudo mv ~/Downloads/lds /usr/local/bin/
Option B: Build from source
- Clone the repository:
git clone https://github.com/OpusMag/lds cd lds - Build the binary:
go mod tidy go build -o lds main.go
- Move it to
/usr/local/bin/:sudo mv lds /usr/local/bin/
Install Git and Go:
- Git: Download Git and install it.
- Go: Download Go and follow the installation guide.
Option A: Download the binary
- Go to the latest release and download
lds.exe. - Move the binary to a directory (e.g.,
C:\Tools). - Add the directory to PATH:
- Press
Win + Xand selectSystem. - Click on
Advanced system settings. - In the
System propertieswindow, click onEnvironment variables. - Find the
Pathvariable in theSystem variablessection and clickEdit. - Click
Newand add the path to the directory where you placedlds.exe(e.g.,C:\Tools).
- Press
Option B: Build from source
- Clone the repository:
git clone https://github.com/OpusMag/lds cd lds - Build the binary:
go mod tidy go build -o lds.exe main.go
Install Git and Go:
- Git:
- Using Homebrew (Recommended):
brew install git
- Using Xcode Command Line Tools:
xcode-select --install
- Using Homebrew (Recommended):
- Go:
- Using Homebrew (Recommended):
brew install go
- Manual Installation:
- Download Go.
- Open the downloaded
.pkgfile and follow the instructions to install Go.
- Using Homebrew (Recommended):
Option A: Download the binary
- Go to the latest release and download the binary.
- Make it executable:
chmod +x ~/Downloads/lds - Move it to
/usr/local/bin/:sudo mv ~/Downloads/lds /usr/local/bin/
Option B: Build from source
- Clone the repository:
git clone https://github.com/OpusMag/lds cd lds - Build the binary:
go mod tidy go build -o lds main.go
- Move it to
/usr/local/bin/:sudo mv lds /usr/local/bin/
To start lds, simply run: lds
How to navigate, configure and change keybindings in lds:
- Move between boxes: Tab
- Navigate to parent directory: Press escape
- Navigate to sub directory: Highlight directory and press Enter (navigate to Directory box and use arrow keys)
- Highlight a file: Tab to the Files box and use the up and down arrow keys
- Open a file in an editor: highlight the file and hit Enter (highlighting can be done by searching or navigating to Files box and using arrow keys)
Default config locations:
- Linux and macOS:
~/.config/lds/config.json - Windows:
%LOCALAPPDATA%\lds\config.json(e.g.,C:\Users\YOURUSERNAME\AppData\Local\lds\config.json)
Create the directory and copy your config:
-
Linux/macOS:
mkdir -p ~/.config/lds cp /path/to/config.json ~/.config/lds/config.json
-
Windows (Command Prompt):
mkdir "%LOCALAPPDATA%\lds" copy "C:\path\to\config.json" "%LOCALAPPDATA%\lds\config.json"
In the config file you can customize colors, key bindings, and other settings.
- Quit: Ctrl+C
- Next Box: Tab
- Previous Box: Shift+Tab
- Go to parent directory: Press escape
- Go to sub directory: Highlight directory and press Enter
- Open a file in an editor : After highlighting a file, press Enter (highlighting can be done by searching or navigating to Files box and using arrow keys)
- Backspace: Backspace
- Rename: Alt+r
- Move: Alt+m
- Delete: Alt+d
- Copy: Alt+c
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
For support, please open an issue on GitHub.
This project is licensed under the MIT License.
