Ranger is a lightweight, terminal-based file manager with a minimalist design and powerful features. It works perfectly in Alacritty, showcasing its color capabilities.
1. Install Ranger
Install Ranger via apt
:
sudo apt install ranger
2. Run Ranger
Start Ranger in your terminal:
ranger
3. Key Features
- File Navigation: Navigate directories with arrow keys.
- Preview Pane: Displays file previews (e.g., text, images, etc.).
- Customizable: Configure Ranger’s behavior and appearance by editing
~/.config/ranger/rc.conf
.
4. Useful Keyboard Shortcuts
- Arrow Keys: Move between files and directories.
- Enter: Open a file or folder.
q
: Quit Ranger.dd
: Cut a file.yy
: Copy a file.pp
: Paste a file.zh
: Toggle hidden files.
5. Enable File Previews
To preview file content:
- Install file preview dependencies:
sudo apt install highlight atool w3m poppler-utils mediainfo
Ranger will automatically use these tools for rich previews.
Notes
- Colorful Interface: Ranger makes full use of ANSI colors in Alacritty.
- Extensible: Add plugins or scripts for more functionality.
Ranger + Alacritty is a powerful combination for terminal-based file management!