Last active
June 23, 2026 22:20
-
-
Save masato3/34f235aa3bae9a1b6dd900daf618c27e to your computer and use it in GitHub Desktop.
Yazi 設定ファイル keymap.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://yazi-rs.github.io/docs/configuration/keymap | |
| # https://github.com/sxyazi/yazi/blob/shipped/yazi-config/preset/keymap-default.toml | |
| # -------------------------------------------------------------------- | |
| [mgr] | |
| prepend_keymap = [ | |
| { on = "<C-w>", run = "close" }, | |
| # Hopping | |
| # 5回分のカーソル移動 | |
| { on = "<C-j>", run = [ | |
| "arrow next", | |
| "arrow next", | |
| "arrow next", | |
| "arrow next", | |
| "arrow next" | |
| ] }, | |
| { on = "<C-k>", run = [ | |
| "arrow prev", | |
| "arrow prev", | |
| "arrow prev", | |
| "arrow prev", | |
| "arrow prev" | |
| ] }, | |
| # Navigation | |
| { on = "u", run = "leave" }, | |
| # Toggle | |
| # NOTE: S-Space動かず KeyhacでF11変換 | |
| { on = "<F11>", run = ["toggle", "arrow -1"] }, | |
| # Spotting | |
| { on = "<A-Enter>", run = "spot" }, | |
| # Operation | |
| # NOTE: unyank Y/X escape Ctrl-[ | |
| { on = "<Esc>", run = ["unyank", "escape"] }, | |
| { on = "e", run = 'shell "C:/tools/WezTerm/nvim-smart_close-tab.vbs %s1"' }, | |
| { on = "E", run = 'shell "C:/tools/WezTerm/nvim-smart_focus-tab.vbs %s1"' }, | |
| { on = "<C-Enter>", run = 'shell "C:/tools/esExt/esExt5.exe %*"' }, | |
| { on = "<C-S-Enter>", run = 'shell "C:/tools/extLauncher/extLauncher.exe %*"' }, | |
| # 無効 | |
| { on = "-", run = "noop" }, | |
| { on = "_", run = "noop" }, | |
| { on = "<C-->", run = "noop" }, | |
| # Linemode | |
| { on = ["m", "d"], run = "linemode my_default", desc = "linemode: my default" }, | |
| # Copy | |
| { on = ["<C-y>", "f"], run = "copy filename", desc = "copy: full-name" }, | |
| { on = ["<C-y>", "n"], run = "copy name_without_ext", desc = "copy: name" }, | |
| { on = ["<C-y>", "p"], run = "copy dirname", desc = "copy: parent-path" }, | |
| { on = ["<C-y>", "y"], run = "copy path", desc = "copy: path" }, | |
| # Goto | |
| { on = ["g", "n", "d"], run = ["tab_create", "cd Z:/downloads-z"], desc = "gn: Z:/downloads-z" }, | |
| { on = ["g", "n", "n"], run = ["tab_create", "cd %localappdata%/nvim/lua"], desc = "gn: %localappdata%/nvim/lua" }, | |
| { on = ["g", "n", "N"], run = ["tab_create", "cd O:/archives/neovim/nvim"], desc = "gn: O:/archives/neovim/nvim" }, | |
| { on = ["g", "n", "p"], run = ["tab_create", "cd C:/tools/ppx"], desc = "gn: C:/tools/ppx" }, | |
| { on = ["g", "n", "P"], run = ["tab_create", "cd O:/archives/ppx"], desc = "gn: O:/archives/ppx" }, | |
| { on = ["g", "n", "t"], run = ["tab_create", "cd Z:/Temp"], desc = "gn: Z:/Temp" }, | |
| { on = ["g", "n", "y"], run = ["tab_create", "cd %appdata%/yazi/config"], desc = "gn: %appdata%/yazi/config" }, | |
| { on = ["g", "n", "Y"], run = ["tab_create", "cd O:/archives/yazi"], desc = "gn: O:/archives/yazi" }, | |
| { on = ["g", "o", "d"], run = "cd Z:/downloads-z", desc = "go: Z:/downloads-z" }, | |
| { on = ["g", "o", "n"], run = "cd %localappdata%/nvim/lua", desc = "gn: %localappdata%/nvim/lua" }, | |
| { on = ["g", "o", "N"], run = "cd O:/archives/neovim/nvim", desc = "gn: %localappdata%/nvim" }, | |
| { on = ["g", "o", "p"], run = "cd C:/tools/ppx", desc = "go: C:/tools/ppx" }, | |
| { on = ["g", "o", "P"], run = "cd O:/archives/ppx", desc = "go: O:/archives/ppx" }, | |
| { on = ["g", "o", "t"], run = "cd Z:/Temp", desc = "go: Z:/Temp" }, | |
| { on = ["g", "o", "w"], run = "cd Z:/works", desc = "go: Z:/works" }, | |
| { on = ["g", "o", "y"], run = "cd %appdata%/yazi/config", desc = "go: %appdata%/yazi/config" }, | |
| { on = ["g", "o", "Y"], run = "cd O:/archives/yazi", desc = "go: O:/archives/yazi" }, | |
| # Tabs | |
| { on = "t", run = "tab_create Z:/works" }, | |
| { on = "T", run = "tab_create --current" }, | |
| { on = "h", run = "tab_switch -1 --relative" }, | |
| { on = "l", run = "tab_switch 1 --relative" }, | |
| # plugin | |
| # clipboard | |
| # システムクリップボードにもコピー | |
| { on = "c", run = ["yank", "plugin clipboard -- --action=copy"] }, | |
| { on = "y", run = ["yank", "plugin clipboard -- --action=copy"] }, | |
| # システムクリップボードからファイルを現在のディレクトリに貼り付け | |
| # NOTE: 画像無理 ファイル不安定 | |
| { on = "<C-v>", run = ["plugin clipboard -- --action=paste"] }, | |
| { on = "<A-p>", run = ["plugin clipboard -- --action=paste"] }, | |
| # close-and-restore-tab | |
| { on = "<C-T>", run = "plugin close-and-restore-tab restore" }, | |
| # confirm-quit.yazi | |
| { on = "q", run = "plugin confirm-quit" }, | |
| # Copy-file-contents | |
| { on = ["<C-y>", "c"], run = "plugin copy-file-contents", desc = "copy-file-contents: copy contents" }, | |
| # eza-preview | |
| { on = ["z", "e", "t"], run = "plugin eza-preview", desc = "eza-preview: toggle tree/list " }, | |
| { on = ["z", "e", "i"], run = "plugin eza-preview inc-level", desc = "eza-preview: level inc " }, | |
| { on = ["z", "e", "d"], run = "plugin eza-preview dec-level", desc = "eza-preview: level dec " }, | |
| # fzf | |
| { on = ["z", "f"], run = "plugin fzf", desc = "fzf: under current" }, | |
| # goto-sibling.yazi | |
| { on = ["<C-p>"], run = "plugin goto-sibling -- prev --wrap" }, | |
| { on = ["<C-n>"], run = "plugin goto-sibling -- next --wrap" }, | |
| # lazygit.yazi | |
| { on = ["z", "l"], run = "plugin lazygit", desc = "lazygit: open" }, | |
| # smart-enter | |
| { on = "o", run = "plugin smart-enter" }, | |
| { on = "<Enter>", run = "plugin smart-enter" }, | |
| # smart-tab | |
| # https://yazi-rs.github.io/docs/tips/#smart-tab | |
| { on = "<C-o>", run = "plugin smart-tab" }, | |
| # toggle-pane.yazi | |
| { on = ["z", "p"], run = "plugin toggle-pane min-preview", desc = "toggle-pane: show/hide preview" }, | |
| # NOTE: 画像のみ表示のときに画像サイズ変わらない | |
| { on = ["z", "P"], run = "plugin toggle-pane max-preview", desc = "toggle-pane: maximize/restore preview" }, | |
| # zoxide | |
| { on = ["z", "i"], run = "plugin zoxide", desc = "zoxide: open" }, | |
| # 新タブ開いてzoxide | |
| { on = ["z", "I"], run = ["tab_create", "plugin zoxide"], desc = "zoxide: new tab" }, | |
| ] | |
| # -------------------------------------------------------------------- | |
| [input] | |
| prepend_keymap = [ | |
| # Undo/Redo/Casefy | |
| # nomalモードはredo visualモードはupper | |
| { on = "U", run = ["redo", "casefy upper"] }, | |
| # Cut/Yank/Paste | |
| { on = "<C-v>", run = ["escape", "paste"] }, | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment