@@ -46,36 +46,43 @@ function OrgAgenda.agenda(options)
46
46
orgmode .agenda :agenda (opts )
47
47
end
48
48
49
- --- @class OrgAgendaTodosOptions
49
+ --- @class OrgApiAgendaTodosOptions
50
50
--- @field filters ? OrgApiAgendaFilter
51
+ --- @field header ? string
51
52
52
- --- @param options ? OrgAgendaTodosOptions
53
+ --- @param options ? OrgApiAgendaTodosOptions
53
54
function OrgAgenda .todos (options )
54
55
options = options or {}
55
56
local opts = get_opts (options )
56
57
orgmode .agenda :todos (opts )
57
58
end
58
59
59
- --- @class OrgAgendaTagsOptions
60
- --- @field filters ? OrgApiAgendaFilter
60
+ --- @class OrgApiAgendaTagsOptions
61
+ --- @field filters ? OrgApiAgendaFilter Agenda filters for tags and categories
62
+ --- @field match_query ? string Match query to find the todos
61
63
--- @field todo_only ? boolean
64
+ --- @field header ? string
62
65
63
- --- @param options ? OrgAgendaTagsOptions
66
+ --- @param options ? OrgApiAgendaTagsOptions
64
67
function OrgAgenda .tags (options )
65
68
options = options or {}
66
69
local opts = get_opts (options )
70
+ opts .todo_only = options .todo_only
71
+ opts .match_query = options .match_query
67
72
orgmode .agenda :tags (opts )
68
73
end
69
74
70
- --- @class OrgAgendaTagsTodoOptions
71
- --- @field filters ? OrgApiAgendaFilter
72
- --- @field todo_only ? boolean
75
+ --- @class OrgApiAgendaTagsTodoOptions
76
+ --- @field filters ? OrgApiAgendaFilter Agenda filters for tags and categories
77
+ --- @field match_query ? string Match query to find the todos
78
+ --- @field header ? string
73
79
74
- --- @param options ? OrgAgendaTagsOptions
80
+ --- @param options ? OrgApiAgendaTagsOptions
75
81
function OrgAgenda .tags_todo (options )
76
82
options = options or {}
77
83
local opts = get_opts (options )
78
- orgmode .agenda :tags (opts )
84
+ opts .match_query = options .match_query
85
+ orgmode .agenda :tags_todo (opts )
79
86
end
80
87
81
88
return OrgAgenda
0 commit comments