mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 14:14:24 -05:00
cleanup
This commit is contained in:
@@ -322,7 +322,7 @@ end
|
|||||||
-- find the file linked to by the word under the cursor
|
-- find the file linked to by the word under the cursor
|
||||||
--
|
--
|
||||||
SearchNotes = function(opts)
|
SearchNotes = function(opts)
|
||||||
opts = {} or opts
|
input opts = {} or opts
|
||||||
|
|
||||||
if (check_local_finder() == true) then
|
if (check_local_finder() == true) then
|
||||||
builtin.live_grep({
|
builtin.live_grep({
|
||||||
@@ -439,24 +439,3 @@ local M = {
|
|||||||
}
|
}
|
||||||
return 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
|
|
||||||
--]]
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user