Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: retain direct tags even if they are excluded from inheritance #839

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/orgmode/files/headline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,10 @@ function Headline:get_tags()

local all_tags = utils.concat({}, file_tags)
utils.concat(all_tags, utils.reverse(parent_tags), true)
all_tags = config:exclude_tags(all_tags)
utils.concat(all_tags, tags, true)

return config:exclude_tags(all_tags), own_tags_node
return all_tags, own_tags_node
end

---@return OrgHeadline | nil
Expand Down
Loading