diff --git a/docs/en/src/default-key-bindings.md b/docs/en/src/default-key-bindings.md index cbb05a0..dfe2fb9 100644 --- a/docs/en/src/default-key-bindings.md +++ b/docs/en/src/default-key-bindings.md @@ -24,7 +24,7 @@ of [modes][4] and the key mappings for each mode. | ? | f1 | global help menu | | G | | go to bottom | | V | ctrl-a | select/unselect all | -| c | | quick copy | +| c | | copy to | | ctrl-d | | duplicate as | | ctrl-i | tab | next visited path | | ctrl-n | | next selection | @@ -41,7 +41,7 @@ of [modes][4] and the key mappings for each mode. | h | left | back | | k | up | up | | l | right | enter | -| m | | quick move | +| m | | move to | | page-down | | scroll down | | page-up | | scroll up | | q | | quit | @@ -53,36 +53,7 @@ of [modes][4] and the key mappings for each mode. | ~ | | go home | | [0-9] | | input | -### selection_ops - -| key | remaps | action | -| --- | ------ | ---------------- | -| c | | copy here | -| e | | edit selection | -| f1 | | global help menu | -| h | | hardlink here | -| l | | list selection | -| m | | move here | -| s | | softlink here | -| u | | clear selection | - -### edit_permissions - -| key | remaps | action | -| ------ | ------ | ---------------- | -| G | | -group | -| M | | min | -| O | | -other | -| U | | -user | -| ctrl-r | | reset | -| enter | | submit | -| f1 | | global help menu | -| g | | +group | -| m | | max | -| o | | +other | -| u | | +user | - -### duplicate_as +### go_to_path | key | remaps | action | | ----- | ------ | ---------------- | @@ -90,21 +61,7 @@ of [modes][4] and the key mappings for each mode. | f1 | | global help menu | | tab | | try complete | -### recover - -| key | remaps | action | -| --- | ------ | ---------------- | -| f1 | | global help menu | - -### quick_copy - -| key | remaps | action | -| ----- | ------ | ---------------- | -| enter | | copy here | -| f1 | | global help menu | -| tab | | try complete | - -### create_file +### rename | key | remaps | action | | ----- | ------ | ---------------- | @@ -112,49 +69,45 @@ of [modes][4] and the key mappings for each mode. | f1 | | global help menu | | tab | | try complete | -### quit +### recover -| key | remaps | action | -| ----- | ------ | ----------------------- | -| enter | | just quit | -| f | | quit printing focus | -| f1 | | global help menu | -| p | | quit printing pwd | -| r | | quit printing result | -| s | | quit printing selection | +| key | remaps | action | +| --- | ------ | ---------------- | +| f1 | | global help menu | -### relative_path_does_not_match_regex +### go_to -| key | remaps | action | -| ----- | ------ | ---------------- | -| enter | | submit | -| f1 | | global help menu | +| key | remaps | action | +| --- | ------ | ---------------- | +| f | | follow symlink | +| f1 | | global help menu | +| g | | top | +| i | | initial $PWD | +| p | | path | +| x | | open in gui | -### rename +### relative_path_does_match_regex | key | remaps | action | | ----- | ------ | ---------------- | | enter | | submit | | f1 | | global help menu | -| tab | | try complete | - -### switch_layout - -| key | remaps | action | -| --- | ------ | -------------------- | -| 1 | | default | -| 2 | | no help menu | -| 3 | | no selection panel | -| 4 | | no help or selection | -| f1 | | global help menu | -### delete +### action -| key | remaps | action | -| --- | ------ | ---------------- | -| D | | force delete | -| d | | delete | -| f1 | | global help menu | +| key | remaps | action | +| ----- | ------ | -------------------- | +| ! | | shell | +| c | | create | +| e | | open in editor | +| f1 | | global help menu | +| l | | logs | +| m | | toggle mouse | +| p | | edit permissions | +| q | | quit options | +| s | | selection operations | +| v | | vroot | +| [0-9] | | go to index | ### default @@ -168,7 +121,7 @@ of [modes][4] and the key mappings for each mode. | ? | f1 | global help menu | | G | | go to bottom | | V | ctrl-a | select/unselect all | -| c | | quick copy | +| c | | copy to | | ctrl-d | | duplicate as | | ctrl-i | tab | next visited path | | ctrl-n | | next selection | @@ -185,7 +138,7 @@ of [modes][4] and the key mappings for each mode. | h | left | back | | k | up | up | | l | right | enter | -| m | | quick move | +| m | | move to | | page-down | | scroll down | | page-up | | scroll up | | q | | quit | @@ -197,84 +150,68 @@ of [modes][4] and the key mappings for each mode. | ~ | | go home | | [0-9] | | input | -### create - -| key | remaps | action | -| --- | ------ | ---------------- | -| d | | create directory | -| f | | create file | -| f1 | | global help menu | - -### number +### debug_error -| key | remaps | action | -| ----- | ------ | ---------------- | -| down | j | to down | -| enter | | to index | -| f1 | | global help menu | -| k | up | to up | -| [0-9] | | input | +| key | remaps | action | +| ----- | ------ | ------------------- | +| enter | | open logs in editor | +| f1 | | global help menu | +| q | | quit | -### relative_path_does_match_regex +### create_directory | key | remaps | action | | ----- | ------ | ---------------- | | enter | | submit | | f1 | | global help menu | +| tab | | try complete | -### go_to +### selection_ops | key | remaps | action | | --- | ------ | ---------------- | -| f | | follow symlink | +| c | | copy here | +| e | | edit selection | | f1 | | global help menu | -| g | | top | -| i | | initial $PWD | -| p | | path | -| x | | open in gui | +| h | | hardlink here | +| l | | list selection | +| m | | move here | +| s | | softlink here | +| u | | clear selection | -### quick_move +### relative_path_does_not_match_regex | key | remaps | action | | ----- | ------ | ---------------- | -| enter | | move here | +| enter | | submit | | f1 | | global help menu | -| tab | | try complete | -### debug_error +### create_file -| key | remaps | action | -| ----- | ------ | ------------------- | -| enter | | open logs in editor | -| f1 | | global help menu | -| q | | quit | +| key | remaps | action | +| ----- | ------ | ---------------- | +| enter | | submit | +| f1 | | global help menu | +| tab | | try complete | -### filter +### quit -| key | remaps | action | -| --------- | ------ | ---------------------------------- | -| R | | relative path does not match regex | -| backspace | | remove last filter | -| ctrl-r | | reset filters | -| ctrl-u | | clear filters | -| f1 | | global help menu | -| r | | relative path does match regex | +| key | remaps | action | +| ----- | ------ | ----------------------- | +| enter | | just quit | +| f | | quit printing focus | +| f1 | | global help menu | +| p | | quit printing pwd | +| r | | quit printing result | +| s | | quit printing selection | -### action +### create -| key | remaps | action | -| ----- | ------ | -------------------- | -| ! | | shell | -| c | | create | -| e | | open in editor | -| f1 | | global help menu | -| l | | logs | -| m | | toggle mouse | -| p | | edit permissions | -| q | | quit options | -| s | | selection operations | -| v | | vroot | -| [0-9] | | go to index | +| key | remaps | action | +| --- | ------ | ---------------- | +| d | | create directory | +| f | | create file | +| f1 | | global help menu | ### vroot @@ -288,13 +225,33 @@ of [modes][4] and the key mappings for each mode. | v | | toggle vroot | | ~ | | vroot $HOME | -### create_directory +### search -| key | remaps | action | -| ----- | ------ | ---------------- | -| enter | | submit | -| f1 | | global help menu | -| tab | | try complete | +| key | remaps | action | +| ------ | ------ | ----------------------- | +| ctrl-a | | toggle search algorithm | +| ctrl-f | | fuzzy search | +| ctrl-n | down | down | +| ctrl-p | up | up | +| ctrl-r | | regex search | +| ctrl-s | | sort (no search order) | +| ctrl-z | | toggle ordering | +| enter | | submit | +| esc | | cancel | +| f1 | | global help menu | +| left | | back | +| right | | enter | +| tab | | toggle selection | + +### switch_layout + +| key | remaps | action | +| --- | ------ | -------------------- | +| 1 | | default | +| 2 | | no help menu | +| 3 | | no selection panel | +| 4 | | no help or selection | +| f1 | | global help menu | ### sort @@ -321,7 +278,17 @@ of [modes][4] and the key mappings for each mode. | r | | by relative path | | s | | by size | -### go_to_path +### number + +| key | remaps | action | +| ----- | ------ | ---------------- | +| down | j | to down | +| enter | | to index | +| f1 | | global help menu | +| k | up | to up | +| [0-9] | | input | + +### copy_to | key | remaps | action | | ----- | ------ | ---------------- | @@ -329,20 +296,53 @@ of [modes][4] and the key mappings for each mode. | f1 | | global help menu | | tab | | try complete | -### search +### edit_permissions -| key | remaps | action | -| ------ | ------ | ----------------------- | -| ctrl-a | | toggle search algorithm | -| ctrl-f | | fuzzy search | -| ctrl-n | down | down | -| ctrl-p | up | up | -| ctrl-r | | regex search | -| ctrl-s | | sort (no search order) | -| ctrl-z | | toggle ordering | -| enter | | submit | -| esc | | cancel | -| f1 | | global help menu | -| left | | back | -| right | | enter | -| tab | | toggle selection | +| key | remaps | action | +| ------ | ------ | ---------------- | +| G | | -group | +| M | | min | +| O | | -other | +| U | | -user | +| ctrl-r | | reset | +| enter | | submit | +| f1 | | global help menu | +| g | | +group | +| m | | max | +| o | | +other | +| u | | +user | + +### delete + +| key | remaps | action | +| --- | ------ | ---------------- | +| D | | force delete | +| d | | delete | +| f1 | | global help menu | + +### move_to + +| key | remaps | action | +| ----- | ------ | ---------------- | +| enter | | submit | +| f1 | | global help menu | +| tab | | try complete | + +### filter + +| key | remaps | action | +| --------- | ------ | ---------------------------------- | +| R | | relative path does not match regex | +| backspace | | remove last filter | +| ctrl-r | | reset filters | +| ctrl-u | | clear filters | +| f1 | | global help menu | +| r | | relative path does match regex | + +### duplicate_as + +| key | remaps | action | +| ----- | ------ | ---------------- | +| enter | | submit | +| f1 | | global help menu | +| tab | | try complete | diff --git a/docs/en/src/modes.md b/docs/en/src/modes.md index c2dcb7c..b1afe5f 100644 --- a/docs/en/src/modes.md +++ b/docs/en/src/modes.md @@ -35,15 +35,15 @@ The builtin go to path mode. Type: [Mode](https://xplr.dev/en/mode) -#### xplr.config.modes.builtin.quick_move +#### xplr.config.modes.builtin.move_to -The builtin quick_move mode. +The builtin move_to mode. Type: [Mode](https://xplr.dev/en/mode) -#### xplr.config.modes.builtin.quick_copy +#### xplr.config.modes.builtin.copy_to -The builtin quick_copy mode. +The builtin copy_to mode. Type: [Mode](https://xplr.dev/en/mode) diff --git a/src/init.lua b/src/init.lua index 0140c3f..9e4bea1 100644 --- a/src/init.lua +++ b/src/init.lua @@ -1297,18 +1297,18 @@ xplr.config.modes.builtin.default = { }, }, ["m"] = { - help = "quick move", + help = "move to", messages = { "PopMode", - { SwitchModeBuiltin = "quick_move" }, + { SwitchModeBuiltin = "move_to" }, { SetInputBuffer = "" }, }, }, ["c"] = { - help = "quick copy", + help = "copy to", messages = { "PopMode", - { SwitchModeBuiltin = "quick_copy" }, + { SwitchModeBuiltin = "copy_to" }, { SetInputBuffer = "" }, }, }, @@ -1476,16 +1476,16 @@ xplr.config.modes.builtin.go_to_path = { }, } --- The builtin quick_move mode. +-- The builtin move_to mode. -- -- Type: [Mode](https://xplr.dev/en/mode) -xplr.config.modes.builtin.quick_move = { - name = "quick_move", +xplr.config.modes.builtin.move_to = { + name = "move_to", prompt = "ð ❯ ", key_bindings = { on_key = { ["enter"] = { - help = "move here", + help = "submit", messages = { { BashExec0 = [===[ @@ -1547,16 +1547,16 @@ xplr.config.modes.builtin.quick_move = { }, } --- The builtin quick_copy mode. +-- The builtin copy_to mode. -- -- Type: [Mode](https://xplr.dev/en/mode) -xplr.config.modes.builtin.quick_copy = { - name = "quick_copy", +xplr.config.modes.builtin.copy_to = { + name = "copy_to", prompt = "ð ❯ ", key_bindings = { on_key = { ["enter"] = { - help = "copy here", + help = "submit", messages = { { BashExec0 = [===[