Commit graph

397 commits

Author SHA1 Message Date
弘韬 张
c54b678e6f Merge dev 2021-01-14 22:40:45 +08:00
弘韬 张
8fe1fbcf48 Merge dev 2021-01-14 10:39:37 +08:00
弘韬 张
575ad9157e Merge dev 2021-01-13 09:34:45 +08:00
Jeremy Wu
777b0b954c Merge remote-tracking branch 'origin/dev' into PluginPriority 2021-01-09 17:11:03 +11:00
张弘韬
8bd6820088 Merge branch 'PluginAsyncModel' into dev
# Conflicts:
#	Flow.Launcher/ViewModel/MainViewModel.cs
2021-01-09 12:59:59 +08:00
张弘韬
4b9ed759e3 Merge branch 'DotNet5Upgrade' into dev 2021-01-09 11:05:51 +08:00
张弘韬
62009ac3fb Merge remote-tracking branch 'upstream/dev' into DotNet5Upgrade
# Conflicts:
#	Flow.Launcher/Flow.Launcher.csproj
#	Plugins/Flow.Launcher.Plugin.Color/Flow.Launcher.Plugin.Color.csproj
#	Plugins/Flow.Launcher.Plugin.PluginManagement/Flow.Launcher.Plugin.PluginManagement.csproj
2021-01-09 11:01:38 +08:00
张弘韬
5ab54f8734 Merge branch 'RenderImprovement' into dev 2021-01-09 10:59:06 +08:00
张弘韬
3aa54d1153 Merge remote-tracking branch 'upstream/dev' into RenderImprovement 2021-01-09 10:58:53 +08:00
张弘韬
8031ddfbc8 Merge remote-tracking branch 'upstream/dev' into AcronymFuzzy 2021-01-09 10:55:16 +08:00
弘韬 张
8b813fef96 Merge remote-tracking branch 'upstream/dev' into PluginAPIExpand 2021-01-08 16:00:32 +08:00
弘韬 张
a8e4c504d0 Move MatchResult to Flow.Launcher.Plugin so that plugins can utilize main method 2021-01-08 15:52:45 +08:00
弘韬 张
971d374582 Merge Dev 2021-01-07 21:43:32 +08:00
弘韬 张
a6609d6b2c Add Cancellationtoken for downloadasync
Remove extra action in http for cancellation due to it will throw TaskCancelledExcpetion internally
2021-01-07 21:37:45 +08:00
弘韬 张
2b085dbcee Merge dev 2021-01-07 20:48:02 +08:00
弘韬 张
e1f715e6d6 change commnet 2021-01-07 16:52:05 +08:00
弘韬 张
f72b716fb4 use string.empty instead of null 2021-01-07 11:20:14 +08:00
弘韬 张
d0d938b92a Add Cancellationtoken for Http.cs 2021-01-07 11:04:07 +08:00
弘韬 张
a9aeecdabd Merge remote-tracking branch 'upstream/dev' into UpdateJson 2021-01-07 10:58:17 +08:00
Jeremy Wu
012d2d05f2 Merge remote-tracking branch 'origin/dev' into PluginPriority 2021-01-07 13:36:31 +11:00
弘韬 张
6b597f7516 throw exception if debug for Log.exception(className, message, exception) 2021-01-06 17:42:46 +08:00
弘韬 张
2b9008840a Merge Dev 2021-01-06 17:36:31 +08:00
Jeremy Wu
fb188690c3
Merge pull request #278 from taooceros/ImageQuality
Image quality
2021-01-06 20:28:28 +11:00
弘韬 张
3b9c10fd66 Use SVG for search icon 2021-01-06 10:34:08 +08:00
弘韬 张
e790e9474e Add Plugin Priority Settings 2021-01-05 16:11:38 +08:00
弘韬 张
bc63b9ebfa Change Download to DownloadAsync
Add error handling for download as well
2021-01-04 10:31:05 +08:00
弘韬 张
a8dc1599d7 Add Http Error Handling 2021-01-04 10:28:33 +08:00
张弘韬
3cd609377e Plugin Async ModelAdd Full Async model, including AsyncPlugin and AsyncReloadable 2021-01-03 10:33:10 +08:00
弘韬 张
7bbd8c6069 remove using from Helper.cs 2020-12-30 19:05:02 +08:00
弘韬 张
557842e8d7 remove dependency 2020-12-30 13:48:06 +08:00
弘韬 张
d28b14ff2d Replace All use of Json.Net with System.Text.Json 2020-12-30 13:40:42 +08:00
弘韬 张
0c97db04d4 1. Change Get method Name to GetAsync
2. Manually replace "#" with "%23" to solve the similar issue in Explorer plugin
3. Add GetAsync method with Uri as argument
4. Remove unused encoding argument
5. Change exception type for WebSearch Plguin
6. Update Comment
2020-12-29 17:50:56 +08:00
弘韬 张
e364b84b84 Use auto property 2020-12-29 17:16:44 +08:00
弘韬 张
4d5119f17d Add out of bound exception for pattern matching 2020-12-29 17:15:34 +08:00
弘韬 张
a806f7d05a Change exception type 2020-12-29 17:14:13 +08:00
弘韬 张
cfa93a2cc6 Add GetStreamAsync method 2020-12-29 17:13:31 +08:00
弘韬 张
7dc66eaa9a Merge dev 2020-12-29 17:12:14 +08:00
Jeremy Wu
181d871bfd
Merge pull request #249 from taooceros/PluginManagerImprove
Plugin manager improve
2020-12-29 18:59:47 +11:00
Jeremy Wu
a1a45a4989 add eof 2020-12-29 17:49:11 +11:00
弘韬 张
5da8259228 fix an unintended text error
add async await to download manifest task
remove unused encoding name for new GetStreamAsync in Http
fix unintened text error
2020-12-29 13:03:38 +08:00
弘韬 张
f32e202746 Use System.Text.JsonSerializer.DeserializeAsync instead of Newtonsoft.Json since our plugins.json can be large, so no need to create an extra string to store it. 2020-12-29 12:20:13 +08:00
张弘韬
34f51927cf 1. Move PluginsManager constuction to Init().
2. Return HotKeys list when query is like "pm *"
2020-12-27 21:13:25 +08:00
张弘韬
7ceb08071c Use inner loop to evaluate acronym match (Big Change)
Don't end loop before acronym match end since if acronym match exist, we will use that one.
2020-12-27 20:16:20 +08:00
张弘韬
75b99415eb Use Binary Search instead of Linear search to reduce time complexity.
Add Key Property for debugging.
2020-12-26 00:29:35 +08:00
张弘韬
2c9f4149b7 optimize use 2020-12-22 22:58:27 +08:00
张弘韬
b7a0ada60b Add Mapping to original string after translation. Not sure about the performance, but seems satisfying.
It requires at most n times loop (n: number of translated charater) mapping once.
2020-12-22 21:53:59 +08:00
张弘韬
e67058e53e Merge remote-tracking branch 'upstream/dev' into AcronymFuzzy 2020-12-22 17:52:19 +08:00
张弘韬
88fa862277 Use event triggered update method instead of checking Proxy every time doing Http request 2020-12-22 00:31:00 +08:00
张弘韬
5ab8c4faa3 Update Proxy every time calling a http request method since the proxy setting won't update automatically without action 2020-12-21 20:55:28 +08:00
张弘韬
85f5766022 Optimize a few code 2020-12-21 19:30:18 +08:00
张弘韬
db0b4c1ca4 Merge remote-tracking branch 'upstream/dev' into UpdateHttpMaster
# Conflicts:
#	Flow.Launcher.Infrastructure/Http/Http.cs
#	Plugins/Flow.Launcher.Plugin.PluginManagement/Main.cs
2020-12-21 19:23:16 +08:00
Jeremy Wu
adad5ae83b add url website in Settings 2020-12-20 21:10:55 +11:00
taooceros
0eef6c2db2
Merge pull request #231 from Flow-Launcher/add_pluginsmanager
Add PluginsManager for managing PluginsManifest repo
2020-12-14 06:10:55 -08:00
Jeremy Wu
0928b0592e
Merge pull request #235 from taooceros/AddSpaceForPinyin
Add space for pinyin translation
2020-12-14 21:25:47 +11:00
Jeremy Wu
4c773dbaa1 clean up, no code changes 2020-12-14 21:21:48 +11:00
Jeremy Wu
c8b251d63a use Http.Get from Infrastructure 2020-12-14 08:41:18 +11:00
弘韬 张
64d67c1aa5 Update PinyinAlphabet.cs
optimize Chinese character check logic

Co-Authored-By: ToolGood <toolgood@qq.com>
2020-12-12 14:55:41 +08:00
弘韬 张
d64b4b5b0c Change the way getting acronym 2020-12-11 22:20:09 +08:00
弘韬 张
aaa938191a Manually add sapce to only the cinese character and the surrounding. 2020-12-11 22:08:46 +08:00
弘韬 张
eaf3267353 Add space for pinyin translation 2020-12-08 19:48:42 +08:00
弘韬 张
1ddf83fc86 Update to DotNet5 2020-11-30 11:34:45 +08:00
Jeremy Wu
920668db00
Merge pull request #223 from taooceros/fixTrayMenuTranslation
fix tray menu translation
2020-11-30 07:35:18 +11:00
弘韬 张
5a9c631577 Use PropertyChange event to change text when language has changed. 2020-11-29 20:50:28 +08:00
弘韬 张
6b9622844c Merge ImageCache change 2020-11-28 13:29:55 +08:00
Jeremy Wu
f20c721ad1 allow MissingImgIcon and DefaultIcon to be removed from image cache 2020-11-27 13:12:09 +11:00
弘韬 张
05aa7062d7 Change ErrorIcon to MissingImgIcon in ImageCache check since we don't use ErrorIcon anymore 2020-11-27 08:46:59 +08:00
Jeremy Wu
b8b0e8c23a Merge branch 'dev' into RenderImprovement 2020-11-27 07:32:00 +11:00
Jeremy Wu
ac945f4814 revert unneeded condition on Constant.MissingImgIcon 2020-11-27 07:04:39 +11:00
Jeremy Wu
efcb6a7833 add status check when base.Value has faulted 2020-11-26 20:47:04 +11:00
弘韬 张
b3df2fd590 change default image property name 2020-11-25 23:22:27 +08:00
弘韬 张
a7310d5d22 Use Customized LazyAsync class to load image instead of the weird way of updating lazy class async 2020-11-25 23:21:53 +08:00
弘韬 张
1439ee7e9e Use a default image to list when the image hasn't been loaded in cache.
Co-authored-by: Bao-Qian <bao.github@outlook.com>
2020-11-25 23:21:20 +08:00
弘韬 张
6e87b9237b Merge remote-tracking branch 'upstream/dev' into RenderImprovement 2020-11-20 22:35:35 +08:00
弘韬 张
71cac9cb23 change the way of checking whether cache exist 2020-11-16 13:04:16 +08:00
弘韬 张
d9ef68272b change default image property name 2020-11-16 12:58:53 +08:00
弘韬 张
0a9bad3ffa Use Customized LazyAsync class to load image instead of the weird way of updating lazy class async 2020-11-16 12:46:39 +08:00
Jeremy Wu
83ccfac04f move Themes string to Constant 2020-11-16 06:29:24 +11:00
弘韬 张
b1dd7b4181 Move Image Cache filtering earlier 2020-11-15 21:03:39 +08:00
弘韬 张
dc982e277f Use a default image to list when the image hasn't been loaded in cache.
Co-authored-by: Bao-Qian <bao.github@outlook.com>
2020-11-15 21:00:00 +08:00
Ioannis G
e72407f0d8
merge PR #160: fix plugin dependency loading
Fix plugin dependency loading and remove excess duplicate package references
2020-11-12 12:39:44 +02:00
Jeremy Wu
26285abfd7 fix formatting 2020-11-12 13:34:23 +11:00
弘韬 张
55fb5536bd change struct to class to use reference type 2020-11-11 18:39:02 +08:00
弘韬 张
bf271b9da7 refactor Image Cache to single dictionary 2020-11-11 18:38:49 +08:00
Jeremy Wu
d3d69be9c2 fix merge error 2020-11-11 08:30:34 +11:00
Jeremy Wu
d0cb8021c6 Merge branch 'dev' into address_high_memory_issue 2020-11-11 08:29:53 +11:00
Jeremy Wu
732f3b410a Merge branch 'dev' into fix_plugin_depenedency_loading 2020-11-02 08:01:50 +11:00
弘韬 张
eb736562fc Change the Alphabet Name to allow future expansion 2020-11-01 18:07:35 +08:00
弘韬 张
77aff43d1a Initialize uninitialized cache 2020-10-25 10:26:56 +08:00
Jeremy Wu
48faa99ab5 Merge branch 'dev' into fix_plugin_depenedency_loading 2020-10-25 10:48:30 +11:00
弘韬 张
706f30a3a2 Add number support (treat number as part of acronuym) 2020-10-24 17:45:31 +08:00
弘韬 张
80a2f0df71 Put tranlate query back to fuzzy search until better solution 2020-10-21 17:00:56 +08:00
弘韬 张
4d06187fa5 use ?. and ?? instead of if == null 2020-10-20 08:28:05 +08:00
弘韬 张
9b779d90d2 Add curly bracket 2020-10-20 07:38:20 +08:00
弘韬 张
6210454bbd Fix reverse condition 2020-10-19 20:37:40 +08:00
弘韬 张
468f8899b9 Add return statement.... 2020-10-18 21:31:08 +08:00
弘韬 张
9ad7838729 merge one extra condition to the switch case 2020-10-18 21:25:55 +08:00
弘韬 张
c63c98645c Add Acronym Support for Fuzzy Search 2020-10-18 21:17:29 +08:00
弘韬 张
dd2d3c68c1 fixup the reduced code due to testing 2020-10-18 17:51:10 +08:00
弘韬 张
4ebfba76a3 using ContainKey instead of getvalueofdefault 2020-10-18 17:51:08 +08:00
弘韬 张
c4b81a9429 change query translation to Program.Main instead of using Alphabet.Tranlate to avoid cache. 2020-10-18 17:51:05 +08:00
弘韬 张
d17621cd2e change new string to string.concat() 2020-10-18 17:51:00 +08:00
Bao Qian
3454dc6d74 Change Pinyin Library 2020-10-18 17:50:58 +08:00
Bao Qian
d9085ca66c Change Reference 2020-10-18 17:50:52 +08:00
弘韬 张
c55e889f4f Change Download to HttpClient as well (which change it to async as well) 2020-10-14 11:29:12 +08:00
弘韬 张
a16cc5be8d Move Old HttpWebRequest to HttpClient Instance (solve connection timeout) 2020-10-14 10:48:43 +08:00
Jeremy Wu
7fd9c87bd1 remove excess or duplicated package references
- since we have fixed how dependencies are resolved for plugins, these excess or duplicated package references can be safely removed

- for example Newtonsoft.Json can be removed from default plugins as it is included in Flow.Launcher.Plugin project, and external plugins will be resolved to use the reference there
2020-09-22 07:17:01 +10:00
Jeremy Wu
d3fbabe10e add dedicated missing img icon 2020-09-07 06:55:12 +10:00
Jeremy Wu
87ae60d2e8
Merge pull request #119 from Flow-Launcher/add_filecontent_search
Add file content search for Explorer plugin
2020-08-17 19:36:45 +10:00
Ioannis G
e4979ab855
merge PR #127: update WebSearch plugin
fix location of custom icons
2020-08-16 19:31:37 +03:00
Jeremy Wu
eac5c4c47c update per comment 2020-08-16 21:49:22 +10:00
Jeremy Wu
48557aec06 change to dynamically loading of icon images for WebSearch 2020-08-12 07:08:24 +10:00
Arjun Balgovind
4e534b56ac Skip ErrorIcon and DefaultIcon while resizing the dictionary. From arjunbalgovind:user/arbalgov/apperrorFix 2020-08-10 21:47:46 +10:00
Jeremy Wu
ca08e60308 revert-image cache as dictionary, concurrent not serializable 2020-08-10 07:18:03 +10:00
Jeremy Wu
ffa68a5a7b use updated method from ImageCache class to save images to cache 2020-08-05 19:58:48 +10:00
Jeremy Wu
86f6f9921e update to use concurrent dictionary 2020-08-05 19:57:53 +10:00
Jeremy Wu
086c5d05e7 update to Flow 2020-08-05 19:57:23 +10:00
Alekhya Reddy
e37217c878 From alekhyareddy28:memoryIssue on Jun 27, 2020 2020-08-05 19:30:45 +10:00
Jeremy Wu
ac46fdc2c9 remove code that has been marked obsolete 2020-08-04 20:01:46 +10:00
Jeremy Wu
898b1dbd46 Merge remote-tracking branch 'origin/dev' into add_filecontent_search 2020-07-22 07:21:01 +10:00
Jeremy Wu
6f2ff84543 remove Constant.EverythingSDKPath and usage 2020-07-21 14:24:30 +10:00
Jeremy Wu
6518bf87d8 add versioning to plugin settings 2020-07-19 22:11:55 +10:00
Jeremy Wu
f292456904 handle new action keyword in Explorer- one off 2020-07-19 22:11:17 +10:00
Ioannis G
827a953722
add PropertyChanged.Fody to Infrastructure project
fixes various settings changes requiring a restart to take effect
2020-07-15 00:34:09 +03:00
Jeremy Wu
4b895af5bb rename missed file 2020-07-06 08:25:04 +10:00
Jeremy Wu
2ff4ffdf91 Merge remote-tracking branch 'origin/dev' into fix_stringmatcher_resultweighting 2020-06-28 12:17:57 +10:00
Ioannis G
0ddd7f24f4
define plugin metadata file name as constant 2020-06-25 00:46:59 +03:00
Jeremy Wu
3abd2d0b07 fix formatting 2020-06-23 20:46:36 +10:00
Alekhya
30c37f06ae Take space into consideration while calculating the first matched index (#3874) 2020-06-22 19:08:43 +10:00
Jeremy Wu
47a69a322d Merge branch 'dev' into update_ui 2020-05-08 12:41:57 +10:00
Jeremy Wu
09308417a8 Add DropShadowEffect as a user option 2020-05-07 14:30:55 +10:00
Jeremy Wu
3fddae7e96 Settings- Update Theme's query text box preview
- Removed Hello Flow Launcher text in favour for simple Hi There text
- Removed Hello Flow Launcher text on other languages. Defaults to English and can be added for others later on
2020-05-06 21:41:38 +10:00
Jeremy Wu
a4ef56cb46
Merge pull request #34 from gdziedzic/enhance-mod+num-launching
Enhance modifier + num launching
2020-05-05 13:20:06 +10:00
Grzegorz Dziedzic
6bc0ae6a82 Ability to hide mod+num. Display full hotkey. 2020-05-03 23:36:23 +02:00
Grzegorz Dziedzic
10c16f059e Enhance mod+num launching 2020-05-03 19:17:16 +02:00
Jeremy Wu
4e67f28a64
Update explanation wording 2020-05-03 14:32:52 +10:00
SysC0mp
a3b25d107c Add retry logic for thumbnail loading 2020-05-02 13:12:34 +02:00
SysC0mp
1f94b87d36 Fix variable name 2020-05-02 13:11:39 +02:00
Ioannis G
be3b74d9bb
fix issue extracting file thumbnails in parallel 2020-05-02 13:14:51 +03:00
SysC0mp
c12dc8e543 Additional code cleanups
- Use same variable naming for private members
- Remove unnecessary whitespaces
2020-05-01 11:58:48 +02:00
SysC0mp
1dbc061c2c Remove parallel loading of icons
This is causing null exceptions on Wox startup and will lead
to thumbnails not loaded at all.
2020-05-01 11:56:30 +02:00
Jeremy Wu
00fe37ea80 Change default max result to show to 5, less cluttering 2020-04-29 14:04:52 +10:00
Jeremy Wu
9386711d4a Fix substring scoring 2020-04-25 13:02:46 +10:00
Jeremy Wu
7775837c49 Update roaming directory name to be consistent with parent 2020-04-24 12:15:49 +10:00
Jeremy Wu
b63719af5c Update Roaming folder name to Flow Launcher from Flow.Launcher 2020-04-23 22:12:20 +10:00
Jeremy Wu
9f1377619d Update description strings 2020-04-22 20:26:09 +10:00
Jeremy Wu
f5ed0291a0 Fix rename errors 2020-04-21 22:16:10 +10:00
Jeremy Wu
3c7f067770 rename all project file name 2020-04-21 21:27:02 +10:00