Flow.Launcher/Plugins/Flow.Launcher.Plugin.Calculator
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
..
Images Change Some Icons 2022-12-12 12:45:44 +09:00
Languages Add translations 2025-07-20 11:33:12 +08:00
ViewModels Fix calculator typo 2024-05-25 14:35:14 +08:00
Views Smart thousands and decimals 2025-07-22 23:48:11 +01:00
DecimalSeparator.cs Fix calculator typo 2024-05-25 14:35:14 +08:00
Flow.Launcher.Plugin.Calculator.csproj Merge remote-tracking branch 'origin/dev' into net9 2025-07-15 15:52:34 -07:00
Main.cs Smart thousands and decimals 2025-07-22 23:48:11 +01:00
plugin.json Smart thousands and decimals 2025-07-22 23:48:11 +01:00
Settings.cs Fix calculator typo 2024-05-25 14:35:14 +08:00