-
-
Notifications
You must be signed in to change notification settings - Fork 357
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedIf you're willing to help, do!If you're willing to help, do!
Description
-- lists files that comply with a path and are referenced from links even if the page does not exist.
function listfiles(path)
local pages = {}
for linked_page in query[[from tags.link select _.toPage order by _.toPage]] do
if type(linked_page) == 'string' then
if linked_page.startsWith(path) then
pages['[['..linked_page..']]'] = linked_page
end
end
end
return table.keys(pages)
end
- ## Namespaces
- ### Area
- ${listfiles('sb/commands')}
When line with - ### Area indented then function listfiles output has first two characters truncated. Note. The function works perfectly in other pages however the truncation of the function output appears to be specifically related to the heading above the function line getting indented
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedIf you're willing to help, do!If you're willing to help, do!