-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathkeymap.toml
55 lines (45 loc) · 2.46 KB
/
keymap.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
# Yazi keymaps
# ,---,---,---,---,---,---,---,---,---,---,---,---,---,-----,
# | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | <- |
# |---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,---|
# | ⭲ | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
# |-----',--',--',--',--',--',--',--',--',--',--',--',--'---|
# | Caps | A | S | D | F | G | H | J | K | L | ; | ' | ⏎ |
# |------'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'------|
# | ⇧ | Z | X | C | V | B | N | M | , | . | / | ⇧ |
# |---,---,'--,'---'---'---'---'---'---'---',--',--'-,--,---'
# | | ^ | ⌥ | ⌘ | ␣ | ⌘ | ⌥ |.--.:--:.--.
# '---'---'---'----'-------------------'----'---''--''--''--'
[manager]
prepend_keymap = [
{ on = [ "l" ], run = "plugin smart-enter", desc = "Enter the child directory, or open the file" },
{ on = [ "i" ], run = "LESS='-iWQMXR~' bat --paging=always --theme=TwoDark {}" },
{ on = [ "<C-s>" ], run = 'shell "$SHELL" --block', desc = "Open shell here" },
# Selection
{ on = [ "*" ], run = "toggle_all", desc = "Inverse selection" },
# Operation
# { on = ["<C-Enter>"], run = "open --interactive", desc = "Open the selected files interactively" },
# Goto, tabs and help
{ on = [ "g", "?" ], run = "help", desc = "Help" },
{ on = [ "g", "o" ], run = "cd ~/code", desc = "Go to code directory" },
{ on = [ "g", "t" ], run = "tab_switch 1 --relative", desc = "Switch to the next tab" },
{ on = [ "g", "T" ], run = "tab_switch -1 --relative", desc = "Switch to the previous tab" },
# Plugins
{ on = "f", run = "plugin jump-to-char", desc = "Jump to char" },
{ on = [ "<Tab>" ], run = "plugin max-preview", desc = "Maximize preview" },
{ on = [ "<C-g>" ], run = "plugin hide-preview", desc = "Hide preview" },
{ on = [ "c", "a" ], run = "plugin ouch --args=zip", desc = "Compress with ouch" },
]
append_keymap = [
{ on = [ "<Esc>" ], run = "close", desc = "Cancel input" },
]
[help]
prepend_keymap = [
{ on = "<C-d>", run = "arrow 25", desc = "Move cursor down half page" },
{ on = "<C-u>", run = "arrow -25", desc = "Move cursor up half page" },
{ on = "<C-f>", run = "arrow 100%", desc = "Move cursor down one page" },
{ on = "<C-b>", run = "arrow -100%", desc = "Move cursor up one page" },
{ on = [ "g", "g" ], run = "arrow -99999999", desc = "Move cursor to the top" },
{ on = "G", run = "arrow 99999999", desc = "Move cursor to the bottom" },
]