quick_move -> move_to and quick_copy -> copy_to

pull/692/head
Arijit Basu 8 months ago
parent 92fbd2017d
commit ba7ebdf544
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

@ -24,7 +24,7 @@ of [modes][4] and the key mappings for each mode.
| ? | f1 | global help menu | | ? | f1 | global help menu |
| G | | go to bottom | | G | | go to bottom |
| V | ctrl-a | select/unselect all | | V | ctrl-a | select/unselect all |
| c | | quick copy | | c | | copy to |
| ctrl-d | | duplicate as | | ctrl-d | | duplicate as |
| ctrl-i | tab | next visited path | | ctrl-i | tab | next visited path |
| ctrl-n | | next selection | | ctrl-n | | next selection |
@ -41,7 +41,7 @@ of [modes][4] and the key mappings for each mode.
| h | left | back | | h | left | back |
| k | up | up | | k | up | up |
| l | right | enter | | l | right | enter |
| m | | quick move | | m | | move to |
| page-down | | scroll down | | page-down | | scroll down |
| page-up | | scroll up | | page-up | | scroll up |
| q | | quit | | q | | quit |
@ -53,36 +53,7 @@ of [modes][4] and the key mappings for each mode.
| ~ | | go home | | ~ | | go home |
| [0-9] | | input | | [0-9] | | input |
### selection_ops ### go_to_path
| 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
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ---------------- | | ----- | ------ | ---------------- |
@ -90,21 +61,7 @@ of [modes][4] and the key mappings for each mode.
| f1 | | global help menu | | f1 | | global help menu |
| tab | | try complete | | tab | | try complete |
### recover ### rename
| key | remaps | action |
| --- | ------ | ---------------- |
| f1 | | global help menu |
### quick_copy
| key | remaps | action |
| ----- | ------ | ---------------- |
| enter | | copy here |
| f1 | | global help menu |
| tab | | try complete |
### create_file
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ---------------- | | ----- | ------ | ---------------- |
@ -112,49 +69,45 @@ of [modes][4] and the key mappings for each mode.
| f1 | | global help menu | | f1 | | global help menu |
| tab | | try complete | | tab | | try complete |
### quit ### recover
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ----------------------- | | --- | ------ | ---------------- |
| enter | | just quit | | f1 | | global help menu |
| f | | quit printing focus |
| f1 | | global help menu |
| p | | quit printing pwd |
| r | | quit printing result |
| s | | quit printing selection |
### relative_path_does_not_match_regex ### go_to
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ---------------- | | --- | ------ | ---------------- |
| enter | | submit | | f | | follow symlink |
| f1 | | global help menu | | f1 | | global help menu |
| g | | top |
| i | | initial $PWD |
| p | | path |
| x | | open in gui |
### rename ### relative_path_does_match_regex
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ---------------- | | ----- | ------ | ---------------- |
| enter | | submit | | enter | | submit |
| f1 | | global help menu | | 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 | | key | remaps | action |
| --- | ------ | ---------------- | | ----- | ------ | -------------------- |
| D | | force delete | | ! | | shell |
| d | | delete | | c | | create |
| f1 | | global help menu | | 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 ### default
@ -168,7 +121,7 @@ of [modes][4] and the key mappings for each mode.
| ? | f1 | global help menu | | ? | f1 | global help menu |
| G | | go to bottom | | G | | go to bottom |
| V | ctrl-a | select/unselect all | | V | ctrl-a | select/unselect all |
| c | | quick copy | | c | | copy to |
| ctrl-d | | duplicate as | | ctrl-d | | duplicate as |
| ctrl-i | tab | next visited path | | ctrl-i | tab | next visited path |
| ctrl-n | | next selection | | ctrl-n | | next selection |
@ -185,7 +138,7 @@ of [modes][4] and the key mappings for each mode.
| h | left | back | | h | left | back |
| k | up | up | | k | up | up |
| l | right | enter | | l | right | enter |
| m | | quick move | | m | | move to |
| page-down | | scroll down | | page-down | | scroll down |
| page-up | | scroll up | | page-up | | scroll up |
| q | | quit | | q | | quit |
@ -197,84 +150,68 @@ of [modes][4] and the key mappings for each mode.
| ~ | | go home | | ~ | | go home |
| [0-9] | | input | | [0-9] | | input |
### create ### debug_error
| key | remaps | action |
| --- | ------ | ---------------- |
| d | | create directory |
| f | | create file |
| f1 | | global help menu |
### number
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ---------------- | | ----- | ------ | ------------------- |
| down | j | to down | | enter | | open logs in editor |
| enter | | to index | | f1 | | global help menu |
| f1 | | global help menu | | q | | quit |
| k | up | to up |
| [0-9] | | input |
### relative_path_does_match_regex ### create_directory
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ---------------- | | ----- | ------ | ---------------- |
| enter | | submit | | enter | | submit |
| f1 | | global help menu | | f1 | | global help menu |
| tab | | try complete |
### go_to ### selection_ops
| key | remaps | action | | key | remaps | action |
| --- | ------ | ---------------- | | --- | ------ | ---------------- |
| f | | follow symlink | | c | | copy here |
| e | | edit selection |
| f1 | | global help menu | | f1 | | global help menu |
| g | | top | | h | | hardlink here |
| i | | initial $PWD | | l | | list selection |
| p | | path | | m | | move here |
| x | | open in gui | | s | | softlink here |
| u | | clear selection |
### quick_move ### relative_path_does_not_match_regex
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ---------------- | | ----- | ------ | ---------------- |
| enter | | move here | | enter | | submit |
| f1 | | global help menu | | f1 | | global help menu |
| tab | | try complete |
### debug_error ### create_file
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ------------------- | | ----- | ------ | ---------------- |
| enter | | open logs in editor | | enter | | submit |
| f1 | | global help menu | | f1 | | global help menu |
| q | | quit | | tab | | try complete |
### filter ### quit
| key | remaps | action | | key | remaps | action |
| --------- | ------ | ---------------------------------- | | ----- | ------ | ----------------------- |
| R | | relative path does not match regex | | enter | | just quit |
| backspace | | remove last filter | | f | | quit printing focus |
| ctrl-r | | reset filters | | f1 | | global help menu |
| ctrl-u | | clear filters | | p | | quit printing pwd |
| f1 | | global help menu | | r | | quit printing result |
| r | | relative path does match regex | | s | | quit printing selection |
### action ### create
| key | remaps | action | | key | remaps | action |
| ----- | ------ | -------------------- | | --- | ------ | ---------------- |
| ! | | shell | | d | | create directory |
| c | | create | | f | | create file |
| e | | open in editor | | f1 | | global help menu |
| 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 |
### vroot ### vroot
@ -288,13 +225,33 @@ of [modes][4] and the key mappings for each mode.
| v | | toggle vroot | | v | | toggle vroot |
| ~ | | vroot $HOME | | ~ | | vroot $HOME |
### create_directory ### search
| key | remaps | action | | key | remaps | action |
| ----- | ------ | ---------------- | | ------ | ------ | ----------------------- |
| enter | | submit | | ctrl-a | | toggle search algorithm |
| f1 | | global help menu | | ctrl-f | | fuzzy search |
| tab | | try complete | | 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 ### sort
@ -321,7 +278,17 @@ of [modes][4] and the key mappings for each mode.
| r | | by relative path | | r | | by relative path |
| s | | by size | | 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 | | key | remaps | action |
| ----- | ------ | ---------------- | | ----- | ------ | ---------------- |
@ -329,20 +296,53 @@ of [modes][4] and the key mappings for each mode.
| f1 | | global help menu | | f1 | | global help menu |
| tab | | try complete | | tab | | try complete |
### search ### edit_permissions
| key | remaps | action | | key | remaps | action |
| ------ | ------ | ----------------------- | | ------ | ------ | ---------------- |
| ctrl-a | | toggle search algorithm | | G | | -group |
| ctrl-f | | fuzzy search | | M | | min |
| ctrl-n | down | down | | O | | -other |
| ctrl-p | up | up | | U | | -user |
| ctrl-r | | regex search | | ctrl-r | | reset |
| ctrl-s | | sort (no search order) | | enter | | submit |
| ctrl-z | | toggle ordering | | f1 | | global help menu |
| enter | | submit | | g | | +group |
| esc | | cancel | | m | | max |
| f1 | | global help menu | | o | | +other |
| left | | back | | u | | +user |
| right | | enter |
| tab | | toggle selection | ### 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 |

@ -35,15 +35,15 @@ The builtin go to path mode.
Type: [Mode](https://xplr.dev/en/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) 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) Type: [Mode](https://xplr.dev/en/mode)

@ -1297,18 +1297,18 @@ xplr.config.modes.builtin.default = {
}, },
}, },
["m"] = { ["m"] = {
help = "quick move", help = "move to",
messages = { messages = {
"PopMode", "PopMode",
{ SwitchModeBuiltin = "quick_move" }, { SwitchModeBuiltin = "move_to" },
{ SetInputBuffer = "" }, { SetInputBuffer = "" },
}, },
}, },
["c"] = { ["c"] = {
help = "quick copy", help = "copy to",
messages = { messages = {
"PopMode", "PopMode",
{ SwitchModeBuiltin = "quick_copy" }, { SwitchModeBuiltin = "copy_to" },
{ SetInputBuffer = "" }, { 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) -- Type: [Mode](https://xplr.dev/en/mode)
xplr.config.modes.builtin.quick_move = { xplr.config.modes.builtin.move_to = {
name = "quick_move", name = "move_to",
prompt = "ð ", prompt = "ð ",
key_bindings = { key_bindings = {
on_key = { on_key = {
["enter"] = { ["enter"] = {
help = "move here", help = "submit",
messages = { messages = {
{ {
BashExec0 = [===[ 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) -- Type: [Mode](https://xplr.dev/en/mode)
xplr.config.modes.builtin.quick_copy = { xplr.config.modes.builtin.copy_to = {
name = "quick_copy", name = "copy_to",
prompt = "ð ", prompt = "ð ",
key_bindings = { key_bindings = {
on_key = { on_key = {
["enter"] = { ["enter"] = {
help = "copy here", help = "submit",
messages = { messages = {
{ {
BashExec0 = [===[ BashExec0 = [===[

Loading…
Cancel
Save