mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
attempt to fix #4 by reverting to vim.fn api from vim.ui api.
This commit is contained in:
@@ -460,7 +460,12 @@ local function on_create(title)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local CreateNote = function(_)
|
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
|
end
|
||||||
|
|
||||||
--
|
--
|
||||||
@@ -501,7 +506,12 @@ local function on_create_with_template(title)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local CreateNoteSelectTemplate = function(_)
|
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
|
end
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|||||||
Reference in New Issue
Block a user