1
0
mirror of https://github.com/bobwen-dev/hunter synced 2025-04-12 00:55:41 +02:00

update readme, vi-style bindings are default now

This commit is contained in:
rabite 2019-04-13 13:59:07 +02:00
parent 89b94d0ad0
commit 43e40fad44

View File

@ -40,6 +40,13 @@ A big thanks to ranger and its developers. Without its inspiration this wouldn't
## INSTALLATION: ## INSTALLATION:
### Build with cargo
```
// cargo install hunter
```
### Build from source ### Build from source
``` ```
@ -87,18 +94,18 @@ To change the directory of your shell when quitting hunter with Q you need to so
Keybindings: Keybindings:
============ ============
## evil mode ## holy mode
By default hunter uses emacs style keybindings. If you use a QWERTY-like keyboard layout this is probably not what you want. In that case use the "evil" branch which remaps movement keys to vi-style. By default hunter uses vi-style keybindings. If you use a QWERTY-like keyboard layout this is probably what you want. Most people will want this, so I maed it the default. If you have a different keyboard layout this might not be the best choice. The holy-branch changes the movement keys to the emacs keybindings, which is more ergonomic on e.g. Colemak.
## Main view: ## Main view:
| Key | Action | | Key | Action |
| ------------------- | :--------------------------------- | | ------------------- | :--------------------------------- |
|n/p (evil: j/k) |move down/up | | j/k (holy: n/p) | move down/up |
|N/P (evil: J/K) |5x move down/5x move up | | J/K (holy: N/P) | 5x move down/5x move up |
| < | move to top | | < | move to top |
| > | move to bottom | | > | move to bottom |
|f/b (evil: l/h) |open/go back | | l/h (holy: f/b) | open/go back |
| S | search file | | S | search file |
| Alt(s) | search next | | Alt(s) | search next |
| Alt(S) | search prev | | Alt(S) | search prev |
@ -115,11 +122,11 @@ By default hunter uses emacs style keybindings. If you use a QWERTY-like keyboar
| / | turbo cd | | / | turbo cd |
| Q | quit with dir/selections | | Q | quit with dir/selections |
| F | run in background | | F | run in background |
|- |goto prev cwd | |---------------------|------------------------------------|
| ` | goto bookmark | | ` | goto bookmark |
| m | add bookmark | | m | add bookmark |
| w | show processes | | w | show processes |
|l evil(L) |show log | | L holy(l) | show log |
| z | open subshell in cwd | | z | open subshell in cwd |
| c | toggle columns | | c | toggle columns |
| F(n) | switch to tab | | F(n) | switch to tab |
@ -142,11 +149,11 @@ By default hunter uses emacs style keybindings. If you use a QWERTY-like keyboar
|w |close process viewer | |w |close process viewer |
|d |remove process | |d |remove process |
|k |kill process | |k |kill process |
|p evil(k) |move up | |k holy(p) |move up |
|n evil(j) |move down | |j holy(n) |move down |
|f |toggle follow output | |f |toggle follow output |
|Ctrl(n) evil(Ctrl(j) |scroll output down | |Ctrl(j) holy(Ctrl(n) |scroll output down |
|Ctrl(p) evil(Ctrl(k) |scroll output up | |Ctrl(k) holy(Ctrl(p) |scroll output up |
|Ctrl(v) |page down | |Ctrl(v) |page down |
|Alt(v) |page up | |Alt(v) |page up |
|< |scroll to bottom | |< |scroll to bottom |