Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Feb 6, 2025
1 parent e8b4e6a commit 977e184
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lua/dired/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 977e184

Please sign in to comment.