about summary refs log tree commit diff
path: root/lua/sketchbook/list_notes.lua
blob: c590feed289a581e4672715bcd59dcb624541d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
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