zettelkasten.nvim/lua/zettelkasten/init.lua

19 lines
475 B
Lua
Raw Normal View History

2020-10-26 14:55:40 +00:00
local ZK = {}
2020-10-29 18:00:23 +00:00
local ls = require 'zettelkasten.list'
local o = require 'zettelkasten.options'
local a = require 'zettelkasten.anchor'
2020-10-26 14:55:40 +00:00
-- Returns all zettel in path as a
-- { "anchor" = "path/to/zettel/anchor filename.md" }
-- table.
-- Recurses into subdirectories if recursive argument is true.
function ZK.get_zettel_list(path, recursive)
return ls.get_anchors_and_paths(path, recursive or false, ZK.options)
end
2020-10-26 14:55:40 +00:00
return {
2020-10-29 18:00:23 +00:00
get_zettel_list = ZK.get_zettel_list
2020-10-26 14:55:40 +00:00
}