Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 92e8b51

Browse files
authored
fix: retain direct tags even if they are excluded from inheritance (#839)
If a tag is excluded from inheritance, then it gets excluded even from headlines that have it assigned directly. This is most noticable when searching in agenda view. This PR fixes it - you can now search by tags that are excluded from inheritance. Fixes #830
1 parent f8c0fd3 commit 92e8b51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/orgmode/files/headline.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,10 @@ function Headline:get_tags()
556556

557557
local all_tags = utils.concat({}, file_tags)
558558
utils.concat(all_tags, utils.reverse(parent_tags), true)
559+
all_tags = config:exclude_tags(all_tags)
559560
utils.concat(all_tags, tags, true)
560561

561-
return config:exclude_tags(all_tags), own_tags_node
562+
return all_tags, own_tags_node
562563
end
563564

564565
---@return OrgHeadline | nil

0 commit comments

Comments
 (0)