]> git.r.bdr.sh - rbdr/nota.nvim/blame - lua/keybinds.lua
Allow next and previous
[rbdr/nota.nvim] / lua / keybinds.lua
CommitLineData
56292c79
RBR
1-------------------------------------------------------------------------------
2-- Sets the default keybinds
3-------------------------------------------------------------------------------
503d09fc 4local Keybinds = {}
56292c79
RBR
5-------------------------------------------------------------------------------
6-- Public Interface
7-------------------------------------------------------------------------------
8
9--- Sets the default keybinds
10-- @param configuration tNotaConfiguration the plugin configuration
503d09fc 11function Keybinds.bind()
56292c79
RBR
12 local api = vim.api
13
14 api.nvim_set_keymap('n', '<leader>od', '<cmd>NotaOpenDailyNote<CR>', { noremap = true, silent = true })
15 api.nvim_set_keymap('n', '<leader>ow', '<cmd>NotaOpenWeeklyNote<CR>', { noremap = true, silent = true })
16 api.nvim_set_keymap('n', '<leader>om', '<cmd>NotaOpenMonthlyNote<CR>', { noremap = true, silent = true })
17 api.nvim_set_keymap('n', '<leader>os', '<cmd>NotaOpenSeasonalNote<CR>', { noremap = true, silent = true })
18 api.nvim_set_keymap('n', '<leader>oy', '<cmd>NotaOpenYearlyNote<CR>', { noremap = true, silent = true })
19 api.nvim_set_keymap('n', '<leader>on', '<cmd>NotaOpenNote<CR>', { noremap = true, silent = true })
ca10d2a3
RBR
20 api.nvim_set_keymap('n', '<leader>N', '<cmd>NotaOpenNextNote<CR>', { noremap = true, silent = true })
21 api.nvim_set_keymap('n', '<leader>P', '<cmd>NotaOpenPreviousNote<CR>', { noremap = true, silent = true })
56292c79
RBR
22
23 api.nvim_set_keymap('n', '<leader>oa', '<cmd>NotaOpenAgenda<CR>', { noremap = true, silent = true })
24 api.nvim_set_keymap('n', '<leader>oo', '<cmd>NotaOpenOpen<CR>', { noremap = true, silent = true })
503d09fc 25 api.nvim_set_keymap('n', '<leader>oO', '<cmd>NotaOpenOpenImportant<CR>', { noremap = true, silent = true })
56292c79
RBR
26 api.nvim_set_keymap('n', '<leader>oj', '<cmd>NotaOpenJournal<CR>', { noremap = true, silent = true })
27
28 api.nvim_set_keymap('n', '<leader>t', '<cmd>NotaToggleTask<CR>', { noremap = true, silent = true })
503d09fc 29 api.nvim_set_keymap('n', '<leader>st', '<cmd>NotaToggleTaskImportance<CR>', { noremap = true, silent = true })
56292c79
RBR
30 api.nvim_set_keymap('n', '<leader>it', '<cmd>NotaInsertTask<CR>', { noremap = true, silent = true })
31 api.nvim_set_keymap('n', '<leader>ct', '<cmd>NotaCaptureTask<CR>', { noremap = true, silent = true })
32 api.nvim_set_keymap('n', '<leader>Tt', '<cmd>NotaTagTask<CR>', { noremap = true, silent = true })
9e9e89d8 33 api.nvim_set_keymap('n', '<leader>Rt', '<cmd>NotaRemoveTagTask<CR>', { noremap = true, silent = true })
56292c79
RBR
34 api.nvim_set_keymap('n', '<leader>rt', '<cmd>NotaRescheduleTaskToday<CR>', { noremap = true, silent = true })
35 api.nvim_set_keymap('n', '<leader>rT', '<cmd>NotaRescheduleTaskTomorrow<CR>', { noremap = true, silent = true })
36 api.nvim_set_keymap('n', '<leader>rs', '<cmd>NotaRescheduleTaskSomeday<CR>', { noremap = true, silent = true })
37 api.nvim_set_keymap('n', '<leader>rr', '<cmd>NotaRescheduleTask<CR>', { noremap = true, silent = true })
38
39 api.nvim_set_keymap('n', '<leader>ol', '<cmd>NotaOpenLearning<CR>', { noremap = true, silent = true })
40 api.nvim_set_keymap('n', '<leader>cl', '<cmd>NotaCaptureLearning<CR>', { noremap = true, silent = true })
41
42 api.nvim_set_keymap('n', '<leader>op', '<cmd>NotaOpenPlan<CR>', { noremap = true, silent = true })
43 api.nvim_set_keymap('n', '<leader>cp', '<cmd>NotaCapturePlan<CR>', { noremap = true, silent = true })
44end
503d09fc
RBR
45
46return Keybinds