Commit graph

419 commits

Author SHA1 Message Date
Jack251970
8f7ad27aef Remove useless usings 2025-02-23 21:28:14 +08:00
Jack251970
f1b5e68cf2 Remove reflection codes for deleting csharp plugin settings 2025-02-23 21:02:32 +08:00
Jack251970
5919418980 Add assembly name & plugin settings path & plugin cache path in meta data for csharp plugins 2025-02-23 21:01:53 +08:00
Jack251970
4ebc19a82d Check action keywords without order 2025-02-23 19:42:43 +08:00
Jack251970
34cb078602 Check old action keyword out of PluginManager 2025-02-23 14:06:58 +08:00
Jack251970
a3964f5667 Remove instance for Internationalization & Theme 2025-02-23 13:51:37 +08:00
Jack251970
cdf02d588f Resolve conflicts 2025-02-23 13:18:03 +08:00
Jeremy Wu
2bc9203be6
Merge pull request #3219 from Jack251970/delete_plugin_settings
Support deleting plugin settings when uninstalling plugins
2025-02-23 15:29:25 +11:00
Jack251970
58f8aaa810 Show message when failed to remove plugin settings & Improve code quality 2025-02-23 09:29:24 +08:00
Jeremy Wu
cc463c86ed
Merge pull request #3081 from Flow-Launcher/taooceros-patch-1
Reload Context
2025-02-23 11:01:13 +11:00
Jack Ye
9665619adc
Merge pull request #3257 from Jack251970/result_copy
Fix Issue that Plugin Cannot Cache Records
2025-02-22 17:59:45 +08:00
Jack251970
300d64d661 Remove action keyword first 2025-02-21 13:43:53 +08:00
Jack251970
37ad5aa09b Fix issue that ActionKeywordRegistered will not exclude old action key 2025-02-21 13:31:46 +08:00
Jack251970
f999b97de1 Fix build issue 2025-02-21 13:25:31 +08:00
Jack251970
d9ba38b322 Fix issue that plugin cannot update ActionKeyword after changing its action keywords 2025-02-21 13:09:19 +08:00
Jack251970
abfeee1423 Support multiple action keywords 2025-02-21 12:59:56 +08:00
Jack Ye
26b2b593c6
Merge branch 'Flow-Launcher:dev' into multiple_keywords 2025-02-21 12:19:56 +08:00
Jack251970
c472239ea9 Fix unneccessary black lines when settings control is null 2025-02-21 11:20:00 +08:00
Jack251970
6e4d9a5e61 Remove useless blank lines 2025-02-21 11:10:16 +08:00
Jack251970
4f41be67ac Improve code quality 2025-02-20 18:02:59 +08:00
Kevin Zhang
3dade8bbfc
Don't restart the jsonrpc process when reloading data. 2025-02-19 00:03:46 -08:00
Jack Ye
23f63420c2
Merge branch 'dev' into dev4 2025-02-18 14:36:42 +08:00
Jeremy Wu
e502ebc561
Merge pull request #3110 from Flow-Launcher/modify-pythonpath-for-plugins
Add `.`, `./lib`, `./plugin` directories to path for Python plugins
2025-02-17 22:02:57 +11:00
Jack Ye
25684a92ae
Merge branch 'dev' into dev4 2025-02-17 14:54:06 +08:00
Kevin Zhang
741ddfeafe
Merge pull request #3170 from Jack251970/dev3
Add New API for ProgressBoxEx to Show Progress & Add Progress Display for Plugin Downloading & Improve DownloadUrl Api Function
2025-02-16 22:20:29 -08:00
Jack251970
54a0f3d165 Add support for delete plugin directory for non-dotnet plugins 2025-02-09 10:58:09 +08:00
Jack251970
37837e7002 Fix possible exception when deleting local folder 2025-02-08 22:59:36 +08:00
Jack251970
f0e74a2aa5 Fix issue that plugin manager will save settings for the uninstalled and settings-removed plugins 2025-02-08 19:12:53 +08:00
cibere
69bf7c6b63 add BackToQueryResults to JsonRPCPublicAPI 2025-02-06 18:34:44 -08:00
Jack251970
1f1b31994d Improve argument name to avoid possible confusion 2025-02-06 09:35:21 +08:00
Yusyuriv
bb7900c0e0
Add PyWin32-related directories to path for Python plugins 2025-02-02 15:27:02 +06:00
Jack251970
e320ca1d49 Add support for deleting plugin settings when uninstalling plugins 2025-02-01 13:10:32 +08:00
Jack251970
ed16d340cb Improve code quality 2025-01-27 09:40:24 +08:00
Hongtao Zhang
d21b9362cf do not try catch the error for jsonrpc v2 2025-01-20 09:14:28 -06:00
Jack251970
3cb9d1dce4 Remove IApp & AppExtensions and use dependency injection instead 2025-01-12 20:04:44 +08:00
Jack251970
8eb5a4dfca Improve HttpDownloadAsync function & Use it in PluginManager plugin 2025-01-11 13:24:41 +08:00
Hongtao Zhang
2a1d502aff fix build error 2025-01-10 13:18:14 -06:00
Jack251970
88e84378da Use api in app extensions to call api functions 2025-01-09 21:44:24 +08:00
Yusyuriv
d5dd7b44a4
Use PYTHONDONTWRITEBYTECODE instead of -B flag when running Python plugins 2024-12-05 17:37:54 +06:00
Yusyuriv
fa8cd548f6
Add ., ./lib, ./plugin directories to path for Python plugins 2024-12-05 14:18:13 +06:00
Jack251970
897fd7aaba Replace Flow.Launcher.Core.MessageBoxType & MessageBoxImage with System.Windows.MessageBoxButton & MessageBoxImage
Remove useless warning file
2024-11-26 21:31:13 +08:00
Jack251970
b30cc4fc38 Replace System.Windows.MessageBox with MessageBoxEx 2024-11-25 10:38:43 +08:00
Kevin Zhang
5a80adcbfe
Send a reload request with ctx when reloading 2024-11-17 23:59:43 -06:00
Yusyuriv
1bdfc3009d
Add using when creating a file/folder dialog 2024-11-03 13:28:24 +06:00
Yusyuriv
6604710a3f
Fix inputWithFileBtn not working in SettingsTemplate.yml 2024-11-03 12:42:14 +06:00
Jeremy Wu
89e430f41f
add comment 2024-08-11 20:56:03 +10:00
Yusyuriv
81e5eaf10d
Fix startup localization issues 2024-08-10 09:23:47 +06:00
Yusyuriv
1c2d9e8f52
Remove unnecessary spaces 2024-06-27 11:10:50 +06:00
Yusyuriv
bfd8dfe2e1
Localize plugin init fail message 2024-06-27 11:10:12 +06:00
Yusyuriv
d502f1dd25
Correctly load plugin localization files 2024-06-27 11:05:18 +06:00
Yan
a3c7b2b40f
Merge branch 'dev' into localize-missing-python-js-dialog 2024-06-17 05:33:32 +06:00
Jeremy
03686dd935 Merge remote-tracking branch 'origin/dev' into quicklook 2024-06-12 14:22:24 +10:00
Jeremy
4dbecb1b5a allow preview plugin to override the AlwaysPreview setting 2024-06-12 14:14:25 +10:00
Yusyuriv
ca970bbe75
Localize startup messages about missing Python/NodeJS 2024-06-09 18:45:23 +06:00
Hongtao Zhang
87871b1080 fix process exited before calling "close" method on dispose. 2024-06-05 19:29:24 -05:00
Jeremy
f902eaed0d Merge remote-tracking branch 'origin/dev' into quicklook 2024-05-29 21:17:09 +10:00
Jeremy
666211dd4c add plugin support for external preview 2024-05-28 21:27:48 +10:00
Kevin Zhang
aad9fdc1c5
Merge pull request #2700 from Flow-Launcher/jsonrpc-cleanup
add a close overload for jsonrpcpluginv2
2024-05-26 23:52:48 -07:00
Hongtao Zhang
b4a33479c6 dispose other stuff in finally block 2024-05-27 01:15:00 -05:00
Kevin Zhang
81f234e230
Remove unused using; 2024-05-26 23:00:11 -07:00
Hongtao Zhang
f54c92402b rethrow instead of catching general exception 2024-05-23 12:54:03 -05:00
Jeremy Wu
1bbe0302fa
Merge pull request #2520 from flooxo/local_install
Feature: Add support for local plugin installation
2024-05-20 08:44:47 +10:00
Hongtao Zhang
cea1fcfe47 skip if method not found 2024-05-16 22:24:24 -05:00
Hongtao Zhang
59f3eeecf2 add a close overload for jsonrpcpluginv2 2024-05-16 22:21:35 -05:00
Jeremy
2606faae17 minor fixes & refactor 2024-05-16 21:22:08 +10:00
Hongtao Zhang
d3a05473b5 implement context_menu with JoinableTaskFactory 2024-02-19 11:10:05 -06:00
Hongtao Zhang
38c9641833 fix jsonrpcv2 plugin setting not sent 2024-02-19 10:21:33 -06:00
Hongtao Zhang
2882d18863 use HeaderDeliminatedHandler for NodePlugin while NewLineDeliminated for everything else 2024-02-18 23:46:24 -06:00
Hongtao Zhang
692eb13011 remove some duplicate code 2024-02-15 22:15:22 -06:00
Hongtao Zhang
f6b17023dc remove redundant information to merge into the process stream plugin 2024-02-15 22:14:03 -06:00
Hongtao Zhang
a27d5336df fix python plugin and node plugin
fix job process association the program plugin
2024-02-15 22:06:19 -06:00
VictoriousRaptor
a383856e46
Merge pull request #2557 from Yusyuriv/fix-nodejs-plugin-system
Fix Nodejs plugins not working
2024-02-11 15:53:02 +08:00
Garulf
cf48e532fa Remove short circuit on empty Settings 2024-02-11 02:33:48 -05:00
Yusyuriv
74970a6673 Fix Nodejs plugins not working 2024-02-10 19:59:52 +06:00
Hongtao Zhang
a524096fc2 Use job object to control child process 2024-02-06 13:07:21 -06:00
Hongtao Zhang
bdc9d02f93 update StreamJsonRPC, use System.Text.Json and apply serialization Option to the formatter; fix empty setting still trigger setting initialization 2023-12-10 02:26:43 -06:00
Garulf
ba45069d88
Merge branch 'dev' into move-exception-message-to-result 2023-12-10 02:20:00 -05:00
Hongtao Zhang
44fb863f07 minor fix jsonrpc errorstream and expect.txt 2023-11-26 09:33:34 -06:00
Garulf
f684883d72 Insure result is never in front of relevant results 2023-11-24 13:15:58 -05:00
Garulf
0e226d7a5b Reword title and subtitle 2023-11-24 13:15:29 -05:00
Garulf
a84e509aab Use proper error icon constant 2023-11-24 13:15:17 -05:00
Garulf
851df97649
Merge pull request #2430 from Flow-Launcher/Allow-SettingsChange-without-template-file
Improve JsonRPC plugin settings
2023-11-21 16:50:58 -05:00
Garulf
b63c4eb2bf Revert SettingsChanges to SettingsChange for backwards compatibility 2023-11-19 09:11:27 -05:00
Garulf
9275421c1c
Merge branch 'dev' into Allow-SettingsChange-without-template-file 2023-11-19 03:09:09 -05:00
Garulf
a86e7bcaa9 Remove save function from loop 2023-11-18 23:15:39 -05:00
Jeremy Wu
b3cb0fe737
Merge pull request #2428 from Flow-Launcher/concurrent-setting-jsonrpc
Use ConcurrentDictionary for JsonRPC Settings
2023-11-19 15:05:31 +11:00
Jeremy Wu
4efac50a8f
Merge pull request #2369 from VictoriousRaptor/delay-restart-2
Delay restart after installing/uninstalling/updating plugins
2023-11-19 15:01:51 +11:00
Garulf
ab7685e9ea Show a result error instead of popping up dialog 2023-11-18 21:45:06 -05:00
Garulf
5c90946a6e Save to file on update 2023-11-18 18:45:24 -05:00
Garulf
ba9aba2bff Allow new setting keys to be instantiated 2023-11-18 18:45:16 -05:00
Garulf
388688e89c Short circuit template UI process if doesn't exist 2023-11-18 18:44:27 -05:00
Garulf
b67e815022 Load template file only if exists 2023-11-18 18:44:01 -05:00
Garulf
93100c0330 Remove missing template file short circuit logic 2023-11-18 18:43:42 -05:00
Garulf
1cafae8278 Allow nullable for Configuration 2023-11-18 18:43:17 -05:00
Hongtao Zhang
3ec27edf75 Use ConcurrentDictionary for JsonRPC Settings 2023-11-18 14:22:54 -06:00
VictoriousRaptor
f6a4942a48 Refactor plugin zip logic
- Download zip to temp folder
- Unzip to unique folder
2023-11-11 16:11:21 +08:00
VictoriousRaptor
69dad1be6c Check if plugin has been modified when installing/updating/uninstalling 2023-11-11 15:05:24 +08:00
VictoriousRaptor
bf598887dd Make settings field private 2023-11-11 01:34:01 +08:00
VictoriousRaptor
54e255c504 Fix typo 2023-11-11 01:28:34 +08:00
VictoriousRaptor
e7ffd573f0 Move Install/Uninstall plugin logic to Core.PluginManager 2023-11-11 00:40:27 +08:00
Hongtao Zhang
7436aaa2bb switch back to jsonmessageformatter 2023-11-09 20:02:20 -06:00
Hongtao Zhang
f5b1b4f830 rename and add js/ts v2 2023-11-03 21:16:51 -05:00
Hongtao Zhang
1c63cd9350 remove duplicate comment summary 2023-10-31 08:43:10 -05:00
Hongtao Zhang
3c2ea382ea Merge branch 'dev' of https://github.com/Flow-Launcher/Flow.Launcher into jsonrpc_v2 2023-10-31 08:39:51 -05:00
Jeremy Wu
c67d0faeaf
remove obsolete comment 2023-09-12 08:23:34 +10:00
Hongtao Zhang
63b2a07dd9 load unmanaged dll from dependencyResolver as well 2023-09-11 09:12:41 -05:00
Hongtao Zhang
20f23b01bb update streamjsonrpc and use systemtextjsonformatter 2023-08-28 18:57:12 +08:00
Jeremy Wu
29aefee390 remove irrelevant comment 2023-08-23 08:37:43 +10:00
Hongtao Zhang
24c125fd0d Merge remote-tracking branch 'origin/dev' into jsonrpc_v2
# Conflicts:
#	Flow.Launcher.Plugin/Query.cs
2023-07-03 16:48:46 +08:00
Hongtao Zhang
c50d98c5e2 Abstract out ProcessStreamPluginV2.cs and add ExecutablePluginV2.cs 2023-07-03 16:44:50 +08:00
Hongtao Zhang
e1deefc1d2 Add UpdateResults Functionality 2023-07-03 16:19:27 +08:00
Hongtao Zhang
0459d6e4fa fix v1 plugin issue
- Settings NullReference
- ExecutablePlugin not working
2023-07-03 12:58:44 +08:00
Hongtao Zhang
83a61109d7 fix error stream issue 2023-07-03 12:23:30 +08:00
Ioannis G
340dc3c8bf
clear obsolete code from Flow.Launcher.Plugin 2023-06-26 14:08:18 +03:00
Hongtao Zhang
a971156519 Add Initialization Code 2023-06-25 18:18:41 +08:00
Hongtao Zhang
cb6fb80e70 Change abstract back to normal class for JsonRPCExecuteResponse.cs; Cleanup unused classes 2023-06-25 12:21:45 +08:00
Hongtao Zhang
32bbf1eaf0 Finally make JSONRPC Bidirection work 2023-06-25 00:43:21 +08:00
Hongtao Zhang
f6912597b4 Merge branch 'dev' into jsonrpc_v2
# Conflicts:
#	Flow.Launcher.Plugin/Query.cs
2023-06-23 11:24:27 +08:00
Hongtao Zhang
8093a7ca31
Merge remote-tracking branch 'origin/dev' into jsonrpc_v2
# Conflicts:
#	Flow.Launcher/Flow.Launcher.csproj
#	Flow.Launcher/Notification.cs
2023-06-02 23:12:38 +08:00
Hongtao Zhang
e183920b8e
implement v2 2023-06-02 23:05:09 +08:00
VictoriousRaptor
306ad7931b
Merge branch 'dev' into RemoveUnusedNuget 2023-05-04 21:14:13 +08:00
Vic
d9b70e69f3 Refactor save settings logic
SettingWindowViewModel.Save() only saves Flow settings
2023-04-25 22:38:36 +08:00
Vic
00e6e5b30d Remove unused using 2023-04-25 21:02:34 +08:00
Hongtao Zhang
1551567269
fix v1 2023-03-26 14:21:36 -05:00
Hongtao Zhang
b425aac159
fix a little bit more 2023-03-26 14:05:41 -05:00
Hongtao Zhang
a3367abd7a
fix some bug (v1 still broken) 2023-03-26 14:04:06 -05:00
Hongtao Zhang
683f6ebce4
refactor jsonrpc structure (extract setting to a standalone file PortableSettings.cs) 2023-03-26 02:24:31 -05:00
Hongtao Zhang
16dcdf01fd
load v2 plugins 2023-03-26 01:12:21 -05:00
Hongtao Zhang
85fdcde8a8
Merge branch 'dev' of github.com:Flow-Launcher/Flow.Launcher into jsonrpc_v2 2023-03-26 01:00:30 -05:00
Hongtao Zhang
a7afa171e0
catch exception when killing unused jsonrpc process 2023-01-12 15:52:43 -06:00
Jeremy Wu
5af272ad0b Merge branch 'dev' into add_nodejs_env 2022-12-20 20:56:46 +11:00
DB p
d6a31f02ab Remove Color of debugging 2022-12-11 12:40:30 +09:00
DB p
b4b342fa6f Add Layout for Browse button 2022-12-11 12:39:28 +09:00
DB p
28b6bba438 Adjust TextBlock 2022-12-11 12:29:17 +09:00
DB p
27016c4f2d Add hyperlink layout 2022-12-10 09:53:41 +09:00
DB p
ba3ed35699 - Adjust JsonRPC Panel Design 2022-12-10 08:04:56 +09:00
DB p
b1768b5abf - Adjust JsonRPCplugin Panel Layout
- Adjust System Plugin Setting Panel Margin
2022-12-09 17:46:35 +09:00
Jeremy
d297779e4b remove unused SupportedLanguage property 2022-11-30 21:10:30 +11:00
Jeremy
680ed77daa add abstract create plugin pair method to handle each plugin type 2022-11-30 21:06:54 +11:00
Jeremy Wu
4e48c3eb10 refactor 2022-11-22 09:20:27 +11:00
Jeremy
76c0f03bc2 update python directory to python file directory 2022-10-25 21:03:01 +11:00
Jeremy
9e55fc5854 add node plugin execution 2022-10-24 08:47:09 +11:00
Jeremy
7441e90895 python language check ignore case 2022-10-24 07:54:15 +11:00
Jeremy
eb203c2c8b executable plugin language check ignore case 2022-10-24 07:41:48 +11:00
Jeremy
4ea1ee0c04 add Node.js environment setup 2022-10-23 20:05:12 +11:00
Hongtao Zhang
b8526f20a8
check query for null (I don't know how this can happen) 2022-09-19 15:48:28 -05:00
Hongtao Zhang
2fd13c08d8
Rollback rename 2022-08-31 21:38:10 -05:00
Hongtao Zhang
094da0ef0a
Rollback rename 2022-08-31 21:37:29 -05:00
Hongtao Zhang
67d1b896b1
Implement JSONRPC V2 Draft 2022-08-31 21:34:47 -05:00
Hongtao Zhang
f6e6cd5a42
Fix Error Message for empty response 2022-08-21 22:09:56 -04:00