AutoYADM commit: 2025-01-15 19:35:06

This commit is contained in:
Daniel Fichtinger 2025-01-15 19:35:06 -05:00
parent d02cc51e19
commit 27dd176c02
3 changed files with 47 additions and 34 deletions

View file

@ -129,40 +129,40 @@ map({ "n", "x" }, "<leader>Y", ":wa<CR>", { desc = "Save All" })
-- Obsidian -- Obsidian
-- <leader>o is the prefix for all Obsidian bindings -- <leader>o is the prefix for all Obsidian bindings
wk.add({ -- wk.add({
{ "<leader>o", group = "Obsidian" }, -- { "<leader>o", group = "Obsidian" },
{ "<leader>od", group = "Daily Note" }, -- { "<leader>od", group = "Daily Note" },
{ "<leader>ol", group = "Follow Link" }, -- { "<leader>ol", group = "Follow Link" },
}) -- })
--
map("n", "<leader>oo", "<CMD>ObsidianQuickSwitch<CR>", { desc = "Obsidian Quick Switch" }) -- map("n", "<leader>oo", "<CMD>ObsidianQuickSwitch<CR>", { desc = "Obsidian Quick Switch" })
map("n", "<leader>o/", "<CMD>ObsidianSearch<CR>", { desc = "Obsidian Grep" }) -- map("n", "<leader>o/", "<CMD>ObsidianSearch<CR>", { desc = "Obsidian Grep" })
-- This one will open the command line and let the user type the arg -- -- This one will open the command line and let the user type the arg
map("n", "<leader>on", "<CMD>ObsidianNew<CR>", { desc = "Obsidian New Note" }) -- map("n", "<leader>on", "<CMD>ObsidianNew<CR>", { desc = "Obsidian New Note" })
-- map("n", "<leader>on", function() -- -- map("n", "<leader>on", function()
-- require("command-key").command("ObsidianNew") -- -- require("command-key").command("ObsidianNew")
-- end, { desc = "Obsidian New Note" }) -- -- end, { desc = "Obsidian New Note" })
map("n", "<leader>ob", "<CMD>ObsidianBacklinks<CR>", { desc = "Obsidian Backlinks" }) -- map("n", "<leader>ob", "<CMD>ObsidianBacklinks<CR>", { desc = "Obsidian Backlinks" })
map("n", "<leader>ot", "<CMD>ObsidianTags<CR>", { desc = "Obsidian Tags" }) -- map("n", "<leader>ot", "<CMD>ObsidianTags<CR>", { desc = "Obsidian Tags" })
map("n", "<leader>olv", "<CMD>ObsidianFollowLink vsplit<CR>", { desc = "Obsidian Follow Link Vsplit" }) -- map("n", "<leader>olv", "<CMD>ObsidianFollowLink vsplit<CR>", { desc = "Obsidian Follow Link Vsplit" })
map("n", "<leader>olh", "<CMD>ObsidianFollowLink hsplit<CR>", { desc = "Obsidian Follow Link Hsplit" }) -- map("n", "<leader>olh", "<CMD>ObsidianFollowLink hsplit<CR>", { desc = "Obsidian Follow Link Hsplit" })
map("n", "<leader>odt", "<CMD>ObsidianToday<CR>", { desc = "Obsidian Open Today's Daily" }) -- map("n", "<leader>odt", "<CMD>ObsidianToday<CR>", { desc = "Obsidian Open Today's Daily" })
map("n", "<leader>ods", "<CMD>ObsidianDailies<CR>", { desc = "Obsidian Search Dailies" }) -- map("n", "<leader>ods", "<CMD>ObsidianDailies<CR>", { desc = "Obsidian Search Dailies" })
map("n", "<leader>ols", "<CMD>ObsidianLinks<CR>", { desc = "Obsidian Search Links" }) -- map("n", "<leader>ols", "<CMD>ObsidianLinks<CR>", { desc = "Obsidian Search Links" })
map("x", "<leader>oll", function() -- map("x", "<leader>oll", function()
require("command-key").command("ObsidianLink") -- require("command-key").command("ObsidianLink")
end, { desc = "Obsidian Link Visual To Existing Note" }) -- end, { desc = "Obsidian Link Visual To Existing Note" })
map("x", "<leader>oln", function() -- map("x", "<leader>oln", function()
require("command-key").command("ObsidianLinkNew") -- require("command-key").command("ObsidianLinkNew")
end, { desc = "Obsidian Link Visual To New Note" }) -- end, { desc = "Obsidian Link Visual To New Note" })
map("x", "<leader>ole", function() -- map("x", "<leader>ole", function()
require("command-key").command("ObsidianExtractNote") -- require("command-key").command("ObsidianExtractNote")
end, { desc = "Obsidian Copy Selection To New Note & Link" }) -- end, { desc = "Obsidian Copy Selection To New Note & Link" })
--
map("n", "<leader>or", function() -- map("n", "<leader>or", function()
require("command-key").command("ObsidianRename") -- require("command-key").command("ObsidianRename")
end, { desc = "Obsidian Rename" }) -- end, { desc = "Obsidian Rename" })
map("n", "<leader>oc", "<CMD>ObsidianTOC<CR>", { desc = "Obsidian Table Of Contents" }) -- map("n", "<leader>oc", "<CMD>ObsidianTOC<CR>", { desc = "Obsidian Table Of Contents" })
-- TODO: Add binds for templates -- TODO: Add binds for templates
-- cmdh.fix_hjkl() -- cmdh.fix_hjkl()
-- cmdh.fix_all() -- cmdh.fix_all()

View file

@ -14,6 +14,10 @@ return {
default = { "lsp", "snippets", "path", "lazydev", "buffer" }, default = { "lsp", "snippets", "path", "lazydev", "buffer" },
providers = { providers = {
-- markdown = { name = "RenderMarkdown", module = "render-markdown.integ.blink" }, -- markdown = { name = "RenderMarkdown", module = "render-markdown.integ.blink" },
orgmode = {
name = "Orgmode",
module = "orgmode.org.autocompletion.blink",
},
}, },
}, },
appearance = { appearance = {

View file

@ -0,0 +1,9 @@
return {
"nvim-orgmode/orgmode",
event = "VeryLazy",
ft = { "org" },
opts = {
org_agenda_files = "~/orgfiles/**/*",
org_default_notes_file = "~/orgfiles/refile.org",
},
}