mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
## 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.
12 lines
478 B
JSON
12 lines
478 B
JSON
{
|
|
"ID": "CEA0FDFC6D3B4085823D60DC76F28855",
|
|
"ActionKeyword": "*",
|
|
"Name": "Calculator",
|
|
"Description": "Perform mathematical calculations (including hexadecimal values). Use ',' or '.' as thousand separator or decimal place.",
|
|
"Author": "cxfksword, dcog989",
|
|
"Version": "1.1.0",
|
|
"Language": "csharp",
|
|
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
|
|
"ExecuteFileName": "Flow.Launcher.Plugin.Calculator.dll",
|
|
"IcoPath": "Images\\calculator.png"
|
|
}
|