From 5d25dd0a26ca202f4fdec0e3db84760c4b559ede Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Sun, 21 Nov 2021 21:32:35 +0100 Subject: [PATCH] cleanup --- lua/telekasten.lua | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/lua/telekasten.lua b/lua/telekasten.lua index 5597915..9762f00 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -322,7 +322,7 @@ end -- find the file linked to by the word under the cursor -- SearchNotes = function(opts) - opts = {} or opts + input opts = {} or opts if (check_local_finder() == true) then builtin.live_grep({ @@ -439,24 +439,3 @@ local M = { } return M - - - ---[[ --- interesting snippet: - -- set the filename based on the current date - local filepath = vim.g['wiki_root']..'journal/'..os.date('%Y-%m-%d')..'.md' - - -- if the file doesn't exist - -- then created file and write date to the top of the file - if not file_exists(filepath) then - file = io.open(filepath, 'a') - io.output(file) - io.write(os.date("# %a, %d %B '%y")) - io.close(file) - end - api.nvim_command('edit '..filepath) - end - return M ---]] -