added delegate property filter
This commit is contained in:
parent
4c4c7e327a
commit
8de0ac2f30
10
conf.org
10
conf.org
|
@ -604,7 +604,7 @@ and reverts all todo keywords to TODO"
|
||||||
** column view
|
** column view
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq org-columns-default-format
|
(setq org-columns-default-format
|
||||||
"%25ITEM %4TODO %TAGS %5Effort{:} %OWNER(OWN)")
|
"%25ITEM %4TODO %TAGS %5Effort{:} %DELEGATE(DEL)")
|
||||||
|
|
||||||
(set-face-attribute 'org-column nil :background "#1e2023")
|
(set-face-attribute 'org-column nil :background "#1e2023")
|
||||||
;; org-columns-summary-types
|
;; org-columns-summary-types
|
||||||
|
@ -772,7 +772,7 @@ Add some useful properties:
|
||||||
- OWNER and GOAL: not currently used
|
- OWNER and GOAL: not currently used
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(mapc (lambda (i) (add-to-list 'org-default-properties i))
|
(mapc (lambda (i) (add-to-list 'org-default-properties i))
|
||||||
'("PARENT_TYPE" "OWNER" "GOAL" "TIME_SHIFT"))
|
'("PARENT_TYPE" "DELEGATE" "GOAL" "TIME_SHIFT"))
|
||||||
|
|
||||||
(setq org-global-properties
|
(setq org-global-properties
|
||||||
'(("PARENT_TYPE_ALL" . "periodical iterator")
|
'(("PARENT_TYPE_ALL" . "periodical iterator")
|
||||||
|
@ -869,6 +869,12 @@ Some custom filters that are applied to the agenda view. Note that some of these
|
||||||
(interactive)
|
(interactive)
|
||||||
(setq org-agenda-hasprop-filter '("-Effort"))
|
(setq org-agenda-hasprop-filter '("-Effort"))
|
||||||
(org-agenda-filter-apply org-agenda-hasprop-filter 'hasprop))
|
(org-agenda-filter-apply org-agenda-hasprop-filter 'hasprop))
|
||||||
|
|
||||||
|
(defun nd/org-agenda-filter-delegate ()
|
||||||
|
"Filter agenda by tasks with an external delegate."
|
||||||
|
(interactive)
|
||||||
|
(setq org-agenda-hasprop-filter '("+DELEGATE"))
|
||||||
|
(org-agenda-filter-apply org-agenda-hasprop-filter 'hasprop))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
***** filter advice
|
***** filter advice
|
||||||
In order to implement the =hasprop= filter the functions, =org-agenda-filter-make-matcher= and =org-agenda-filter-remove-all= need to be advised in order to add the functionality for the =hasprop= filter type.
|
In order to implement the =hasprop= filter the functions, =org-agenda-filter-make-matcher= and =org-agenda-filter-remove-all= need to be advised in order to add the functionality for the =hasprop= filter type.
|
||||||
|
|
Loading…
Reference in New Issue