From 20a1eef2e40caaa3619427f72f486d2fc0539fb2 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 6 Nov 2020 16:11:24 +0100 Subject: [PATCH] Remove undocument and unused options parameter --- lua/zettelkasten/list.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/zettelkasten/list.lua b/lua/zettelkasten/list.lua index e19cea8..c71db73 100644 --- a/lua/zettelkasten/list.lua +++ b/lua/zettelkasten/list.lua @@ -10,11 +10,9 @@ end -- TODO transform paths: -- * to absolute value (e.g. ~ to home, scandir needs absolute) -- * to ensure / at the end (or no /) gets taken into account -function ls.get_anchors_and_paths(path, recursive, options) - options = options or {} +function ls.get_anchors_and_paths(path, recursive) -- TODO check for duplicates and warn user local zettel = {} - -- TODO let user set as option, at least remove magic var local anchorreg = '^.*/?(' .. o.anchor().regex .. ')[^/]*%' .. o.zettel().extension .. '$'