From 3b2d141ca4ba48f6395ea76ff03d512b35281419 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 24 Jul 2023 08:20:06 +0800 Subject: [PATCH] feat: add goto default config --- config/keymap.toml | 6 ++++++ docs/keymap.md | 3 +++ 2 files changed, 9 insertions(+) diff --git a/config/keymap.toml b/config/keymap.toml index ebe84cfe..d20d5c2d 100644 --- a/config/keymap.toml +++ b/config/keymap.toml @@ -68,6 +68,12 @@ keymap = [ # Tasks { on = [ "w" ], exec = "tasks_show" }, + + # Goto + { on = [ "g", "h" ], exec = "cd ~" }, + { on = [ "g", "c" ], exec = "cd ~/.config" }, + { on = [ "g", "d" ], exec = "cd ~/Downloads" }, + { on = [ "g", "t" ], exec = "cd /tmp" }, ] [tasks] diff --git a/docs/keymap.md b/docs/keymap.md index 85f7969e..65b10e79 100644 --- a/docs/keymap.md +++ b/docs/keymap.md @@ -16,6 +16,9 @@ - enter: Enter the child directory. - back: Go back to the previous directory. - forward: Go forward to the next directory. +- cd: Change the current directory. + + - `path`: the path to change to. ### Selection