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 ---]] -