about summary refs log tree commit diff
path: root/lua/sketchbook/list_notes.lua
diff options
context:
space:
mode:
authoriurii plugatarov <[email protected]>2024-08-03 00:49:04 +0200
committeriurii plugatarov <[email protected]>2024-08-03 00:49:04 +0200
commit0efd48ea94543a14ae27e49f662881c8c291e695 (patch)
treea870b91299650ab2036bd5adc4d445715d72afb4 /lua/sketchbook/list_notes.lua
parent0bb7c25241c4fa538a6979dfa0f2b9862aeb8d5a (diff)
downloadsketchbook.nvim-0efd48ea94543a14ae27e49f662881c8c291e695.tar.gz
list notes
Diffstat (limited to 'lua/sketchbook/list_notes.lua')
-rw-r--r--lua/sketchbook/list_notes.lua12
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