Skip to content

Commit b50988e

Browse files
authored
feat: support cursor keys for calendar navigation (nvim-orgmode#767)
Co-authored-by: Sebastian Flügge <[email protected]>
1 parent 8085edc commit b50988e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lua/orgmode/objects/calendar.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ function Calendar:open()
106106
vim.keymap.set('n', 'l', function()
107107
return self:cursor_right()
108108
end, map_opts)
109+
vim.keymap.set('n', '<Down>', function()
110+
return self:cursor_down()
111+
end, map_opts)
112+
vim.keymap.set('n', '<Up>', function()
113+
return self:cursor_up()
114+
end, map_opts)
115+
vim.keymap.set('n', '<Left>', function()
116+
return self:cursor_left()
117+
end, map_opts)
118+
vim.keymap.set('n', '<Right>', function()
119+
return self:cursor_right()
120+
end, map_opts)
109121
vim.keymap.set('n', '>', function()
110122
return self:forward()
111123
end, map_opts)

0 commit comments

Comments
 (0)