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

Commit 9a3f009

Browse files
fix(agenda): Use custom header for tags and tags_todo agenda if provided
Fixes #853
1 parent 1e97173 commit 9a3f009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/agenda/types/tags.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function OrgAgendaTagsType:new(opts)
4242
obj.match_query = match_query or ''
4343
obj.todo_ignore_deadlines = opts.todo_ignore_deadlines
4444
obj.todo_ignore_scheduled = opts.todo_ignore_scheduled
45-
obj.header = 'Headlines with TAGS match: ' .. obj.match_query
45+
obj.header = opts.header or ('Headlines with TAGS match: ' .. obj.match_query)
4646
return obj
4747
end
4848

0 commit comments

Comments
 (0)