Commit Graph

425 Commits

Author SHA1 Message Date
Simon Cambier
dcfb77f551 Massive refactoring to get rid of the deprecated global app instance 2024-05-21 21:13:35 +02:00
Simon Cambier
482a66eac0 Quick hack for global app 2024-05-18 22:55:33 +02:00
Simon Cambier
5010a47466 Cleaned global app warnings 2024-05-18 09:52:28 +02:00
Simon Cambier
82fe4c7eb8 Disable url tokenization on iOS 2024-05-18 08:52:39 +02:00
Simon Cambier
7a6ffb5682 Removed welcome message 2024-05-17 23:10:21 +02:00
Simon Cambier
54bbe59db8 #151 - User-defined boosted fields 2024-05-17 23:10:00 +02:00
Aiden Liu
c4211a0b09 feat: enable search optimized tokenizer for Chinese (#370)
* feat: enable search optimized tokenizer for Chinese

* docs: update readme on CJK support
2024-05-07 17:58:01 +02:00
Simon Cambier
9da29b3f3f Fixed typo 2024-04-15 07:23:41 +02:00
Simon Cambier
13c7ec7c78 #363 - Gate url tokenization behind a setting 2024-04-15 07:18:17 +02:00
Simon Cambier
610272b885 try-catch the url extractor part of the tokenizer, should fix #362 2024-04-11 12:50:16 +02:00
Simon Cambier
35f702a325 Merge branch 'develop' of https://github.com/scambier/obsidian-omnisearch into develop 2024-03-30 18:24:53 +01:00
Price Baldwin
f86736e140 Add shortcut to open note in a new split pane (PR #202) (#358)
This adds the shortcut `cmd/ctrl + alt + enter` to the search modal to open a found file in a new leaf. I used the term "split" in user-facing text, because I think that's the more common

Some things to note:
- This function ignores the existing "open in new pane by default" setting.
- It also does not check to see if the file is already open. It will continue opening the value in a new split as often as the user wants.
2024-03-29 21:44:18 +01:00
Simon Cambier
bcea7493c7 Removed useless code 2024-03-26 21:41:54 +01:00
Simon Cambier
484e961a7e Highlighting rework, should help with #304 2024-03-26 21:32:03 +01:00
Simon Cambier
036363884d Correct ctrl+g label 2024-03-16 14:54:16 +01:00
eegrok
72cb4216c0 Add ability to downrank some folders in the results (#350)
* add downrankedFoldersFilters to settings

* use downrankedFoldersFilters to downrank some files without excluding them in obsidian, which also prevents tags from being indexed

* change hotkey for toggling excerpts to ctrl-g

* change var to let for proper scoping

* trim folders after splitting them

* only log downranking when we actually do it

* format with Prettier

* make prompt-instruction-command still ctrl g for now
2024-03-14 18:36:23 +01:00
Simon Cambier
c66c65cdc2 Higlight improvements 2024-03-11 10:34:21 +01:00
Simon Cambier
32233a1468 Merge branch 'master' of https://github.com/scambier/obsidian-omnisearch 2024-02-23 17:32:47 +01:00
Simon Cambier
609e52f711 Fixed #336 2024-02-23 17:32:43 +01:00
Don Faulkner
7af00efc27 Update settings.ts (#342)
Sandbox the sponsor button iframe
2024-01-31 22:35:57 +01:00
Simon Cambier
c38ec4e9b8 Use minisearch's new result.terms 2024-01-23 07:51:56 +01:00
Simon Cambier
6424d6f7b9 Don't display "closing http server" notice when the server is not running 2024-01-23 07:51:32 +01:00
Simon Cambier
4b8bf437ce Fixed logDebug() call 2024-01-22 22:12:41 +01:00
Simon Cambier
3a7ae233b6 Moved the "debugging" section under the local http server 2024-01-22 21:39:40 +01:00
Simon Cambier
d218b191f6 Tokenize Chinese for search 2024-01-22 21:39:07 +01:00
Simon Cambier
a391daf2d3 Useless code 2024-01-22 20:33:33 +01:00
Simon Cambier
70baec4ae1 Fixed an issue where results weren't returned as they should 2024-01-22 19:42:59 +01:00
Simon Cambier
ec0f8d0a0b Updated welcome message 2024-01-20 12:11:09 +01:00
Simon Cambier
0f7418b22e Merge branch 'master' of https://github.com/scambier/obsidian-omnisearch
# Conflicts:
#	src/settings.ts
2024-01-20 12:05:25 +01:00
demig00d
e618d4ca47 Index office documents (#340)
👌
2024-01-20 12:01:43 +01:00
Simon Cambier
569d6c73ed Removed useless excalidraw toggle 2024-01-20 10:58:36 +01:00
Simon Cambier
94b34c2a8f #338 - Fixed, + fixed some other noUncheckedIndexedAccess 2024-01-06 10:53:11 +01:00
Simon Cambier
763fbb5886 #334 - Added a user-hidden setting to index excalidraw files 2024-01-05 21:26:44 +01:00
Simon Cambier
2ef38bdf26 Fixed the scrollIntoView() position 2024-01-05 20:59:38 +01:00
Simon Cambier
c5efa2ec90 Better selection for top excerpt 2024-01-05 20:24:44 +01:00
Simon Cambier
7a2f9b0ee0 Fixed: extensions can be searched with ".foo" in addition to "ext:foo" 2023-12-17 13:58:38 +01:00
Simon Cambier
703568dab3 Fixed bug with diacritcs and quoted searches
Also added more cached data
2023-12-17 13:50:07 +01:00
Maxime Lapointe
44b25eca25 Add highlighting in the note path (#327)
Co-authored-by: Maxime Lapointe <maxlap@gmail.com>
2023-12-16 10:12:13 +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
753811fa41 Merge branch 'develop' 2023-11-11 10:08:17 +01:00
Simon Cambier
c8e65558bc "Fixed" a condition 2023-11-10 19:12:20 +01:00
Simon Cambier
99a20f2e55 #164 - Added a button on mobile to switch to In-File (and back) 2023-11-02 18:02:20 +01:00
Simon Cambier
8d9a583335 Reduced debounce delay to 0 for updateResults() 2023-11-01 15:30:53 +01:00
Simon Cambier
1e6478d83e Cleaned some warnings from the deprecated global app object 2023-11-01 14:51:07 +01:00
Simon Cambier
8832ce7b78 #310 - Server notice display is now opt-out 2023-11-01 14:02:45 +01:00
Simon Cambier
8355489bcd #304 - Index more tokens, words split by brackets/parentheses 2023-11-01 13:22:06 +01:00
Simon Cambier
285c4e9257 Fixed bug where "Searching..." label wouldn't disappear 2023-11-01 12:26:35 +01:00
Simon Cambier
21df489a0b #298 - enabled case-insensitivity 2023-11-01 11:18:43 +01:00
Simon Cambier
4735d1dac3 Moved "show previous query" setting 2023-11-01 11:03:49 +01:00
Simon Cambier
beb4f191dc #306 - Reworked search field auto-fill 2023-11-01 10:29:41 +01:00