Change Calendar Mappings #971
Unanswered
Patitotective
asked this question in
Q&A
Replies: 1 comment
-
From what I see there is no API do do this. orgmode/lua/orgmode/objects/calendar.lua Lines 142 to 147 in 32ef9e9 So the values are hard coded. For your own use, you could change these values in your local plugin files (mine would be in diff --git a/lua/orgmode/objects/calendar.lua b/lua/orgmode/objects/calendar.lua
index cfe392b..f251cfb 100644
--- a/lua/orgmode/objects/calendar.lua
+++ b/lua/orgmode/objects/calendar.lua
@@ -139,10 +139,10 @@ function Calendar:open()
vim.keymap.set('n', '<Right>', function()
return self:cursor_right()
end, map_opts)
- vim.keymap.set('n', '>', function()
+ vim.keymap.set('n', 'f', function()
return self:forward()
end, map_opts)
- vim.keymap.set('n', '<', function()
+ vim.keymap.set('n', 'b', function()
return self:backward()
end, map_opts)
vim.keymap.set('n', '<CR>', function() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was wondering whether it was possible to change the default calendar mappings. I find it rather difficult to type
<>
and was wondering whether it was possible to remap them to something easier to type (and remember) likefb
(for month forward and month backward).Thanks.
Beta Was this translation helpful? Give feedback.
All reactions