Commit Graph

11 Commits

Author SHA1 Message Date
Simon Cambier
6566a2e958 Massive refactor to get rid of the global app. 2024-05-25 22:49:50 +02:00
Simon Cambier
dcfb77f551 Massive refactoring to get rid of the deprecated global app instance 2024-05-21 21:13:35 +02:00
Simon Cambier
484e961a7e Highlighting rework, should help with #304 2024-03-26 21:32:03 +01:00
Simon Cambier
c66c65cdc2 Higlight improvements 2024-03-11 10:34:21 +01:00
Simon Cambier
a391daf2d3 Useless code 2024-01-22 20:33:33 +01:00
Simon Cambier
c5efa2ec90 Better selection for top excerpt 2024-01-05 20:24:44 +01:00
Hajime Nagisa
9cac7c0581 Fix: issue#190 (#317)
* Fixed search results with diacritics

- Caches are now stored with diacritics regardless of settings.ignoreDiacritics
- Modified getMatches() behavior to return results with correct form
- Modified ResultItemVault.svelte

* Fixed highlighting words with comma and period

- remove commas and periods from matches

* Fixed highlighting of Cyrillic characters

- changed highlight regexp determination to be based on character type

* Fixed highlighting problem of Japanese and Korean

- marked some Japanese diacritics to escape removal
- added NFC normalization to keep right form of Korean character

* Fixed highlighting of words with punctuation

- deleted space/punctuation list from stringsToRegex()
- it seems to be working correctly with words with punctuation and hyphenated words AFAIK

* Deleted some unused imports

* Modified the comment

* Added comment

* Fixed highlighting issue with comma and period

* Fixed highlighting issue with caret and other symbols

- Added `^` to separators
- Changed regex to use separators
- Added escape of `^` from diacritics removal
2023-11-29 07:32:25 +01:00
Simon Cambier
21df489a0b #298 - enabled case-insensitivity 2023-11-01 11:18:43 +01:00
Simon Cambier
4a4d322f33 #303 - Improving Chinese result highlighting 2023-11-01 09:53:32 +01:00
Simon Cambier
0558b9a328 #287 - Fixed & improved highlightText() + a bit of cleaning (#288) 2023-09-11 21:32:01 +02:00
Simon Cambier
603116158e Refactored excerpts and highlighting 2023-08-31 19:23:44 +02:00