From adbaf40828fa8c50545d9886d38318eaaa56d5c1 Mon Sep 17 00:00:00 2001 From: js0ny Date: Thu, 2 Oct 2025 01:59:32 +0100 Subject: [PATCH] fix: less, yazi --- home/dot_config/lesskey | 16 +++++----- home/dot_config/yazi/keymap.toml | 52 -------------------------------- 2 files changed, 8 insertions(+), 60 deletions(-) diff --git a/home/dot_config/lesskey b/home/dot_config/lesskey index c30a1cc..0edf7ae 100644 --- a/home/dot_config/lesskey +++ b/home/dot_config/lesskey @@ -17,11 +17,11 @@ # Format: key action # Arrow Remap (hnei -> hjkl) -n forw-line -e back-line -N forw-line-force -E back-line-force - -# search with k : ne[k]st -k repeat-search -K reverse-search +# n forw-line +# e back-line +# N forw-line-force +# E back-line-force +# +# # search with k : ne[k]st +# k repeat-search +# K reverse-search diff --git a/home/dot_config/yazi/keymap.toml b/home/dot_config/yazi/keymap.toml index 31fb743..31bca00 100644 --- a/home/dot_config/yazi/keymap.toml +++ b/home/dot_config/yazi/keymap.toml @@ -6,65 +6,13 @@ prepend_keymap = [ - # Hopping - { on = "e", run = "arrow -1", desc = "Move cursor up" }, - { on = "n", run = "arrow 1", desc = "Move cursor down" }, - { on = "i", run = "enter", desc = "Enter the child directory" }, - { on = "I", run = "forward", desc = "Go forward to the next directory" }, # Seeking { on = "E", run = "seek -5", desc = "Seek up 5 units in the preview" }, { on = "N", run = "seek 5", desc = "Seek down 5 units in the preview" }, # Find - { on = "k", run = "find_arrow", desc = "Go to the next found" }, - { on = "K", run = "find_arrow --previous", desc = "Go to the previous found" }, { on = ["g", "p"], run = "cd ~/Pictures", desc = "Go ~/Pictures/"} ] - -[tasks] - -prepend_keymap = [ - { on = "e", run = "arrow -1", desc = "Move cursor up" }, - { on = "n", run = "arrow 1", desc = "Move cursor down" }, -] - -[select] - -prepend_keymap = [ - { on = "e", run = "arrow -1", desc = "Move cursor up" }, - { on = "n", run = "arrow 1", desc = "Move cursor down" }, -] - -[input] - -prepend_keymap = [ - # Mode - { on = "l", run = "insert", desc = "Enter insert mode" }, - { on = "L", run = [ "move -999", "insert" ], desc = "Move to the BOL, and enter insert mode" }, - { on = "i", run = "move 1", desc = "Move forward a character" }, - { on = "j", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, -] - -[confirm] -prepend_keymap = [ - { on = "N", run = "close", desc = "Cancel the confirm" }, - - { on = "e", run = "arrow -1", desc = "Move cursor up" }, - { on = "n", run = "arrow 1", desc = "Move cursor down" }, -] - -[completion] - -prepend_keymap = [ -] - -[help] - -prepend_keymap = [ - # Navigation - { on = "e", run = "arrow -1", desc = "Move cursor up" }, - { on = "n", run = "arrow 1", desc = "Move cursor down" }, -]