diff --git a/doc/telekasten.txt b/doc/telekasten.txt index 2d5e35a..8ba57a6 100644 --- a/doc/telekasten.txt +++ b/doc/telekasten.txt @@ -206,15 +206,15 @@ telekasten.setup({opts}) Default: `true` - *telekasten.settings.daily* - daily: ~ + *telekasten.settings.dailies* + dailies: ~ Path to your daily notes, to separate them from 'normal' notes. Accepts absolute path or sub-directory name. Default: '~/zettelkasten/daily' - *telekasten.settings.weekly* - weekly: ~ + *telekasten.settings.weeklies* + weeklies: ~ Path to your weekly notes, to separate them from 'normal' notes. Accepts absolute path or sub-directory name. @@ -317,7 +317,7 @@ telekasten.setup({opts}) Default: true *telekasten.settings.weeklies_create_nonexisting* - weekliesdailies_create_nonexisting: ~ + weeklies_create_nonexisting: ~ Flag that determines whether this week's note should always be created if not present. Also, whether weekly notes should be created when opening them via the calendar. diff --git a/lua/telekasten.lua b/lua/telekasten.lua index 424d029..4603d90 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -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