At.js icon indicating copy to clipboard operation
At.js copied to clipboard

Match not exactly

Open leonardlan opened this issue 6 years ago • 1 comments

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.

leonardlan avatar Jul 24 '18 19:07 leonardlan

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.

dixon avatar Aug 01 '18 20:08 dixon