Hi, Ihor.
I have tried gptel inside emacs (I'm sorry, but I need to tell it) and I got this code:
#+begin_src emacs-lisp
(defun my-org-trigger-function (state)
"Remove all tags when state changes to 'DONE'"
(when (string= state "DONE")
(org-toggle-tag nil 'remove)))
(add-hook 'org-trigger-hook 'my-org-trigger-function)
#+end_src
Surprisingly 8-) it doesn't work. Any help?
Best regards
Ypo <ypuntot@gmail.com> writes:I would like to remove every tag when changing to done state. This is not working: '(org-todo-state-tags-triggers '((done ("(.*)")))) This works though: '(org-todo-state-tags-triggers '((done ("Atag"))))Yes, regexps are not supported in `org-todo-state-tags-triggers'. You can use `org-trigger-hook'.