108 lines
3.0 KiB
Markdown
108 lines
3.0 KiB
Markdown
# ranger file manager
|
|
|
|
## Installazione
|
|
|
|
```bash
|
|
sudo apt install ranger ffmpeg highlight bat atool w3m calibre mediainfo odt2txt caca-utils mpv
|
|
ranger --copy-config=scope
|
|
cd
|
|
mkdir git/ && cd git/
|
|
git clone https://github.com/dracula/ranger.git
|
|
mkdir ~/.config/ranger/colorschemes/
|
|
cd ranger
|
|
cp dracula.py ~/.config/ranger/colorschemes/dracula.py
|
|
```
|
|
## Struttura
|
|
|
|
```bash
|
|
> ll .config/ranger/
|
|
|
|
Permissions Size User Date Modified Name
|
|
drwxr-xr-x - davide 15 mag 20:47 colorschemes # temi
|
|
.rw-r--r-- 24k davide 17 mag 11:42 rc.conf # file di configurazione
|
|
.rw-r--r-- 167 davide 17 mag 14:50 rifle.conf # stabilire con quale programma aprire determinati file
|
|
.rwxr-xr-x 14k davide 17 mag 12:09 scope.sh # script per le anteprime
|
|
```
|
|
|
|
## Command
|
|
|
|
| Shortcut | Description |
|
|
|----------|-----------------------------|
|
|
| `ranger` | Start Ranger |
|
|
| `q` | Quit Ranger |
|
|
| `R` | Reload current directory |
|
|
| `?` | Ranger Manpages / Shortcuts |
|
|
|
|
## Movement
|
|
|
|
| Shortcut | Description |
|
|
| --- | --- |
|
|
| `k` | up |
|
|
| `j` | down |
|
|
| `h` | parent directory |
|
|
| `l` | subdirectory |
|
|
| `gg` | go to top of list |
|
|
| `G` | go t bottom of list |
|
|
| `J` | half page down |
|
|
| `K` | half page up |
|
|
| `H` | History Back |
|
|
| `L` | History Forward |
|
|
| `~` | Switch the view |
|
|
|
|
## File Operations
|
|
|
|
| Shortcut | Description |
|
|
| --- | --- |
|
|
| `<Enter>` | Open |
|
|
| `r` | open file with |
|
|
| `z` | toggle settings |
|
|
| `o` | change sort order |
|
|
| `zh` | view hidden files |
|
|
| `cw` | rename current file |
|
|
| `yy` | yank / copy |
|
|
| `dd` | cut |
|
|
| `pp` | paste |
|
|
| `/` | search for files `:search` |
|
|
| `n` | next match |
|
|
| `N` | prev match |
|
|
| `<delete>` | Delete |
|
|
|
|
## Commands
|
|
|
|
| Shortcut | Description |
|
|
| --- | --- |
|
|
| `:` | Execute Range Command |
|
|
| `!` | Execute Shell Command |
|
|
| `chmod` | Change file Permissions |
|
|
| `du` | Disk Usage Current Directory |
|
|
| `S` | Run the terminal in your current ranger window (exit to go back to ranger) |
|
|
|
|
## Tabs
|
|
|
|
| Shortcut | Description |
|
|
| --- | --- |
|
|
| `C-n` | Create new tab |
|
|
| `C-w` | Close current tab |
|
|
| tab | Next tab |
|
|
| shift + tab | Previous tab |
|
|
| alt + \[n\] | goto / create \[n\] tab |
|
|
|
|
## Marker
|
|
|
|
| Shortcut | Description |
|
|
| --- | --- |
|
|
| `m + <letter>` | Create Marker |
|
|
| `um + <letter>` | Delete Marker |
|
|
| `' + <letter>` | Go to Marker |
|
|
| `t` | tag a file with an \* |
|
|
| `t"<any>` | tag a file with your desired mark |
|
|
|
|
## Collegamenti
|
|
|
|
- [https://github.com/ranger/ranger](https://github.com/ranger/ranger)
|
|
- [https://github.com/ranger/ranger/wiki/Official-user-guide](https://github.com/ranger/ranger/wiki/Official-user-guide)
|
|
- [https://github.com/ranger/ranger/wiki](https://github.com/ranger/ranger/wiki)
|
|
- [https://culgnol.github.io/ranger](https://culgnol.github.io/ranger)
|
|
- [https://kapeli.com/cheat_sheets/ranger.docset/Contents/Resources/Documents/index](https://kapeli.com/cheat_sheets/ranger.docset/Contents/Resources/Documents/index)
|
|
- [https://wiki.archlinux.org/title/Ranger](https://wiki.archlinux.org/title/Ranger)
|