From c540542da49004a3084b1d3b1d312336d0075ad0 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 18 Sep 2023 07:02:43 +0800 Subject: [PATCH] feat: add `gg`, `G` to the navigation section --- config/preset/keymap.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/preset/keymap.toml b/config/preset/keymap.toml index 38f6562b..572b182e 100644 --- a/config/preset/keymap.toml +++ b/config/preset/keymap.toml @@ -27,6 +27,9 @@ keymap = [ { on = [ "" ], exec = "leave", desc = "Go back to the parent directory" }, { on = [ "" ], exec = "enter", desc = "Enter the child directory" }, + { on = [ "g", "g" ], exec = "arrow -99999999", desc = "Move cursor to the top" }, + { on = [ "G" ], exec = "arrow 99999999", desc = "Move cursor to the bottom" }, + # Selection { on = [ "" ], exec = [ "select --state=none", "arrow 1" ], desc = "Toggle the current selection state" }, { on = [ "v" ], exec = "visual_mode", desc = "Enter visual mode (selection mode)" },