feat: note search improvements via a keybind

This keybind is in lua/core/neorg.lua
This commit is contained in:
Muhammad Nauman Raza 2024-02-07 18:01:42 +00:00
parent 13b08e605e
commit d7f38b102c
Signed by: devraza
GPG key ID: 91EAD6081011574B
2 changed files with 12 additions and 1 deletions

View file

@ -4,6 +4,7 @@ wk.register({
f = {
name = "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" },
s = { "<cmd>:w<cr>", "Write" },
w = { "<cmd>:w!<cr>", "Force Write" },

View file

@ -4,7 +4,7 @@ require("neorg").setup {
["core.dirman"] = {
config = {
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>" })