This commit is contained in:
Rene Schallner
2021-11-21 21:32:35 +01:00
parent 8a974d1279
commit 5d25dd0a26

View File

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