Commit Graph

23 Commits

Author SHA1 Message Date
tanner bb58c12306 fix: Correct match offset when ignoring diacritics
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-02-13 16:46:25 -07:00
tanner 292fb765de fix: Ensure correct excerpt slicing before removing blank lines
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-02-13 11:30:07 -07:00
tanner ec2a720649 fix: Ensure highlighting matches HTML-escaped text in excerpts
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-02-13 10:56:07 -07:00
tanner a8c18f5dca fix: Improve search term highlighting for words with punctuation
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-02-13 10:48:20 -07:00
tanner 2b00a7af2d fix: Prioritize exact phrase matches and fix case-sensitive search
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-02-05 13:09:36 -07:00
tanner 3c84980903 fix: Prevent premature HTML escaping of search terms
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-02-05 13:03:34 -07:00
Simon Cambier 40a073e2c8 #452 - Actually let's remove all that code
There is certainly a reason it was so complicated, but it has always been buggy anyway.
2025-03-26 21:55:59 +01:00
Simon Cambier 157d985a05 #452 - Fix highlighting with escaped html 2025-03-26 21:34:18 +01:00
Simon Cambier ca3ca3b24b Small logging refactoring
Most logs are now console.debug
Removed "Omnisearch" prefix in (almost) all logs
Removed timestamp prefix
2024-11-09 17:46:48 +01:00
Simon Cambier 0c41d48963 escape html for external strings 2024-10-08 20:46:12 +02:00
Simon Cambier 43dd1f469e chore: deps update and fixed some import paths 2024-09-15 16:39:20 +02:00
Simon Cambier 87d2085fda #373 - Arabic diacritics 2024-06-27 21:00:18 +02:00
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