Skip to content

Commit 086f290

Browse files
mskorzhinskiyalphapapa
authored andcommitted
Add: (org-ql-view--format-element) Set org-agenda-type to search
Some org-agenda commands check the org-agenda-type text property to ensure that the command is valid to run in that type of agenda. Notably this fixes running commands org-agenda-schedule and org-agenda-deadline. Setting the type to "search" prohibits some of the functions that are still not working in these buffers, like org-agenda-do-date-earlier. Fixes #35.
1 parent 9295ec4 commit 086f290

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.org

+1
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience
481481
+ Variable =org-ql-block-header=, which overrides the default header in =org-ql-block= agenda blocks.
482482
+ Predicate =(path)=.
483483
+ Option =org-ql-views= may now be customized in a guided, structured way with the customization UI (e.g. =M-x customize-option RET org-ql-views RET=, or press =c= in the =org-ql-view-sidebar= buffer).
484+
+ Enable more Org Agenda commands in =org-ql-view= buffers (e.g. setting deadlines and scheduling). (Fixes [[https://github.com/alphapapa/org-ql/issues/35][#35]]. Thanks to [[https://github.com/mz-pdm][Milan Zamazal]] and [[https://github.com/mskorzhinskiy][Mikhail Skorzhinskii]].)
484485

485486
*Changed*
486487
+ Predicate =heading= now accepts multiple regexps, which are matched with boolean =AND=.

org-ql-view.el

+1
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ return an empty string."
490490
;; FIXME: Use proper prefix
491491
(concat " " it)
492492
(org-add-props it properties
493+
'org-agenda-type 'search
493494
'todo-state todo-keyword
494495
'tags tag-list
495496
'org-habit-p habit-property)))))

0 commit comments

Comments
 (0)