From 0efd48ea94543a14ae27e49f662881c8c291e695 Mon Sep 17 00:00:00 2001 From: iurii plugatarov Date: Sat, 3 Aug 2024 01:49:04 +0300 Subject: list notes --- lua/sketchbook/list_notes.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lua/sketchbook/list_notes.lua (limited to 'lua/sketchbook/list_notes.lua') 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 -- cgit 1.4.1-2-gfad0