From fe02c6e258dfe8d45296ad0173b14f4841899a16 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 13 Aug 2026 16:47:17 -0400 Subject: [PATCH] feat(mini-files): change delete prompt default to yes and accept empty answer as confirmation --- lua/plugins/mini-files.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/mini-files.lua b/lua/plugins/mini-files.lua index 17cf538..513de2a 100644 --- a/lua/plugins/mini-files.lua +++ b/lua/plugins/mini-files.lua @@ -89,9 +89,9 @@ local function delete_entry() if entry == nil then return end local suffix = entry.fs_type == "directory" and "/" or "" require("snacks").input({ - prompt = ("Delete %s%s? [y/N]"):format(entry.name, suffix), + prompt = ("Delete %s%s? [Y/n]"):format(entry.name, suffix), }, function(answer) - if answer == nil or not vim.tbl_contains({ "y", "yes" }, answer:lower()) then return end + if answer == nil or not vim.tbl_contains({ "", "y", "yes" }, answer:lower()) then return end vim.schedule(function() vim.fn.delete(entry.path, "rf") mf.synchronize()