At.js
At.js copied to clipboard
Match not exactly
Hi! Is it possible to match but not exactly? So typing @rn, the suggestion list is Ron, Roman, Ryan? Thanks! I got the idea from Sublime Text's overlay command palette. Super useful, btw. Wondering if there is a web equivalent.
You could probably override the filter
callback to achieve what you're wanting.
The default one just checks that the query (i.e. typed text) is contained within your data items' searchKey
:
https://github.com/ichord/At.js/blob/1b7a52011ec2571f73385d0c0d81a61003142050/src/default.coffee#L73
Overriding that to look for the letters you're typing anywhere in the data items might work.