From 50c99967decd403809aceb0a15eb194532a6c63d Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Sat, 4 Dec 2021 19:31:14 +0100 Subject: [PATCH] fix #20 follow-up: remove bindings preventing normal mode --- lua/telekasten.lua | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lua/telekasten.lua b/lua/telekasten.lua index b349245..73ac4be 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -403,7 +403,7 @@ local function find_files_sorted(opts) -- picker.finder.close = function() -- print('on close') -- print(vim.inspect(picker:get_selection())) - -- -- unfortunately, no way to tell if the selection was confirmed or + -- -- unfortunately, no way to tell if the selection was confirmed or -- -- canceled out -- oc() -- -- alternative: attach default mappings for and @@ -528,9 +528,7 @@ local function FindDailyNotes(opts) map("i", "", picker_actions.paste_link(opts)) map("n", "", picker_actions.yank_link(opts)) map("n", "", picker_actions.paste_link(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) return true end, @@ -574,9 +572,7 @@ local function FindWeeklyNotes(opts) map("i", "", picker_actions.paste_link(opts)) map("n", "", picker_actions.yank_link(opts)) map("n", "", picker_actions.paste_link(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) return true end, @@ -733,9 +729,7 @@ local function FollowLink(opts) map("i", "", picker_actions.paste_link(opts)) map("n", "", picker_actions.yank_link(opts)) map("n", "", picker_actions.paste_link(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) return true end, @@ -999,9 +993,7 @@ local function GotoToday(opts) map("i", "", picker_actions.paste_link(opts)) map("n", "", picker_actions.yank_link(opts)) map("n", "", picker_actions.paste_link(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) return true end, @@ -1182,9 +1174,7 @@ local function on_create(opts, title) map("i", "", picker_actions.paste_link(opts)) map("n", "", picker_actions.yank_link(opts)) map("n", "", picker_actions.paste_link(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) return true end, @@ -1299,9 +1289,7 @@ local function GotoThisWeek(opts) map("i", "", picker_actions.paste_link(opts)) map("n", "", picker_actions.yank_link(opts)) map("n", "", picker_actions.paste_link(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) - map("i", "", picker_actions.close(opts)) map("n", "", picker_actions.close(opts)) return true end,