diff options
author | iurii plugatarov <[email protected]> | 2024-08-03 00:49:04 +0200 |
---|---|---|
committer | iurii plugatarov <[email protected]> | 2024-08-03 00:49:04 +0200 |
commit | 0efd48ea94543a14ae27e49f662881c8c291e695 (patch) | |
tree | a870b91299650ab2036bd5adc4d445715d72afb4 /lua/sketchbook/list_notes.lua | |
parent | 0bb7c25241c4fa538a6979dfa0f2b9862aeb8d5a (diff) | |
download | sketchbook.nvim-0efd48ea94543a14ae27e49f662881c8c291e695.tar.gz |
list notes
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 |