From 977e1842ed6190cca1869e60a18ba57c61b6d6ba Mon Sep 17 00:00:00 2001 From: glepnir Date: Thu, 6 Feb 2025 16:39:57 +0800 Subject: [PATCH] update --- lua/dired/init.lua | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lua/dired/init.lua b/lua/dired/init.lua index 0b56e09..fd05b1f 100644 --- a/lua/dired/init.lua +++ b/lua/dired/init.lua @@ -796,15 +796,9 @@ Browser.setup = function(state) local new_path = vim.fs.joinpath(current, name) if not PathOps.isDirectory(search_path) and not PathOps.isFile(search_path) then - vim.ui.input({ - prompt = 'Create path and file: ' .. search_path .. '? (y/n): ', - }, function(input) - if input and input:lower() == 'y' then - Actions.createAndEdit(state, search_path).fork(function(err) - Notify.err(err) - end, function() end) - end - end) + Actions.createAndEdit(state, search_path).fork(function(err) + Notify.err(err) + end, function() end) return end