Commit Graph

93 Commits

Author SHA1 Message Date
clueless
9488864f47 everything updates -
- support ~cancellation in api.
- API refactoring.
- API - locked to enable collisions.
- other small changes
2020-01-26 01:34:11 +02:00
clueless
beefc6a86e fix 2020-01-25 00:12:32 +02:00
Jeremy Wu
07310c7714 Fix pinyin fuzzysearch (#131)
* fix typo

* make function obsolete 

it is not used in the code

* rewrite the function that converts chinese chars to pinyin

1. Only difference in this rewrite is instead of returning 2D array, return as a combined single string of all the possible pinyin combination. Since fuzzy search does character matching, this shouldn't be a problem.

2. Added a function that returns a custom language converter. In this case Pinyin converter. New converters can be added.

* Use new language converter param + strip out ScoreForPinyin method

* update

* Change parameter name

* fix failing tests

* WIP

* Remove todo

There should be some distinction between score after precision filter and actual raw score derived from FuzzySearch. Although so far RawScore is used in testing, but it seems to describe the structure. Originally it was to avoid assigning score directly as it would be hard to reason about that output of FuzzySearch score is.

* Add constructors, remove default to enforce required properties

* remove setting rawscore in SearchPrecision

* Change method name to reflect intention

* Change parameter name + update comment

* update

* Remove params comment

Co-authored-by: theClueless <14300910+theClueless@users.noreply.github.com>
2020-01-20 01:06:16 +02:00
AT
49b85d150c initial work, added github to setting,
change update manage from static
created log folder prop for log class
2020-01-07 02:34:46 +02: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
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
AT
dcb9e34d59 alphabet settings 2019-11-16 00:34:27 +02:00
Jeremy Wu
3f90611edf Initial prep of settings and start up default 2019-09-29 14:27:46 +10:00
bao-qian
16531653ab Merge branch 'master' into dev 2017-04-07 11:55:56 +01:00
bao-qian
f4d0cc4dd1 Misc 2017-04-01 18:50:22 +01:00
bao-qian
d31347c0e0 Revert "Remove first chance exception"
This reverts commit 4aa4d98c08f3bcc176bd3ac1b9b718ab98298ca4.
The squirrel crash is not caused by this #1320
2017-04-01 18:45:57 +01:00
bao-qian
f62f15cea7 Decouple runtime info and dependencies info 2017-04-01 13:02:07 +01:00
bao-qian
bf4c4561ce Remove some useless code for error reporting 2017-04-01 12:49:51 +01:00
bao-qian
90f7b5259b Remove first chance exception
Remove first chance exception,
it crash the app frequently when squirrel throw/catch exception internally.
2017-03-28 22:30:55 +01:00
bao-qian
c6e65b4e24 test 2017-03-06 01:01:58 +00:00
bao-qian
ff29b6e84f fix can't catch exception issue
- Origin code can't catch exception in code, and all exceptions goes
into first chance exception hanlding.
- releated: #1266
- http://stackoverflow.com/a/5383408/2833083
-
https://msdn.microsoft.com/en-us/magazine/jj991977.aspx?f=255&MSPPError=-2147217396
2017-03-05 23:59:10 +00:00
bao-qian
6e3bc5e65d Save more 2017-03-01 23:47:50 +00:00
bao-qian
28c57f75e8 Fix #1255 2017-02-28 00:12:06 +00:00
bao-qian
d0c426a7f9 Completely rewrite resource load / update / remove
1. part of #468
2. fix #1245, bug introduced in 7e1c77beddf2c978fa1440e799fec4eb9554739d
2017-02-21 11:53:57 +00:00
bao-qian
46f98ded10 change init order 2017-02-12 17:10:42 +00:00
bao-qian
86b2391543 Cache for pinyin https://github.com/Wox-launcher/Wox/issues/1189 2017-02-12 16:57:41 +00:00
bao-qian
00ea4f8701 Move initia and save from MainViewModel to App 2017-02-12 16:57:24 +00:00
bao-qian
045fd20d8c Rewrite all log message format 2017-01-24 01:02:32 +00:00
bao-qian
1432866798 add startup boundary to log 2016-11-30 02:35:56 +00:00
Jordy Hulck
f45ca180e9 Fixed hide on startup problem (#852)
* Fixed HideOnStartup
* Fixed tray icon not showing up and hiding properly
2016-07-20 00:25:36 +01:00
bao-qian
3efeb4a0a6 Refactoring proxy, part 2 2016-06-19 16:22:45 +01:00
bao-qian
245cffc4f7 Refactoring visibility related events
1. remove unnecessary events from MainViewModel
2. remove usage of Obsolete api (show, hide etc)
3. fix space problem in #660
4. part of #486
5. fix up/down key bug introduced in 92b7ca6a1bafd254e39ee92812ff691906cd85c1
6. fix #678
2016-05-25 01:19:46 +01:00
bao-qian
7056be0870 Databinding for plugin tab + faster image load 2016-05-25 01:03:37 +01:00
bao-qian
7d2ac2f55d Introduce viewmodel for settingwindow 2016-05-25 01:03:34 +01:00
bao-qian
3cd405e9ea fix #628 2016-05-20 22:20:41 +01:00
bao-qian
937ce34c36 Rename 2016-05-18 19:38:43 +01:00
bao-qian
cddfd1b319 fix #625 2016-05-18 19:35:37 +01:00
bao-qian
bb3003dc3b Misc 2016-05-17 22:48:18 +01:00
bao-qian
2858dce664 Fix #620, part of #614 2016-05-17 22:23:37 +01:00
bao-qian
1517ae3fc9 Misc 2016-05-15 17:19:33 +01:00
bao-qian
cf9c41f437 Log first change exception 2016-05-15 17:03:06 +01:00
bao-qian
cdc244ec06 Misc 2016-05-13 23:54:41 +01:00
bao-qian
65577a67dc Add option to disable auto updates 2016-05-12 03:01:33 +01:00
bao-qian
405d55f3f6 Don't call init() and constructor for disabled plugins
part of #351
2016-05-10 01:08:54 +01:00
bao-qian
3f709cc39e Fix notify icon + move hotkey into MainViewModel 2016-05-09 23:35:20 +01:00
bao-qian
f376e1ab01 Fix #606 2016-05-09 22:56:05 +01:00
bao-qian
fb3ba16a92 fix SingleInstance 2016-05-09 22:45:24 +01:00
bao-qian
21285f02b8 Refactoring updater
1. move into a separate class
2. remove unused nuget package
2016-05-09 22:45:24 +01:00
bao-qian
7dd9b3fa0c Misc 2016-05-09 03:18:36 +01:00
bao-qian
9f70af009f Remove prerelease 2016-05-09 03:15:37 +01:00
bao-qian
6ac33b0568 Add manually check updates option
1. manually check updates
2. refactoring get http request to use async
3. remove some generic exception catch
4. remove unused code
2016-05-09 02:32:47 +01:00
bao-qian
e0b9a81c9b Installer + auto update on startup
1. installer
2. auto check update on startup
3. auto start on next startup
4. remove command line arguments which breaks squirrel
5. auto generate installer on continue integration
2016-05-08 17:28:02 +01:00
bao-qian
ba1e22955e Web search suggestion is loaded async
1. suggestion is async
2. if ping time of domain less than 300ms, then suggestion is still sync
3. #578 #539
2016-05-05 16:08:48 +01:00
bao-qian
785843198a Use existing installed python
1. use installed python
2. add settings to choose python directory
3. add py3 compability
4. create hello world python example
2016-05-05 01:57:03 +01:00