]> git.r.bdr.sh - rbdr/nota.nvim/blob - lua/keybinds.lua
de3d9ecabc5828ae8da7765ab25a3ab4fd990199
[rbdr/nota.nvim] / lua / keybinds.lua
1 -------------------------------------------------------------------------------
2 -- Sets the default keybinds
3 -------------------------------------------------------------------------------
4 -------------------------------------------------------------------------------
5 -- Public Interface
6 -------------------------------------------------------------------------------
7
8 --- Sets the default keybinds
9 -- @param configuration tNotaConfiguration the plugin configuration
10 function bind()
11 local api = vim.api
12
13 api.nvim_set_keymap('n', '<leader>od', '<cmd>NotaOpenDailyNote<CR>', { noremap = true, silent = true })
14 api.nvim_set_keymap('n', '<leader>ow', '<cmd>NotaOpenWeeklyNote<CR>', { noremap = true, silent = true })
15 api.nvim_set_keymap('n', '<leader>om', '<cmd>NotaOpenMonthlyNote<CR>', { noremap = true, silent = true })
16 api.nvim_set_keymap('n', '<leader>os', '<cmd>NotaOpenSeasonalNote<CR>', { noremap = true, silent = true })
17 api.nvim_set_keymap('n', '<leader>oy', '<cmd>NotaOpenYearlyNote<CR>', { noremap = true, silent = true })
18 api.nvim_set_keymap('n', '<leader>on', '<cmd>NotaOpenNote<CR>', { noremap = true, silent = true })
19
20 api.nvim_set_keymap('n', '<leader>oa', '<cmd>NotaOpenAgenda<CR>', { noremap = true, silent = true })
21 api.nvim_set_keymap('n', '<leader>oo', '<cmd>NotaOpenOpen<CR>', { noremap = true, silent = true })
22 api.nvim_set_keymap('n', '<leader>oj', '<cmd>NotaOpenJournal<CR>', { noremap = true, silent = true })
23
24 api.nvim_set_keymap('n', '<leader>t', '<cmd>NotaToggleTask<CR>', { noremap = true, silent = true })
25 api.nvim_set_keymap('n', '<leader>it', '<cmd>NotaInsertTask<CR>', { noremap = true, silent = true })
26 api.nvim_set_keymap('n', '<leader>ct', '<cmd>NotaCaptureTask<CR>', { noremap = true, silent = true })
27 api.nvim_set_keymap('n', '<leader>Tt', '<cmd>NotaTagTask<CR>', { noremap = true, silent = true })
28 api.nvim_set_keymap('n', '<leader>rt', '<cmd>NotaRescheduleTaskToday<CR>', { noremap = true, silent = true })
29 api.nvim_set_keymap('n', '<leader>rT', '<cmd>NotaRescheduleTaskTomorrow<CR>', { noremap = true, silent = true })
30 api.nvim_set_keymap('n', '<leader>rs', '<cmd>NotaRescheduleTaskSomeday<CR>', { noremap = true, silent = true })
31 api.nvim_set_keymap('n', '<leader>rr', '<cmd>NotaRescheduleTask<CR>', { noremap = true, silent = true })
32
33 api.nvim_set_keymap('n', '<leader>ol', '<cmd>NotaOpenLearning<CR>', { noremap = true, silent = true })
34 api.nvim_set_keymap('n', '<leader>cl', '<cmd>NotaCaptureLearning<CR>', { noremap = true, silent = true })
35
36 api.nvim_set_keymap('n', '<leader>op', '<cmd>NotaOpenPlan<CR>', { noremap = true, silent = true })
37 api.nvim_set_keymap('n', '<leader>cp', '<cmd>NotaCapturePlan<CR>', { noremap = true, silent = true })
38 end