Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: Option -always-match-todo-keyword #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions helm-org-rifle.el
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ would be ignored."
:foreground "black"))
"Face for `helm-org-rifle-separator', which is displayed between results.")

(defcustom helm-org-rifle-always-match-todo-keyword nil
"If `t`, allows non-uppercase TODO state strings like \"todo\" in the input
text to match against the corresponding TODO state in headlines in addition to
the default behavior of matching the \"todo\" string within entry text."
:type 'boolean)

(defcustom helm-org-rifle-occur-kill-empty-buffer t
"Close occur results buffer after last result is deleted."
:type 'boolean)
Expand Down Expand Up @@ -997,6 +1003,9 @@ because it uses variables in its outer scope."
tags)
(when helm-org-rifle-test-against-path
(or path (setq path (org-get-outline-path))))
(when (and helm-org-rifle-always-match-todo-keyword
todo-keyword)
(list todo-keyword))
(mapcar 'car matching-lines-in-node)))
for re in required-positive-re-list
always (cl-loop for target in targets
Expand Down