Update: 2024-10-17

This commit is contained in:
2024-10-17 12:43:48 +03:00
parent eae6ecaebb
commit e2c877478c
68 changed files with 3579 additions and 1056 deletions

View File

@@ -45,11 +45,11 @@ keymap = [
{on = [ "G" ], run = "arrow 99999999", desc = "Move cursor to the bottom"},
# Selection
{on = [ "<Space>" ], run = [ "select --state=none", "arrow 1" ], desc = "Toggle the current selection state"},
{on = [ "<Space>" ], run = [ "toggle --state=none", "arrow 1" ], desc = "Toggle the current selection state"},
{on = [ "v" ], run = "visual_mode", desc = "Enter visual mode (selection mode)"},
{on = [ "V" ], run = "visual_mode --unset", desc = "Enter visual mode (unset mode)"},
{on = [ "<C-a>" ], run = "select_all --state=true", desc = "Select all files"},
{on = [ "<C-r>" ], run = "select_all --state=none", desc = "Inverse selection of all files"},
{on = [ "<C-a>" ], run = "toggle_all --state=true", desc = "Select all files"},
{on = [ "<C-r>" ], run = "toggle_all --state=none", desc = "Inverse selection of all files"},
# Operation
{on = [ "e" ], run = "open", desc = "Open the selected files"},
@@ -159,11 +159,12 @@ prepend_keymap = [
# chmod
{on = [ "c", "m" ], run = "plugin chmod", desc = "Chmod on selected files"},
# Archive
{on = [ "c", "a" ], run = "plugin archive", desc = "Archive selected files"},
{on = [ "c", "a" ], run = "plugin ouch --args=zip", desc = "Compress with ouch"},
# Augment Command
{on = [ "l" ], run = "plugin augment-command --args='enter'", desc = "Enter a directory and skip directories with only a single subdirectory"},
{on = [ "k" ], run = "plugin augment-command --args='arrow -1'", desc = "Move cursor up"},
{on = [ "r" ], run = "plugin augment-command --args='rename --cursor=before_ext'", desc = "Rename a file or directory"},
{on = [ "R" ], run = "plugin augment-command --args='rename'", desc = "Rename a file or directory"},
{on = [ "D" ], run = "plugin augment-command --args='remove --permanently'", desc = "Permanently delete the files"},
# Dragon
{on = [ "m", "a" ], run = ''' shell 'ripdrag -atk "$@"' --confirm ''', desc = "Drag and drop all"},
@@ -175,15 +176,16 @@ prepend_keymap = [
# Hide Preview
{on = "<C-t>", run = "plugin --sync hide-preview", desc = "Hide or show preview"},
# Relative motions
# {on = [ "1" ], run = "plugin relative-motions --args=1", desc = "Move in relative steps"},
# {on = [ "2" ], run = "plugin relative-motions --args=2", desc = "Move in relative steps"},
# {on = [ "3" ], run = "plugin relative-motions --args=3", desc = "Move in relative steps"},
# {on = [ "4" ], run = "plugin relative-motions --args=4", desc = "Move in relative steps"},
# {on = [ "5" ], run = "plugin relative-motions --args=5", desc = "Move in relative steps"},
# {on = [ "6" ], run = "plugin relative-motions --args=6", desc = "Move in relative steps"},
# {on = [ "7" ], run = "plugin relative-motions --args=7", desc = "Move in relative steps"},
# {on = [ "8" ], run = "plugin relative-motions --args=8", desc = "Move in relative steps"},
# {on = [ "9" ], run = "plugin relative-motions --args=9", desc = "Move in relative steps"},
{on = [ "1" ], run = "plugin relative-motions --args=1", desc = "Move in relative steps"},
{on = [ "2" ], run = "plugin relative-motions --args=2", desc = "Move in relative steps"},
{on = [ "3" ], run = "plugin relative-motions --args=3", desc = "Move in relative steps"},
{on = [ "4" ], run = "plugin relative-motions --args=4", desc = "Move in relative steps"},
{on = [ "5" ], run = "plugin relative-motions --args=5", desc = "Move in relative steps"},
{on = [ "6" ], run = "plugin relative-motions --args=6", desc = "Move in relative steps"},
{on = [ "7" ], run = "plugin relative-motions --args=7", desc = "Move in relative steps"},
{on = [ "8" ], run = "plugin relative-motions --args=8", desc = "Move in relative steps"},
{on = [ "9" ], run = "plugin relative-motions --args=9", desc = "Move in relative steps"},
{on = [ "c", "s" ], run = "plugin what-size", desc = "Calc size of selection or cwd"},
]
[tasks]