Commit graph

3241 commits

Author SHA1 Message Date
dcog989
161c5462ba Merge branch 'Calculator-accepts-flexible-separator' of https://github.com/dcog989/Flow.Launcher into Calculator-accepts-flexible-separator 2025-07-23 04:27:33 +01:00
dcog989
852b2f517b fix for regression from first review, plus issues with e.g. '0,123' and ',123' 2025-07-23 04:27:19 +01:00
Jack Ye
8142ef1dee
Merge branch 'dev' into nuget_dependency 2025-07-23 10:47:19 +08:00
Jack Ye
5ff8a5b1d5
Use compiled regex
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-23 09:59:09 +08:00
Jack251970
5161bbe660 Remove unused comments & blank line 2025-07-23 09:33:14 +08:00
Jack251970
69c4d19f8b Improve code quality 2025-07-23 09:09:12 +08:00
dcog989
c83a29fb18 PR review changes 2025-07-23 01:18:26 +01:00
dcog989
113baac567 Smart thousands and decimals
## Core Logic

*   **Advanced Number Parsing:** We now process numbers with various decimal and thousand-separator formats (e.g., `1,234.56` and `1.234,56`). We distinguish between separator types based on their position and surrounding digits.
*   **Context-Aware Output Formatting:** We now mirror the output format based on the user's input. If a query includes thousand separators, the result will also have them. The decimal separator in the result will match the one used in the query.

## Code Cleanup

*   **Deleted Unused File:** `NumberTranslator.cs` was unused and therefore removed.
*   **Removed Redundant UI Code:** The `CalculatorSettings_Loaded` event handler in `CalculatorSettings.xaml.cs` (and its XAML registration) was removed. The functionality was already handled automatically by data binding.

## Maintainability

*   **Added Code Documentation:** An XML summary comment was added to the new `NormalizeNumber` method in `Main.cs` to clarify its purpose.

So, the plugin is now much more flexible, and will accept whatever format the user gives it regardless of Windows region settings.
2025-07-22 23:48:11 +01:00
dcog989
d57eca279f
Merge branch 'Flow-Launcher:dev' into Fix-'100%-CPU'-BrowserBookmark-issue 2025-07-22 20:37:24 +01:00
VictoriousRaptor
282581940a Use new Localization package 2025-07-23 00:04:52 +08:00
VictoriousRaptor
63009ba332 Use ContextMenu class instead of interface 2025-07-23 00:03:48 +08:00
VictoriousRaptor
6579a4647d Compile regex on build time 2025-07-22 23:59:33 +08:00
VictoriousRaptor
22ffc80aeb Update labels on language change and other refactor
- Bring back viewmodel construction on init
- Remove redundant init code
2025-07-22 23:48:39 +08:00
VictoriousRaptor
08f17c4f05
Merge branch 'dev' into code_quality 2025-07-22 14:32:29 +08:00
Jack251970
af3aaa8ce7 Update labels for setting view model when culture info changes 2025-07-21 10:29:14 +08:00
Jack251970
b9e0669c46 Intialize translations in InitAsync 2025-07-21 10:27:25 +08:00
VictoriousRaptor
1e4ff43bfc Use length and count instead of Any() 2025-07-20 23:33:38 +08:00
VictoriousRaptor
ad1d42b5dd Update labels on initialization to update on language change 2025-07-20 23:23:36 +08:00
VictoriousRaptor
bea1078d20 Remove redundant function call 2025-07-20 23:20:55 +08:00
Jack251970
71c8fce4a0 Improve code quality 2025-07-20 21:01:48 +08:00
Jack251970
8e898de968 Fix build issue 2025-07-20 21:01:22 +08:00
Jack Ye
ed0524d207
Merge branch 'dev' into code_quality 2025-07-20 20:02:51 +08:00
Jack Ye
8b3f5aa536
Merge branch 'dev' into nuget_dependency 2025-07-20 19:55:36 +08:00
Jack Ye
b639960b8c
Merge branch 'dev' into sys_plugin_improvement 2025-07-20 19:53:48 +08:00
Kevin Zhang
4f269d3fa9
Dialog Jump - Quickly navigate the Open/Save As dialog window (#1018) 2025-07-20 21:11:09 +10:00
Jack251970
d71d3a5094 Fix build issue 2025-07-20 12:57:56 +08:00
Jack Ye
e931f3ae41
Fix translations
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-20 12:57:04 +08:00
Jack251970
1c76114bb0 Fix translations 2025-07-20 12:53:14 +08:00
Jack Ye
d7e09abde3
Fix translations
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-20 12:52:39 +08:00
Jack251970
ba0a113cc9 Add translations & Use ShowMsgError 2025-07-20 12:28:55 +08:00
Jack251970
85ffd6024b Add translations 2025-07-20 12:07:15 +08:00
Jack251970
b9418f1272 Add translations 2025-07-20 11:33:12 +08:00
Jack Ye
4652392c71
Update translations
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-20 11:29:15 +08:00
Jack251970
b6ecfdcf63 Remove project reference in Sys plugin to Flow.Launcher.Infrastructure 2025-07-20 09:58:30 +08:00
Jack251970
96e6882ec1 Improve string resource 2025-07-20 09:50:07 +08:00
Jack251970
365dd5ee17 Use translation for constant strings 2025-07-20 09:42:32 +08:00
Jack251970
9f63291fda Improve setting dialog command 2025-07-20 09:35:29 +08:00
Jack Ye
010b6dde79
Merge branch 'dev' into code_quality 2025-07-19 20:40:49 +08:00
Jack251970
7af3c5febf Upgrade NuGet dependency 2025-07-19 20:26:33 +08:00
Jack Ye
48822fffa7
Merge branch 'dev' into dependabot/nuget/System.Data.OleDb-9.0.3 2025-07-19 19:34:19 +08:00
VictoriousRaptor
81ae8a4687 Only assign when value is different 2025-07-18 21:33:45 +08:00
VictoriousRaptor
2e99ff96c0
Merge branch 'dev' into code_quality 2025-07-18 21:30:25 +08:00
VictoriousRaptor
b03dae638f Remove redundent save settings call 2025-07-18 21:17:48 +08:00
VictoriousRaptor
976c30e0d2 Update labels on first get 2025-07-18 21:07:53 +08:00
Jack Ye
9b8c1c42c9
Merge branch 'dev' into net9 2025-07-18 09:50:02 +08:00
VictoriousRaptor
7ca0dba461 Remove unnecessary view model reference 2025-07-18 00:15:46 +08:00
Jack251970
3b3fe5201b Add delete confirmation when deleting quick access links & index search excluded paths 2025-07-17 12:05:10 +08:00
Jack251970
2018956034 Fix label translation issue 2025-07-16 22:02:56 +08:00
VictoriousRaptor
c3dc8e551e
Merge branch 'dev' into code_quality 2025-07-16 21:58:02 +08:00
VictoriousRaptor
d008b391e0 Fix loc error 2025-07-16 21:31:40 +08:00
VictoriousRaptor
30f7ae0d67 Use Localization for Explorer plugin 2025-07-16 21:28:17 +08:00
Hongtao Zhang
e96a4cf59d Merge remote-tracking branch 'origin/dev' into net9
# Conflicts:
#	Flow.Launcher.Infrastructure/Flow.Launcher.Infrastructure.csproj
#	Flow.Launcher/Flow.Launcher.csproj
2025-07-15 15:52:34 -07:00
VictoriousRaptor
e116668ef9 Rename file 2025-07-15 23:57:21 +08:00
VictoriousRaptor
3bf1887362 Intoduce dependency 2025-07-15 23:56:03 +08:00
Jack251970
539a852363 Improve logic 2025-07-15 21:59:40 +08:00
Jack251970
aece803905 Simplify logic 2025-07-15 21:50:41 +08:00
WayneFerdon
a34b8f2630 [Plugin.Sys Enhancement] Support returning all usable commands while query is empty; ChangeQuery by ThemeSelector Action with ActionKeyword at the front as well 2025-07-15 21:22:19 +08:00
Jack Ye
fc6ff5a7a0
Merge branch 'dev' into code_quality 2025-07-14 09:09:09 +08:00
Jack251970
19f37f4c3a Add code comments 2025-07-14 09:01:59 +08:00
dcog989
78b4c7db85 Fix BrowserBookmark '100% CPU' issue
# Fix BrowserBookmark plugin locking threads at 100% CPU

The following files were modified to implement this fix:

1. /Flow.Launcher.Plugin.BrowserBookmark.csproj
    - packages SkiaSharp and Svg.Skia added to output WEBP

2. /Helper/FaviconHelper.cs
    - new method, TryConvertToWebp, added to take any image data and encode to WEBP

3. /FirefoxBookmarkLoader.cs
    - LoadFaviconsFromDb to use the new helper which ensures only safe WEBP files are used by the UI, which resolves the CPU-locking. It was GZIPped SVGs that were causing the thread / CPU lock.
2025-07-14 00:43:39 +01:00
Jeremy Wu
2e0dd1cfa1
Release 1.20.2 | Plugin 4.7.0 (#3820) 2025-07-13 17:18:34 +03:00
Jeremy Wu
a6a28ce8b1
Merge pull request #3821 from Flow-Launcher/fix-uwp-package-monitoring
Fix the issue that UWP changes that can't be monitored (#2345)
2025-07-13 23:32:20 +10:00
VictoriousRaptor
2eeb097194
Use lazy init after version check
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-13 20:57:36 +08:00
Jeremy Wu
3159e67c9d
New Crowdin updates (#3807) 2025-07-13 15:56:34 +03:00
VictoriousRaptor
bb946b707a Fix the issue that UWP changes that can't be monitored (#2345)
相关工作项: #2337
2025-07-13 20:54:12 +08:00
Jack251970
fe3babd4fc Log error when fail to fetch type 2025-07-08 09:50:12 +08:00
Jack251970
bad7db69dc Improve code quality 2025-07-08 09:45:54 +08:00
Jack251970
2856da83c1 Fix quick access link type fetching issue 2025-07-08 09:44:17 +08:00
Jeremy
a63c8b036b updates to method summary and correct spell check errors 2025-07-07 21:35:12 +10:00
Jack Ye
a0dff3fbc1
Merge branch 'dev' into plugin_store_item_vm_null 2025-07-05 17:19:54 +08:00
Jack251970
80b7775412 Return results when query is empty for program 2025-07-04 10:50:50 +08:00
Jeremy Wu
b440aaab37
New Crowdin updates (#3730) 2025-07-03 15:01:52 +03:00
Jeremy
ae206c35a5 update Plugin Store & Plugins Manager texts 2025-07-03 21:53:39 +10:00
Jack251970
650a156736 Improve strings 2025-07-01 13:21:48 +08:00
Jack251970
5bfdc583b1 Change the notification message title about plugin already installed/uninstalled from 'Fail to install ' to ' is already installed'. Do the same for uninstalling notification title. 2025-07-01 13:18:26 +08:00
Jack251970
07947c5e1e Fix an issue that pm install/uninstall same plugin without restart says correct message but another message also pops up to say it's successfully installed. It should only one pop up notification to say that the plugin already installed/uninstalled 2025-07-01 12:34:48 +08:00
Jack251970
71043be078 Fix string format issue 2025-07-01 12:00:43 +08:00
Jack251970
2a4bd508c1 Resolve conflicts 2025-07-01 09:06:58 +08:00
Jack251970
ce6c2cb1b2 Add return value for api functions 2025-07-01 09:05:21 +08:00
Jeremy Wu
4e4b59ebda
Merge branch 'dev' into plugin_store_item_vm_null 2025-07-01 09:28:34 +10:00
Jack251970
0c1fcad06f Fix grid row issue 2025-06-30 14:39:29 +08:00
Jack251970
0290675e11 Fix explorer plugin preview margin 2025-06-30 12:12:47 +08:00
Jack251970
19cb3eaf6a Fix typos 2025-06-29 18:20:47 +08:00
Jack251970
8e6a410cfc Use url host 2025-06-29 17:06:29 +08:00
Jack251970
bdb3616977 Improve string resource 2025-06-29 16:34:18 +08:00
Jack251970
3e9e91d71c Fix possible exception when extracting zip file 2025-06-29 16:24:21 +08:00
Jack251970
d6310bc4f0 Add quick access result score for folder results 2025-06-28 11:02:44 +08:00
Jack251970
03c1e58922 Support volume type for quick access link 2025-06-28 11:00:56 +08:00
Jeremy Wu
71e975a68c
Update Calculator plugin description (#3781) 2025-06-27 15:58:20 +03:00
TBM13
d68964bfa2 Calculator: Support hex numbers 2025-06-26 02:58:24 -03:00
Jack251970
c4cbf941cf Add directory null check 2025-06-23 13:13:45 +08:00
Jack251970
107da050a5 Fix build issue 2025-06-23 13:02:04 +08:00
Jack251970
68fc103d7f Use trick to get the cache directory path 2025-06-23 12:45:31 +08:00
Jack251970
1b05643b64 Use Flow.Launcher.Localization to improve code quality 2025-06-23 12:38:27 +08:00
Jack251970
e6a38ad6e2 Adjust indent 2025-06-23 12:37:58 +08:00
Jack251970
fe7985d564 Use Flow.Launcher.Localization to improve code quality 2025-06-23 12:25:16 +08:00
Jack251970
bc8e77ae02 Fix format 2025-06-17 17:00:28 +08:00
Jack251970
548435b4fd Improve code quality 2025-06-17 16:58:48 +08:00
Jack251970
b18d0a8bdb Improve code quality 2025-06-17 16:55:23 +08:00
Jack251970
054ee4cdbe Default to folder 2025-06-17 16:37:17 +08:00