1 files changed,
20 insertions(+),
2 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2025-02-11 18:20:20 +0200
Parent:
c80af27
M
lua/plugins/orgmode.lua
@@ -1,5 +1,6 @@
+local orgdir = "~/org/" local function orgpath(p, not_file) - return "~/org" .. "/" .. p .. (not not_file and ".org" or "") + return orgdir .. p .. (not not_file and ".org" or "") end local function action(act, opts)@@ -8,6 +9,22 @@ return require("orgmode").action(act, opts or {})
end end +local function find_orgfiles() + require("telescope.builtin").find_files { + cwd = orgdir, + find_command = { + "fd", + "--type", + "f", + "--exclude", + "finance", -- idk why i store my ledger files in the same repo + "--exclude", + "*.org_archive", + ".org", + }, + } +end + ---@type LazySpec return { "nvim-orgmode/orgmode",@@ -15,6 +32,7 @@ ft = "org",
keys = { "<leader>o", { "<leader>oo", ("<cmd>e " .. orgpath "refile" .. "<CR>") }, + { "<leader>so", find_orgfiles }, { "<leader>oc", action "capture.prompt" }, { "<leader>oa", action "agenda.prompt" }, },@@ -28,7 +46,7 @@ opts = {
org_default_notes_file = orgpath "refile", org_agenda_files = orgpath("**/*", true), -- stylua: ignore - org_todo_keywords = { "TODO(t)", "INB(i)", "DOING(I)", "|", "DONE(d)", "CANCEL(c)",}, + org_todo_keywords = { "TODO(t)", "INB(i)", "DOING(I)", "SCHEDULED(s)", "|", "DONE(d)", "CANCEL(c)",}, org_hide_emphasis_markers = true, org_startup_indented = true, org_startup_folded = "content", -- "showeverything"