From 646a41317a28e877346c1fdbfe4fe96d96399595 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 15 Jan 2024 23:06:27 +0800 Subject: [PATCH] Add `--cursor` option to `rename` command --- yazi-config/preset/keymap.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-config/preset/keymap.toml b/yazi-config/preset/keymap.toml index a464e73e..3e2aac05 100644 --- a/yazi-config/preset/keymap.toml +++ b/yazi-config/preset/keymap.toml @@ -71,7 +71,7 @@ keymap = [ { on = [ "d" ], exec = [ "remove", "escape --visual --select" ], desc = "Move the files to the trash" }, { on = [ "D" ], exec = [ "remove --permanently", "escape --visual --select" ], desc = "Permanently delete the files" }, { on = [ "a" ], exec = "create", desc = "Create a file or directory (ends with / for directories)" }, - { on = [ "r" ], exec = "rename", desc = "Rename a file or directory" }, + { on = [ "r" ], exec = "rename --cursor=before_ext", desc = "Rename a file or directory" }, { on = [ ";" ], exec = "shell", desc = "Run a shell command" }, { on = [ ":" ], exec = "shell --block", desc = "Run a shell command (block the UI until the command finishes)" }, { on = [ "." ], exec = "hidden toggle", desc = "Toggle the visibility of hidden files" },