pull/477/head
Arijit Basu 2 years ago committed by Arijit Basu
parent cc5b996db9
commit 2179be473f

@ -55,17 +55,40 @@ of [modes][4] and the key mappings for each mode.
| ctrl-c | | terminate |
| esc | | escape |
### filter
### selection ops
| key | remaps | action |
| --------- | ------ | ---------------------------------- |
| R | | relative path does not match regex |
| backspace | | remove last filter |
| ------ | ------ | ----------- |
| c | | copy here |
| ctrl-c | | terminate |
| ctrl-r | | reset filters |
| ctrl-u | | clear filters |
| enter | esc | done |
| r | | relative path does match regex |
| esc | | cancel |
| m | | move here |
| x | | open in gui |
### create
| key | remaps | action |
| ------ | ------ | ---------------- |
| ctrl-c | | terminate |
| d | | create directory |
| esc | | cancel |
| f | | create file |
### create directory
| key | remaps | action |
| ------ | ------ | ---------------- |
| ctrl-c | | terminate |
| enter | | create directory |
| esc | | cancel |
### create file
| key | remaps | action |
| ------ | ------ | ----------- |
| ctrl-c | | terminate |
| enter | | create file |
| esc | | cancel |
### number
@ -88,27 +111,30 @@ of [modes][4] and the key mappings for each mode.
| g | | top |
| x | | open in gui |
### search
### rename
| key | remaps | action |
| ------ | ------ | ---------------- |
| ------ | ------ | --------- |
| ctrl-c | | terminate |
| ctrl-n | down | down |
| ctrl-p | up | up |
| enter | esc | focus |
| left | | back |
| right | | enter |
| tab | | toggle selection |
| enter | | rename |
| esc | | cancel |
### selection ops
### duplicate as
| key | remaps | action |
| ------ | ------ | ----------- |
| c | | copy here |
| ------ | ------ | --------- |
| ctrl-c | | terminate |
| enter | | duplicate |
| esc | | cancel |
### delete
| key | remaps | action |
| ------ | ------ | ------------ |
| D | | force delete |
| ctrl-c | | terminate |
| d | | delete |
| esc | | cancel |
| m | | move here |
| x | | open in gui |
### action to
@ -125,54 +151,44 @@ of [modes][4] and the key mappings for each mode.
| s | | selection operations |
| [0-9] | | go to index |
### create
| key | remaps | action |
| ------ | ------ | ---------------- |
| ctrl-c | | terminate |
| d | | create directory |
| esc | | cancel |
| f | | create file |
### create file
| key | remaps | action |
| ------ | ------ | ----------- |
| ctrl-c | | terminate |
| enter | | create file |
| esc | | cancel |
### create directory
### search
| key | remaps | action |
| ------ | ------ | ---------------- |
| ctrl-c | | terminate |
| enter | | create directory |
| esc | | cancel |
| ctrl-n | down | down |
| ctrl-p | up | up |
| enter | esc | focus |
| left | | back |
| right | | enter |
| tab | | toggle selection |
### rename
### filter
| key | remaps | action |
| ------ | ------ | --------- |
| --------- | ------ | ---------------------------------- |
| R | | relative path does not match regex |
| backspace | | remove last filter |
| ctrl-c | | terminate |
| enter | | rename |
| esc | | cancel |
| ctrl-r | | reset filters |
| ctrl-u | | clear filters |
| enter | esc | done |
| r | | relative path does match regex |
### duplicate as
### relative path does match regex
| key | remaps | action |
| ------ | ------ | --------- |
| ------ | ------ | ------------ |
| ctrl-c | | terminate |
| enter | | duplicate |
| enter | | apply filter |
| esc | | cancel |
### delete
### relative path does not match regex
| key | remaps | action |
| ------ | ------ | ------------ |
| D | | force delete |
| ctrl-c | | terminate |
| d | | delete |
| enter | | apply filter |
| esc | | cancel |
### sort
@ -200,34 +216,6 @@ of [modes][4] and the key mappings for each mode.
| r | | by relative path |
| s | | by size |
### filter
| key | remaps | action |
| --------- | ------ | ---------------------------------- |
| R | | relative path does not match regex |
| backspace | | remove last filter |
| ctrl-c | | terminate |
| ctrl-r | | reset filters |
| ctrl-u | | clear filters |
| enter | esc | done |
| r | | relative path does match regex |
### relative path does match regex
| key | remaps | action |
| ------ | ------ | ------------ |
| ctrl-c | | terminate |
| enter | | apply filter |
| esc | | cancel |
### relative path does not match regex
| key | remaps | action |
| ------ | ------ | ------------ |
| ctrl-c | | terminate |
| enter | | apply filter |
| esc | | cancel |
### switch layout
| key | remaps | action |
@ -239,6 +227,18 @@ of [modes][4] and the key mappings for each mode.
| ctrl-c | | terminate |
| esc | | cancel |
### quit
| key | remaps | action |
| ------ | ------ | ----------------------- |
| ctrl-c | | terminate |
| enter | | just quit |
| esc | | cancel |
| f | | quit printing focus |
| p | | quit printing pwd |
| r | | quit printing result |
| s | | quit printing selection |
[1]: https://www.vim.org/
[2]: https://github.com/jarun/nnn/
[3]: #default

@ -1545,23 +1545,23 @@ impl App {
&builtin.default,
&builtin.debug_error,
&builtin.recover,
&builtin.filter,
&builtin.number,
&builtin.go_to,
&builtin.search,
&builtin.selection_ops,
&builtin.action,
&builtin.create,
&builtin.create_file,
&builtin.create_directory,
&builtin.create_file,
&builtin.number,
&builtin.go_to,
&builtin.rename,
&builtin.duplicate_as,
&builtin.delete,
&builtin.sort,
&builtin.action,
&builtin.search,
&builtin.filter,
&builtin.relative_path_does_match_regex,
&builtin.relative_path_does_not_match_regex,
&builtin.sort,
&builtin.switch_layout,
&builtin.quit,
]
.iter().map(|m| (&m.name, m.to_owned()))
.chain(custom.iter())

Loading…
Cancel
Save