Hi Le,
Le Wang <
l26...@gmail.com> writes:
> I'd like to play around with a custom matching function, and a custom
> sorting function and a custom highlighter. Is there a good example of this?
Normally, `matching` functions are for use with `candidates`
implementation of a source, and 'searching' for `candidates-in-buffer`,
this have limitations for `candidates-in-buffer` actually.
But in this case the both can be used,
see how I recently did in helm-bookmark.el, you will find the both
methods.
For a matching function, see in helm-buffers.el
`helm-buffer-match-major-mode`.
For highligthting, you will find filter functions in many places,
including the ones cited above.
For sorting see in helm-sys.el how top is sorted by CPU, MEM etc..
> This is for an implementation of flex that I'm playing around with.
I suggest you implement this with an attribute by source, adding this
attribute e.g (flexmatching) to a source would enable this matching
method in this source only.
--
Thierry
Get my Gnupg key:
gpg --keyserver
pgp.mit.edu --recv-keys 59F29997