horsey icon indicating copy to clipboard operation
horsey copied to clipboard

How can I make highlighting case insensitive?

Open phocks opened this issue 7 years ago • 3 comments

Letter highlighting seems to be case sensitive. I am just wondering how I might go about making it highlight letters regardless of uppercase and lowercase.

I took a look in the code it seems like the search gets around this by converting everything to lowercase, but ideally I would like to keep title case on my list items.

snip20170711_2

phocks avatar Jul 11 '17 03:07 phocks

https://github.com/bevacqua/horsey/blob/master/horsey.js#L427 - the comparison happens here

msokk avatar Aug 09 '17 16:08 msokk

I ended up using this JavaScript Autocomplete which highlights uppercase and lowercase searches out of the box. https://github.com/Pixabay/JavaScript-autoComplete

phocks avatar Aug 09 '17 23:08 phocks

There's a PR for this here: https://github.com/bevacqua/horsey/pull/71

blq avatar Apr 04 '19 16:04 blq