mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
fix(gotodate): use proper option to determine note creation
This commit is contained in:
@@ -1777,8 +1777,8 @@ local function GotoDate(opts)
|
||||
if
|
||||
(fexists ~= true)
|
||||
and (
|
||||
(opts.follow_creates_nonexisting == true)
|
||||
or M.Cfg.follow_creates_nonexisting == true
|
||||
(opts.dailies_create_nonexisting == true)
|
||||
or M.Cfg.dailies_create_nonexisting == true
|
||||
)
|
||||
then
|
||||
create_note_from_template(
|
||||
@@ -1839,7 +1839,7 @@ local function GotoToday(opts)
|
||||
local today = os.date(dateformats.date)
|
||||
opts.date_table = os.date("*t")
|
||||
opts.date = today
|
||||
opts.follow_creates_nonexisting = true -- Always use template if GotoToday
|
||||
opts.dailies_create_nonexisting = true -- Always use template for GotoToday
|
||||
GotoDate(opts)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user