From e6a5cc26d4763e1e2b30edf6fd26ab1300e59423 Mon Sep 17 00:00:00 2001 From: Lauri Niskanen Date: Sat, 6 Jul 2024 22:04:09 +0300 Subject: [PATCH] Change the default keymap for creating links I removed the absolute link key since absolute path symlinks are usually not desired as they don't work if the filesystem is ever mounted in a different path. --- yazi-config/preset/keymap.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yazi-config/preset/keymap.toml b/yazi-config/preset/keymap.toml index 9d9505bb..1cfb2e33 100644 --- a/yazi-config/preset/keymap.toml +++ b/yazi-config/preset/keymap.toml @@ -69,8 +69,8 @@ keymap = [ { on = "X", run = "unyank", desc = "Cancel the yank status of files" }, { on = "p", run = "paste", desc = "Paste the files" }, { on = "P", run = "paste --force", desc = "Paste the files (overwrite if the destination exists)" }, - { on = "-", run = "link", desc = "Symlink the absolute path of files" }, - { on = "_", run = "link --relative", desc = "Symlink the relative path of files" }, + { on = "-", run = "link --relative", desc = "Symlink the files" }, + { on = "_", run = "link --hard", desc = "Hardlink the files" }, { on = "d", run = "remove", desc = "Move the files to the trash" }, { on = "D", run = "remove --permanently", desc = "Permanently delete the files" }, { on = "a", run = "create", desc = "Create a file or directory (ends with / for directories)" },