Skip to content

Commit b50889d

Browse files
author
yinchaogao
committed
chose yes default when remove
1 parent 273c170 commit b50889d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/nvim-tree/actions/fs/remove-file.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ function M.fn(node)
107107

108108
if M.config.ui.confirm.remove then
109109
local prompt_select = "Remove " .. node.name .. " ?"
110-
local prompt_input = prompt_select .. " y/n: "
110+
local prompt_input = prompt_select .. " [y]/n: "
111111
lib.prompt(prompt_input, prompt_select, { "y", "n" }, { "Yes", "No" }, function(item_short)
112112
utils.clear_prompt()
113-
if item_short == "y" then
113+
if item_short == "y" or item_short == "" then
114114
do_remove()
115115
end
116116
end)

0 commit comments

Comments
 (0)