diff options
Diffstat (limited to 'lua/sketchbook/list_notes.lua')
-rw-r--r-- | lua/sketchbook/list_notes.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/sketchbook/list_notes.lua b/lua/sketchbook/list_notes.lua new file mode 100644 index 0000000..c590fee --- /dev/null +++ b/lua/sketchbook/list_notes.lua @@ -0,0 +1,12 @@ +local M = {} + +function M.list_all_notes() + local notes_dir = vim.g.notes_directory or "~/notes/" + require("telescope.builtin").find_files({ + prompt_title = "Find Notes", + cwd = notes_dir, + hidden = true, + }) +end + +return M |