diff --git a/lua/keybindings.lua b/lua/keybindings.lua index e695238..db41b20 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -44,6 +44,7 @@ vim.keymap.set('n', 'of', end, { desc = "Open org folder" }) vim.keymap.set('n', 'a', ':silent Org agenda t', { desc = "Org Agenda" }) +vim.keymap.set('n', 'i', ':silent Org capture i', { desc = "Org Interruption" }) -- toggle colorscheme between dark and light vim.keymap.set('n', 'm', function() diff --git a/lua/options.lua b/lua/options.lua index 82abde1..a5312e7 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -13,7 +13,7 @@ end sl_opt = { org_base_folder = ORG_BASE_FOLDER, org_agenda_files = ORG_BASE_FOLDER .. '/*.org', - org_default_notes_file = ORG_BASE_FOLDER .. '/refile.org', + org_default_notes_file = ORG_BASE_FOLDER .. '/incoming.org', org_archive_location = ORG_BASE_FOLDER .. '/archive.org', org_roam_folder = ORG_BASE_FOLDER .. '/roam', } diff --git a/lua/plugins.lua b/lua/plugins.lua index f4a7e8b..5966fa7 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -205,6 +205,10 @@ require("lazy").setup({ org_agenda_files = sl_opt.org_agenda_files, org_default_notes_file = sl_opt.org_default_notes_file, org_archive_location = sl_opt.org_archive_location, + org_capture_templates = { + t = { description = 'Task', template = "* TODO %?\n %u"}, + i = { description = 'Interruption', template = "* STARTED [#A] %^{Working on}\n %U\n %a\n"}, + }, org_todo_keywords = { 'TODO(t)', 'STARTED(s)', 'PLANNED(p)', '|', 'DONE(d)', 'UNPLANNED(u)' }, org_custom_exports = { f = {