Closed Improvisu closed 13 years ago
Using the resultFormatter
option, you can easily add highlighting to specific portion of a result.
I've added a new example (Example 7) to the demo page, which shows how do it.
I avoided adding an option for this as there was no clear common use case. On many instances, how and what you want to highlight depend on the context.
Thanks. That helps. I see what you mean about no clear common use case. I ended up going with the Quicksilver algorithm and with that you can't really use highlighting except for those with a score of 1.
It would be nice if we could boldface the searched text in the results, so for example, if we had typed "cat" into the query field, the results would be:
To turn this one it could be one simple option:
Great job with this by the way.