Commit graph

10450 commits

Author SHA1 Message Date
dcog989
4d22e6c352
Delete Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml.cs 2025-07-23 17:26:18 +01:00
dcog989
1fed54b615
Delete Flow.Launcher.Plugin/packages.lock.json 2025-07-23 04:35:18 +01:00
dcog989
cf40045acd
Delete Flow.Launcher.Core/packages.lock.json 2025-07-23 04:34:54 +01:00
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
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
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
Jack Ye
1da7e1ef35
Merge pull request #3857 from Flow-Launcher/dialog_jump_glyph
Add glyph for dialog jump hotkey card item
2025-07-22 19:49:20 +08:00
Jack251970
ea7833efe4 Add glyph for dialog jump hotkey card item 2025-07-22 19:15:54 +08:00
Jack Ye
b6e2740746
Merge pull request #3851 from Flow-Launcher/url_exception
Fix uri exception in Report window
2025-07-21 23:26:02 +08:00
Jack Ye
2b4010720a
Merge pull request #3848 from Flow-Launcher/sys_plugin_improvement
Improve Sys plugin
2025-07-21 19:50:41 +08:00
Jeremy Wu
d8740768c7
wording 2025-07-21 21:33:57 +10:00
Jeremy Wu
c02ef0e76e
Merge pull request #3850 from Flow-Launcher/fast_load_language
Initialize language before portable clean up and plugin initialization
2025-07-21 12:20:13 +10:00
VictoriousRaptor
6044fb4ce1
Merge pull request #3852 from Flow-Launcher/VictoriousRaptor-patch-1
Fix typo
2025-07-21 09:42:04 +08:00
VictoriousRaptor
df0f8e01b9
Fix typo 2025-07-21 08:58:12 +08:00
Jack Ye
b639960b8c
Merge branch 'dev' into sys_plugin_improvement 2025-07-20 19:53:48 +08:00
Jack Ye
545d12c57d
Merge branch 'dev' into fast_load_language 2025-07-20 19:53:29 +08:00
Jack251970
b7096ddc32 Fix uri exception in Report window 2025-07-20 19:22:14 +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
fea899d09a No need to get lower for language code 2025-07-20 17:37:12 +08:00
Jack251970
f77f14b0ee Improve code quality 2025-07-20 17:35:07 +08:00
Jack251970
ac7da2d2d6 Do not check if the language directory contains default language file 2025-07-20 17:26:14 +08:00
Jack251970
5e8acf7d74 Use OrdinalIgnoreCase 2025-07-20 15:29:27 +08:00
Jack251970
634bdc5bd6 Do not check Flow Launcher default language file since it is binary embedded 2025-07-20 15:26:07 +08:00
Jack251970
2ee53dfbf7 Initialize language before portable clean up since it needs translations 2025-07-20 15:20:18 +08:00
Jeremy Wu
ff2d5e89f9
Merge pull request #3849 from Flow-Launcher/translations
Add Translations for All Messages and Message Boxes
2025-07-20 15:12:01 +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
aed134f589 Add translations 2025-07-20 12:15:48 +08:00
Jack251970
06b3219dcb Add translations 2025-07-20 12:07:19 +08:00
Jack251970
85ffd6024b Add translations 2025-07-20 12:07:15 +08:00
Jack251970
0682e9bed1 Improve code quality for public api 2025-07-20 11:38:44 +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
d3824f274d
Merge pull request #3332 from Flow-Launcher/dependabot/nuget/System.Data.OleDb-9.0.3
Bump System.Data.OleDb from 8.0.1 to 9.0.3
2025-07-19 20:04:28 +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
Jeremy Wu
ff7274fe3c
Merge pull request #3286 from Flow-Launcher/net9
update to .net 9
2025-07-19 21:32:47 +10:00
Jeremy Wu
7e68d9a49b
Merge pull request #3843 from Flow-Launcher/plugin_update_dialog
Add Plugin Update Dialog
2025-07-19 21:30:38 +10:00
Jeremy
0e4c3208be split readme changes out 2025-07-19 21:17:33 +10:00
Jack251970
50377388dd Remove duplicated nuget packages 2025-07-19 16:19:24 +08:00
Jeremy
56128a12a8 update readme 2025-07-19 18:08:42 +10:00