Commit graph

23 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
649b142b46 Add UseThousandsSeparator setting to Calculator plugin
Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com>
2026-01-10 06:30:57 +00:00
Jack251970
f9facda521 Improve code quality 2025-09-15 13:02:42 +08:00
Jack251970
1906d68541 Add ShowErrorMessage setting 2025-09-15 12:57:25 +08:00
VictoriousRaptor
71e0374640 Merge dev 2025-07-27 14:45:08 +08:00
dcog989
f8a6b02c80 fix for GitHub build server failure
Removes external dependency for NumberGroupSeparator so it builds anywhere.
2025-07-24 02:33:59 +01:00
dcog989
4d22e6c352
Delete Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml.cs 2025-07-23 17:26:18 +01:00
VictoriousRaptor
0b6309f175 Fix typo 2025-07-23 19:39:17 +08:00
Jack251970
5161bbe660 Remove unused comments & blank line 2025-07-23 09:33:14 +08: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
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
Jack251970
fe7985d564 Use Flow.Launcher.Localization to improve code quality 2025-06-23 12:25:16 +08:00
Jack251970
9e43774508 Improve design for inner settings panel 2025-02-27 18:27:43 +08:00
Jack251970
64f02c3fd7 Redesign settings panel for sys plugin & Improve design styles 2025-02-27 18:22:56 +08:00
Jack251970
8fa34917aa Redesgin settings panel for calculator plugin 2025-02-26 21:22:17 +08:00
VictoriousRaptor
e4621a5c87 Fix calculator typo 2024-05-25 14:35:14 +08:00
Vic
00e6e5b30d Remove unused using 2023-04-25 21:02:34 +08:00
Vic
b30ace993a Fix namespace of LocalizationConverter 2022-12-21 15:51:17 +08:00
DB p
979c89d14b Adjust Calculator layout to responsive 2021-12-15 13:51:39 +09:00
Dobin Park
e6c4ca1d49 - Adjust Content Control Margin
- Adjust Calc/webseearch plugin setting Margin
2021-10-10 03:28:14 +09:00
Dobin Park
0d11b79ee3 - Adjust Shell, Calc, WebSearch Setting Margin 2021-10-10 00:02:41 +09:00
Jeremy Wu
4439e341f9 Calculator plugin- update layout 2020-05-01 07:39:49 +10:00
Jeremy Wu
28d67c8c81 Rename further code and text 2020-04-21 22:54:41 +10:00
Jeremy Wu
3c7f067770 rename all project file name 2020-04-21 21:27:02 +10:00