X-Git-Url: https://git.r.bdr.sh/rbdr/nota.nvim/blobdiff_plain/503d09fc95a47c13141d097cf80dd243d1dce342..2cc29448a37001cf90b22d089ab992e93afdd71f:/lua/notes.lua diff --git a/lua/notes.lua b/lua/notes.lua index 008baac..f5a4b00 100644 --- a/lua/notes.lua +++ b/lua/notes.lua @@ -36,8 +36,9 @@ end ------------------------------------------------------------------------------- --- Opens the daily note -function Notes.open_daily() - local filename = os.date('%Y-%m-%d') .. '.md' +function Notes.open_daily(date) + date = date or os.date('%Y-%m-%d') + local filename = date .. '.md' open_periodic_note('daily', filename) end