X-Git-Url: https://git.r.bdr.sh/rbdr/nota.nvim/blobdiff_plain/56292c7915662bbf721ca8c3d2cee6a04134a9c6..9e9e89d8556ecafa6b11ab21aa9ffab550f7f3ad:/lua/keybinds.lua diff --git a/lua/keybinds.lua b/lua/keybinds.lua index de3d9ec..1b661ac 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -1,13 +1,14 @@ ------------------------------------------------------------------------------- -- Sets the default keybinds ------------------------------------------------------------------------------- +local Keybinds = {} ------------------------------------------------------------------------------- -- Public Interface ------------------------------------------------------------------------------- --- Sets the default keybinds -- @param configuration tNotaConfiguration the plugin configuration -function bind() +function Keybinds.bind() local api = vim.api api.nvim_set_keymap('n', 'od', 'NotaOpenDailyNote', { noremap = true, silent = true }) @@ -19,12 +20,15 @@ function bind() api.nvim_set_keymap('n', 'oa', 'NotaOpenAgenda', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'oo', 'NotaOpenOpen', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'oO', 'NotaOpenOpenImportant', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'oj', 'NotaOpenJournal', { noremap = true, silent = true }) api.nvim_set_keymap('n', 't', 'NotaToggleTask', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'st', 'NotaToggleTaskImportance', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'it', 'NotaInsertTask', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'ct', 'NotaCaptureTask', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'Tt', 'NotaTagTask', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'Rt', 'NotaRemoveTagTask', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'rt', 'NotaRescheduleTaskToday', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'rT', 'NotaRescheduleTaskTomorrow', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'rs', 'NotaRescheduleTaskSomeday', { noremap = true, silent = true }) @@ -36,3 +40,5 @@ function bind() api.nvim_set_keymap('n', 'op', 'NotaOpenPlan', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'cp', 'NotaCapturePlan', { noremap = true, silent = true }) end + +return Keybinds