From 9832d50fde2ceb1419b3fa1ec01b900b47a27461 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 17 Sep 2024 02:07:12 -0700 Subject: [PATCH] feat: set keybinds manually in oil and optimize keybinds --- config/plugins/navigation.nix | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/config/plugins/navigation.nix b/config/plugins/navigation.nix index 9037207..c7f2f93 100644 --- a/config/plugins/navigation.nix +++ b/config/plugins/navigation.nix @@ -49,11 +49,25 @@ }); settings = { keymaps = { - "." = "actions.parent"; - "-" = ""; - "" = ""; + "J" = "actions.parent"; "Q" = "actions.close"; + "" = "actions.select_split"; + "" = "actions.refresh"; + "" = "actions.preview"; + "" = "actions.select_vsplit"; + "" = "actions.select_tab"; + "" = "actions.select"; + "K" = "actions.select"; + _ = "actions.open_cwd"; + "`" = "actions.cd"; + "g." = "actions.toggle_hidden"; + "g?" = "actions.show_help"; + "g\\" = "actions.toggle_trash"; + gs = "actions.change_sort"; + gx = "actions.open_external"; + "~" = "actions.tcd"; }; + use_default_keymaps = false; }; }; harpoon = {