Skip to content

Commit 3e394cc

Browse files
sefluehamidi-dev
authored andcommitted
feat: support filetags
1 parent 8953ee6 commit 3e394cc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lua/org-super-agenda/adapters/neovim/source_orgmode.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,12 @@ function S.collect()
256256
end
257257

258258
for _, file in ipairs(files) do
259+
-- Get filetags from the internal file object to pass as initial inherited tags
260+
local filetags = file._file:get_filetags() or {}
261+
259262
for _, hl in ipairs(file.headlines or {}) do
260-
-- Top-level inherits nothing initially
261-
walk(hl, {})
263+
-- Top-level headlines inherit filetags
264+
walk(hl, filetags)
262265
end
263266
end
264267

0 commit comments

Comments
 (0)