feat: note search improvements via a keybind
This keybind is in lua/core/neorg.lua
This commit is contained in:
parent
13b08e605e
commit
d7f38b102c
|
@ -4,6 +4,7 @@ wk.register({
|
||||||
f = {
|
f = {
|
||||||
name = "file",
|
name = "file",
|
||||||
f = { "<cmd>Telescope find_files<cr>", "Find File" },
|
f = { "<cmd>Telescope find_files<cr>", "Find File" },
|
||||||
|
a = { "<cmd>Telescope find_files hidden=true<cr>", "Find Hidden" },
|
||||||
g = { "<cmd>Telescope live_grep<cr>", "Find Word" },
|
g = { "<cmd>Telescope live_grep<cr>", "Find Word" },
|
||||||
s = { "<cmd>:w<cr>", "Write" },
|
s = { "<cmd>:w<cr>", "Write" },
|
||||||
w = { "<cmd>:w!<cr>", "Force Write" },
|
w = { "<cmd>:w!<cr>", "Force Write" },
|
||||||
|
|
|
@ -4,7 +4,7 @@ require("neorg").setup {
|
||||||
["core.dirman"] = {
|
["core.dirman"] = {
|
||||||
config = {
|
config = {
|
||||||
workspaces = {
|
workspaces = {
|
||||||
notes = "~/NAS/Neorg/Notes",
|
notes = "~/NAS/Documents/Neorg/",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -15,3 +15,13 @@ require("neorg").setup {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Keybinds
|
||||||
|
local wk = require("which-key")
|
||||||
|
|
||||||
|
wk.register({
|
||||||
|
n = {
|
||||||
|
name = "neorg",
|
||||||
|
p = { "<cmd>Telescope find_files search_dir=~/NAS/Documents/Neorg cwd=" .. vim.fn.expand("%:p:h") .. " push<cr>", "Search for notes" },
|
||||||
|
},
|
||||||
|
}, { prefix = "<leader>" })
|
||||||
|
|
Loading…
Reference in a new issue