Skip to content

Commit

Permalink
feat(calendar): add t command for "today"
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed May 15, 2023
1 parent 65bf064 commit e53a509
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/neorg/modules/core/ui/calendar/views/monthly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,13 @@ module.public = {
date = new_date
end, { buffer = ui_info.buffer })

vim.keymap.set("n", "t", function()
local new_date = os.date("*t")

view:render_view(ui_info, new_date, date, options)
date = new_date
end, { buffer = ui_info.buffer })

vim.keymap.set(
"n",
"?",
Expand Down

0 comments on commit e53a509

Please sign in to comment.