Skip to content

Commit

Permalink
Add citar-prefilter-entries
Browse files Browse the repository at this point in the history
Allows to independently turn off whether to do this by default, and
whether to toggle the behavior.
  • Loading branch information
bdarcus committed Jun 10, 2022
1 parent c590596 commit a1d0085
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions citar.el
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,25 @@ All functions that match a particular field are run in order."
:type '(alist :key-type (choice (const t) (repeat string))
:value-type function))

(defcustom citar-prefilter-entries '(nil . t)
"When non-nil pre-filter note and library files commands.
For commands like 'citar-open-notes', this will only show
completion candidates that have such notes.
The downside is that, if using Embark and you want to use a different
command for the action, you will not be able to remove the
filter.
The value should be a cons of the form:
(FILTER . TOGGLE)
FILTER turns this on by default
TOGGLE use prefix arg to toggle behavior"
:group 'citar
:type 'cons)

(defcustom citar-symbols
`((file . ("F" . " "))
(note . ("N" . " "))
Expand Down

0 comments on commit a1d0085

Please sign in to comment.