Skip to content

How to make a filter function for tags comparison? #177

Answered by d12frosted
DominikMendel asked this question in Q&A
Discussion options

You must be logged in to vote

Well, let's take a look at it together.

vulpea/vulpea.el

Lines 143 to 153 in e1ea848

(defun vulpea-insert (&optional filter-fn)
"Select a note and insert a link to it.
Allows capturing new notes. After link is inserted,
`vulpea-insert-handle-functions' are called with the inserted
note as the only argument regardless involvement of capture
process.
FILTER-FN is the function to apply on the candidates, which takes
as its argument a `vulpea-note'. Unless specified,
`vulpea-insert-default-filter' is used."

So what you want to have is:

(vulpea-insert (lambda (note) SOME-PREDICATE))

And what SOME-PREDICATE would be? If you w…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@DominikMendel
Comment options

@d12frosted
Comment options

Answer selected by DominikMendel
@d12frosted
Comment options

@DominikMendel
Comment options

@d12frosted
Comment options

@DominikMendel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants