@@ -27,28 +27,37 @@ local function get_opts(options)
27
27
opts .filter = options .filters
28
28
end
29
29
opts .header = options .header
30
+ opts .agenda_files = options .org_agenda_files
31
+ opts .sorting_strategy = options .org_agenda_sorting_strategy
32
+ opts .tag_filter = options .org_agenda_tag_filter_preset
33
+ opts .category_filter = options .org_agenda_category_filter_preset
34
+ opts .remove_tags = options .org_agenda_remove_tags
30
35
return opts
31
36
end
32
37
33
- --- @class OrgApiAgendaOptions
38
+ --- @class OrgApiAgendaOpts
34
39
--- @field filters ? OrgApiAgendaFilter
40
+ --- @field header ? string
41
+ --- @field org_agenda_files ? string[]
42
+ --- @field org_agenda_tag_filter_preset ? string
43
+ --- @field org_agenda_category_filter_preset ? string
44
+ --- @field org_agenda_sorting_strategy ? OrgAgendaSortingStrategy[]
45
+ --- @field org_agenda_remove_tags ? boolean
46
+
47
+ --- @class OrgApiAgendaOptions : OrgApiAgendaOpts
35
48
--- @field from ? string | OrgDate
36
49
--- @field span ? OrgAgendaSpan
37
- --- @field header ? string
38
50
39
51
--- @param options ? OrgApiAgendaOptions
40
52
function OrgAgenda .agenda (options )
41
53
options = options or {}
42
54
local opts = get_opts (options )
43
55
opts .from = get_date (options .from , ' from' )
44
56
opts .span = options .span
45
- opts .header = options .header
46
57
orgmode .agenda :agenda (opts )
47
58
end
48
59
49
- --- @class OrgApiAgendaTodosOptions
50
- --- @field filters ? OrgApiAgendaFilter
51
- --- @field header ? string
60
+ --- @class OrgApiAgendaTodosOptions : OrgApiAgendaOpts
52
61
53
62
--- @param options ? OrgApiAgendaTodosOptions
54
63
function OrgAgenda .todos (options )
@@ -57,11 +66,9 @@ function OrgAgenda.todos(options)
57
66
orgmode .agenda :todos (opts )
58
67
end
59
68
60
- --- @class OrgApiAgendaTagsOptions
61
- --- @field filters ? OrgApiAgendaFilter Agenda filters for tags and categories
69
+ --- @class OrgApiAgendaTagsOptions : OrgApiAgendaOpts
62
70
--- @field match_query ? string Match query to find the todos
63
71
--- @field todo_only ? boolean
64
- --- @field header ? string
65
72
66
73
--- @param options ? OrgApiAgendaTagsOptions
67
74
function OrgAgenda .tags (options )
@@ -72,10 +79,8 @@ function OrgAgenda.tags(options)
72
79
orgmode .agenda :tags (opts )
73
80
end
74
81
75
- --- @class OrgApiAgendaTagsTodoOptions
76
- --- @field filters ? OrgApiAgendaFilter Agenda filters for tags and categories
82
+ --- @class OrgApiAgendaTagsTodoOptions : OrgApiAgendaOpts
77
83
--- @field match_query ? string Match query to find the todos
78
- --- @field header ? string
79
84
80
85
--- @param options ? OrgApiAgendaTagsOptions
81
86
function OrgAgenda .tags_todo (options )
0 commit comments