Commit Graph

1897 Commits

Author SHA1 Message Date
SysC0mp
7d5c827dec Remove whitespace 2019-12-09 21:08:38 +01:00
SysC0mp
ce89ff3c85 FIx test methods
Use RawScore or Score depending on the test case. Also removed
unnecessary test settings introduced earlier.
2019-12-09 21:08:17 +01:00
SysC0mp
e60797cd0f Introduce RawScore property
New property RawScore is used to save the calculated score without any
search precision filtering added.
2019-12-09 21:06:31 +01:00
SysC0mp
49c5c5bbde Pass "ShouldUsePinyin" to StringMatcher
Flag is used in method "ShouldUsePinyin()" to avoid calling Alphabet
service. Otherwise, tests applying to StringMatcher.FuzzySearch() would
fail because the pinyin helper library fails to initialize.
2019-12-09 20:57:59 +01:00
SysC0mp
78f243651e Pass Settings instance to Alphabet again 2019-12-09 20:47:24 +01:00
SysC0mp
f4a2f67db3 Fix wrong comparison parameter
Wrong string was used for FuzzySearch comparison which resulted wrong highlighted letters in the results.
2019-12-03 19:23:01 +01:00
SysC0mp
601d6f37af Highlight how results matched 2019-12-03 15:31:23 +01:00
SysC0mp
a004ef65af Set title & subtitle highlight data 2019-12-03 15:31:23 +01:00
SysC0mp
8997c27819 Add highlight converter component 2019-12-03 15:31:23 +01:00
SysC0mp
2aeceb7ea8 Fix tests for new search precision handling 2019-12-03 15:31:23 +01:00
SysC0mp
627e99859d Directly calculate pinyin if needed
The MatchResult will always get the maximum score from either
ScoreForPinyin() or CalculateSearchScore(). ScoreForPinyin() is
completely dependant on the "ShouldUsePinyin" global setting.
2019-12-03 15:31:23 +01:00
SysC0mp
6ebca7fa7c Apply search precision filter on assignment
The search precision must be used, so it makes sense to apply the filter
directly on score assignment. Score will be "0" if precision filter
was not met.
2019-12-03 15:31:23 +01:00
SysC0mp
3d55ad783e Only pass needed setting to Alphabet
As Alphabet class is static, its methods could be used without
ever calling Alphabet.initialize(_settings) beforehand which would end
in an exception.  Therefor only _shouldUsePinyin settings needed will
be transferred with a given default value.
2019-12-03 15:31:08 +01:00
SysC0mp
05f66f9bea Improve code formatting 2019-12-03 15:31:07 +01:00
Jeremy Wu
434ba82705 Fix build fail from task reindex run 2019-12-03 15:31:07 +01:00
Jeremy Wu
9c69f22f79
Merge pull request #77 from theClueless/pinyinInfraSettings
Pinyin infra settings
2019-11-17 17:35:08 +11:00
Jeremy Wu
85ad6b12ba
Merge pull request #78 from theClueless/programSyncIssue
fixed lock issue
2019-11-17 17:30:04 +11:00
Jeremy Wu
79706b4a1a
Merge pull request #76 from theClueless/uwpErrorFix
fixed broken log
2019-11-17 17:26:19 +11:00
theClueless
72180d4248
Merge branch 'dev' into uwpErrorFix 2019-11-16 11:48:09 +02:00
AT
8446c9563d fixed lock issue 2019-11-16 02:37:01 +02:00
AT
9d98d26cc7 added log into Alphabet service since it can induce a large perf hit 2019-11-16 01:28:07 +02:00
AT
0c762e610f fixed broken log 2019-11-16 00:57:30 +02:00
AT
dcb9e34d59 alphabet settings 2019-11-16 00:34:27 +02:00
Jeremy Wu
8edebb9f75 Merge branch 'add_browserpath_userselection' into dev 2019-11-12 07:22:32 +11:00
Jeremy Wu
8abe31341d Add browserpath display on load 2019-11-12 07:22:03 +11:00
Jeremy Wu
c1eca93609 update path textbox layout browser bookmarks 2019-11-12 07:16:32 +11:00
Jeremy Wu
cd953bc7b9 Update layout for Url plugin setting + remove apply button 2019-11-12 07:14:58 +11:00
Jeremy Wu
205b505242 Browser bookmarks update display and remove apply button 2019-11-11 22:29:15 +11:00
Jeremy Wu
f77cd9bd52 add browser path to open method in browser bookmark plugin 2019-11-11 22:05:19 +11:00
Jeremy Wu
11948c1cce Add browser selection to WebSearch plugin 2019-11-11 22:04:01 +11:00
Jeremy Wu
d7e6f97d9c Add browser path selection for browserbookmark plugin 2019-11-11 21:17:37 +11:00
Jeremy Wu
e324856301 Merge branch 'allow_option_websearch_openintab' into add_browserpath_userselection 2019-11-11 20:35:24 +11:00
Jeremy Wu
8fb873b085 Merge branch 'allow_option_websearch_openintab' into dev 2019-11-11 08:01:05 +11:00
Jeremy Wu
c17eb5fce5 Add user selection option for browserbookmark plugin 2019-11-11 08:00:31 +11:00
Jeremy Wu
91e9bdfc31 update 2019-11-11 07:36:58 +11:00
Jeremy Wu
c83edc1689 Add user selection option to url plugin 2019-11-11 06:49:17 +11:00
Jeremy Wu
dcbd4f3356 add option to Url plugin 2019-11-11 06:04:16 +11:00
Jeremy Wu
3929043eec fixed enable suggestions display 2019-11-11 05:59:37 +11:00
Jeremy Wu
23712ce590 Add option in WebSearches plugin settings panel for user selection 2019-11-10 20:43:40 +11:00
Jeremy Wu
adb2582856 Reverse out common open browser call and update open browser in tab 2019-11-10 20:15:14 +11:00
Jeremy Wu
3e292d7604 Reverse changes made to new browser window call 2019-11-10 20:12:45 +11:00
Jeremy Wu
b565d1ab76 Update naming 2019-11-10 19:51:50 +11:00
Jeremy Wu
2debabe664 Add option to open in tab for WebSearch plugin 2019-11-10 19:12:43 +11:00
Jeremy Wu
e1fc11218f
Merge pull request #72 from theClueless/upstreamdev
Fix bug throwing exception for IcoPath null
2019-11-10 17:00:12 +11:00
AT
ed59d6acf5 when both icopath and icon delegdate are empty\null it will raise an exception.
currently delegate is verified and an error icon will be presented (same as before) but without raising an excpetion.
2019-11-09 11:55:53 +02:00
Jeremy Wu
93c952b344
Update README.md 2019-11-08 05:47:54 +11:00
Jeremy Wu
d818a15aea Merge branch 'master' into dev 2019-11-08 05:40:45 +11:00
Jeremy Wu
6a664d976f
Merge pull request #69 from jjw24/fix_error_message
Fix error message logging for prod run
2019-11-08 05:39:06 +11:00
Jeremy Wu
5b7a71fb08 Fix missing required parameter in logger 2019-11-08 05:38:40 +11:00
Jeremy Wu
b29d83968b Merge branch 'master' into fix_error_message 2019-11-08 05:37:42 +11:00