quick_move -> move_to and quick_copy -> copy_to

This commit is contained in:
Arijit Basu 2024-02-02 12:42:33 +05:30
parent 92fbd2017d
commit ba7ebdf544
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077
3 changed files with 218 additions and 218 deletions

View File

@ -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,6 +53,119 @@ of [modes][4] and the key mappings for each mode.
| ~ | | go home | | ~ | | go home |
| [0-9] | | input | | [0-9] | | input |
### go_to_path
| key | remaps | action |
| ----- | ------ | ---------------- |
| enter | | submit |
| f1 | | global help menu |
| tab | | try complete |
### rename
| key | remaps | action |
| ----- | ------ | ---------------- |
| enter | | submit |
| f1 | | global help menu |
| tab | | try complete |
### recover
| key | remaps | action |
| --- | ------ | ---------------- |
| f1 | | global help menu |
### go_to
| key | remaps | action |
| --- | ------ | ---------------- |
| f | | follow symlink |
| f1 | | global help menu |
| g | | top |
| i | | initial $PWD |
| p | | path |
| x | | open in gui |
### relative_path_does_match_regex
| key | remaps | action |
| ----- | ------ | ---------------- |
| enter | | submit |
| f1 | | global help menu |
### action
| 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
| key | remaps | action |
| --------- | ------ | ------------------- |
| ( | | prev deep branch |
| ) | | next deep branch |
| . | | show hidden |
| / | ctrl-f | search |
| : | | action |
| ? | f1 | global help menu |
| G | | go to bottom |
| V | ctrl-a | select/unselect all |
| c | | copy to |
| ctrl-d | | duplicate as |
| ctrl-i | tab | next visited path |
| ctrl-n | | next selection |
| ctrl-o | | last visited path |
| ctrl-p | | prev selection |
| ctrl-r | | refresh screen |
| ctrl-u | | clear selection |
| ctrl-w | | switch layout |
| d | | delete |
| down | j | down |
| enter | | quit with result |
| f | | filter |
| g | | go to |
| h | left | back |
| k | up | up |
| l | right | enter |
| m | | move to |
| page-down | | scroll down |
| page-up | | scroll up |
| q | | quit |
| r | | rename |
| s | | sort |
| space | v | toggle selection |
| { | | scroll up half |
| } | | scroll down half |
| ~ | | go home |
| [0-9] | | input |
### debug_error
| key | remaps | action |
| ----- | ------ | ------------------- |
| enter | | open logs in editor |
| f1 | | global help menu |
| q | | quit |
### create_directory
| key | remaps | action |
| ----- | ------ | ---------------- |
| enter | | submit |
| f1 | | global help menu |
| tab | | try complete |
### selection_ops ### selection_ops
| key | remaps | action | | key | remaps | action |
@ -66,43 +179,12 @@ of [modes][4] and the key mappings for each mode.
| s | | softlink here | | s | | softlink here |
| u | | clear selection | | u | | clear selection |
### edit_permissions ### relative_path_does_not_match_regex
| 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 |
| ----- | ------ | ---------------- | | ----- | ------ | ---------------- |
| enter | | submit | | enter | | submit |
| f1 | | global help menu | | 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 ### create_file
@ -123,80 +205,6 @@ of [modes][4] and the key mappings for each mode.
| r | | quit printing result | | r | | quit printing result |
| s | | quit printing selection | | s | | quit printing selection |
### relative_path_does_not_match_regex
| key | remaps | action |
| ----- | ------ | ---------------- |
| enter | | submit |
| f1 | | global help menu |
### rename
| 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
| key | remaps | action |
| --- | ------ | ---------------- |
| D | | force delete |
| d | | delete |
| f1 | | global help menu |
### default
| key | remaps | action |
| --------- | ------ | ------------------- |
| ( | | prev deep branch |
| ) | | next deep branch |
| . | | show hidden |
| / | ctrl-f | search |
| : | | action |
| ? | f1 | global help menu |
| G | | go to bottom |
| V | ctrl-a | select/unselect all |
| c | | quick copy |
| ctrl-d | | duplicate as |
| ctrl-i | tab | next visited path |
| ctrl-n | | next selection |
| ctrl-o | | last visited path |
| ctrl-p | | prev selection |
| ctrl-r | | refresh screen |
| ctrl-u | | clear selection |
| ctrl-w | | switch layout |
| d | | delete |
| down | j | down |
| enter | | quit with result |
| f | | filter |
| g | | go to |
| h | left | back |
| k | up | up |
| l | right | enter |
| m | | quick move |
| page-down | | scroll down |
| page-up | | scroll up |
| q | | quit |
| r | | rename |
| s | | sort |
| space | v | toggle selection |
| { | | scroll up half |
| } | | scroll down half |
| ~ | | go home |
| [0-9] | | input |
### create ### create
| key | remaps | action | | key | remaps | action |
@ -205,77 +213,6 @@ of [modes][4] and the key mappings for each mode.
| f | | create file | | f | | create file |
| f1 | | global help menu | | f1 | | global help menu |
### number
| key | remaps | action |
| ----- | ------ | ---------------- |
| down | j | to down |
| enter | | to index |
| f1 | | global help menu |
| k | up | to up |
| [0-9] | | input |
### relative_path_does_match_regex
| key | remaps | action |
| ----- | ------ | ---------------- |
| enter | | submit |
| f1 | | global help menu |
### go_to
| key | remaps | action |
| --- | ------ | ---------------- |
| f | | follow symlink |
| f1 | | global help menu |
| g | | top |
| i | | initial $PWD |
| p | | path |
| x | | open in gui |
### quick_move
| key | remaps | action |
| ----- | ------ | ---------------- |
| enter | | move here |
| f1 | | global help menu |
| tab | | try complete |
### debug_error
| key | remaps | action |
| ----- | ------ | ------------------- |
| enter | | open logs in editor |
| f1 | | global help menu |
| q | | quit |
### 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 |
### action
| 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 |
### vroot ### vroot
| key | remaps | action | | key | remaps | action |
@ -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 |

View File

@ -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)

View File

@ -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 = [===[