Overview
Ranger is a console file manager with VI key bindings. It provides a minimalistic and efficient interface for browsing directories and managing files from the terminal.Installation
Arch Linux
Ubuntu/Debian
Features
VI keybindings
Navigate using h, j, k, l like in Vim
File previews
Preview files directly in the terminal
Quick navigation
Fast directory jumping and searching
Minimal interface
Clean, distraction-free file management
Shell integration
Ranger is configured with a special alias that allows it to change the shell’s directory when you exit:.zshrc
How the integration works
Usage
Basic commands
Navigation keybindings
| Key | Action |
|---|---|
h | Go to parent directory |
j | Move down |
k | Move up |
l | Enter directory or open file |
gg | Go to top |
G | Go to bottom |
/ | Search |
q | Quit |
File operations
| Key | Action |
|---|---|
yy | Copy file |
dd | Cut file |
pp | Paste file |
dD | Delete file |
cw | Rename file |
space | Select file |
Configuration
Ranger can be customized through configuration files in~/.config/ranger/:
rc.conf- Settings and keybindingsrifle.conf- File associationsscope.sh- Preview script customization
Generate default configuration files with:
ranger --copy-config=allPreview enhancements
For better file previews, install these optional dependencies:Integration with other tools
Ranger works seamlessly with the development environment:- Launches from Tmux sessions
- Can open files in Neovim
- Respects shell environment variables
- Integrates with FZF for fuzzy finding
Related tools
- Neovim - Default editor for opening files
- FZF - Fuzzy finder for quick file access
- Zoxide - Smart directory jumping