attempt to fix #4 by reverting to vim.fn api from vim.ui api.

This commit is contained in:
Rene Schallner
2021-11-27 06:51:56 +01:00
parent cc8e735dff
commit 54e6af33f4

View File

@@ -460,7 +460,12 @@ local function on_create(title)
end
local CreateNote = function(_)
vim.ui.input({ prompt = "Title: " }, on_create)
-- vim.ui.input causes ppl problems - see issue #4
-- vim.ui.input({ prompt = "Title: " }, on_create)
local title = vim.fn.input("Title: ")
if #title > 0 then
on_create(title)
end
end
--
@@ -501,7 +506,12 @@ local function on_create_with_template(title)
end
local CreateNoteSelectTemplate = function(_)
vim.ui.input({ prompt = "Title: " }, on_create_with_template)
-- vim.ui.input causes ppl problems - see issue #4
-- vim.ui.input({ prompt = "Title: " }, on_create_with_template)
local title = vim.fn.input("Title: ")
if #title > 0 then
on_create_with_template(title)
end
end
--