Commit graph

140 commits

Author SHA1 Message Date
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
9bcb1b2939 Merge branch 'Calculator-accepts-flexible-separator' of https://github.com/dcog989/Flow.Launcher into Calculator-accepts-flexible-separator 2025-07-23 17:57:12 +01:00
dcog989
76f834ff1b PR review changes 2025-07-23 17:56:58 +01:00
dcog989
4d22e6c352
Delete Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml.cs 2025-07-23 17:26:18 +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
Jack251970
b9418f1272 Add translations 2025-07-20 11:33:12 +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
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
Jeremy Wu
2b9529d2f9 set all of plugins' version to default 1.0.0 2025-05-20 09:06:11 +00:00
Jeremy Wu
1775c0fd26
New Crowdin updates (#3430) 2025-05-11 13:27:09 +03:00
Jeremy Wu
9bc27a4ecd
New Crowdin updates (#3348) 2025-04-08 21:41:15 +08:00
Jack Ye
a6812cfd9f
Merge branch 'dev' into settings_panel 2025-03-20 20:33:31 +08:00
Jack251970
13fcdc60fa Fix typo 'seperator' 2025-03-20 18:11:53 +08:00
Jack Ye
87f765be4a
Merge pull request #3261 from Jack251970/multiple_keywords
Support Multiple keywords for Plugins
2025-03-20 13:46:23 +08:00
Jack Ye
1baf1751f2
Merge branch 'dev' into settings_panel 2025-03-16 20:04:22 +08:00
Jeremy Wu
ecebf17ea2
New Crowdin updates (#3186)
New translations
2025-03-14 11:08:08 +02:00
Jack251970
9ec8681ab8 Remove useless project reference 2025-02-28 14:54:24 +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
Hongtao Zhang
865c865942 update to .net 9 2025-02-26 22:37:41 +08:00
Jack251970
8fa34917aa Redesgin settings panel for calculator plugin 2025-02-26 21:22:17 +08:00
Jack251970
38402848aa Improve code quality for project references 2025-02-23 23:06:15 +08:00
Jeremy
99323161b7 Merge branch 'dev' into merge_back_1.19.5 2025-01-27 17:29:50 +11:00
Jeremy
b9890a9756 bump plugin versions 2025-01-27 16:48:43 +11:00
Jeremy
f9518c073d New Crowdin updates (#3062)
* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations resources.resx (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations resources.resx (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations resources.resx (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations resources.resx (Portuguese)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Arabic)
[ci skip]

* New translations en.xaml (Czech)
[ci skip]

* New translations en.xaml (Danish)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Japanese)
[ci skip]

* New translations en.xaml (Korean)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (Turkish)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Chinese Traditional)
[ci skip]

* New translations en.xaml (Vietnamese)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Norwegian Bokmal)
[ci skip]

* New translations en.xaml (Serbian (Latin))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish, Latin America)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations resources.resx (Hebrew)
[ci skip]

* New translations resources.resx (Hebrew)
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations resources.resx (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations resources.resx (Hebrew)
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Arabic)
[ci skip]

* New translations en.xaml (Czech)
[ci skip]

* New translations en.xaml (Danish)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Japanese)
[ci skip]

* New translations en.xaml (Korean)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (Turkish)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Chinese Traditional)
[ci skip]

* New translations en.xaml (Vietnamese)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Norwegian Bokmal)
[ci skip]

* New translations en.xaml (Serbian (Latin))
[ci skip]

* New translations en.xaml (Spanish, Latin America)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

---------

Co-authored-by: Kevin Zhang <45326534+taooceros@users.noreply.github.com>
2025-01-27 16:39:07 +11:00
dependabot[bot]
a9d77d8bcf
Bump Mages from 2.0.2 to 3.0.0 (#3154) 2025-01-10 19:31:36 +00:00
Jeremy Wu
e7e825e930
New Crowdin updates (#3062)
* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations resources.resx (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations resources.resx (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations resources.resx (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations resources.resx (Portuguese)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Arabic)
[ci skip]

* New translations en.xaml (Czech)
[ci skip]

* New translations en.xaml (Danish)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Japanese)
[ci skip]

* New translations en.xaml (Korean)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (Turkish)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Chinese Traditional)
[ci skip]

* New translations en.xaml (Vietnamese)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Norwegian Bokmal)
[ci skip]

* New translations en.xaml (Serbian (Latin))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish, Latin America)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations resources.resx (Hebrew)
[ci skip]

* New translations resources.resx (Hebrew)
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations resources.resx (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations resources.resx (Hebrew)
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Arabic)
[ci skip]

* New translations en.xaml (Czech)
[ci skip]

* New translations en.xaml (Danish)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Japanese)
[ci skip]

* New translations en.xaml (Korean)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (Turkish)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Chinese Traditional)
[ci skip]

* New translations en.xaml (Vietnamese)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Norwegian Bokmal)
[ci skip]

* New translations en.xaml (Serbian (Latin))
[ci skip]

* New translations en.xaml (Spanish, Latin America)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

---------

Co-authored-by: Kevin Zhang <45326534+taooceros@users.noreply.github.com>
2024-12-25 18:41:40 +02:00
Jack251970
534a1117aa Use public api to call ShowMsgBox functions & remove useless Core project import 2024-11-27 12:21:34 +08:00
Jack251970
b30cc4fc38 Replace System.Windows.MessageBox with MessageBoxEx 2024-11-25 10:38:43 +08:00
Jeremy Wu
1bbc104182 version bump plugins 2024-11-05 07:30:53 +00:00
Jeremy Wu
ecfbf32128
New Crowdin updates (#3034) 2024-11-05 05:31:06 +02:00
Jeremy Wu
58bf75d5cf
bump plugin versions 2024-10-16 13:37:48 +11:00
Jeremy Wu
c9db565b2b
New Crowdin updates (#2997) 2024-10-15 13:36:30 +03:00
Jeremy Wu
6cebb95926
New Crowdin updates (#2959) 2024-09-24 09:49:43 +03:00
Jeremy Wu
edbec079de
New Crowdin updates (#2817) 2024-08-13 22:52:40 +05:30
Jeremy Wu
f042e7ae11 version bump plugins 2024-08-13 18:27:56 +10:00
Jeremy Wu
0b9722a35b
New Crowdin updates (#2718) 2024-06-19 14:57:31 +03:00
VictoriousRaptor
e4621a5c87 Fix calculator typo 2024-05-25 14:35:14 +08:00
VictoriousRaptor
27392a53c3 Fix output path 2024-05-25 14:32:49 +08:00
VictoriousRaptor
fa2df93dd7 Fix calculator decimal separator bug 2024-05-25 14:10:29 +08:00
Jeremy Wu
6133e551f7
New Crowdin updates (#2657)
New and updated translations
2024-05-24 21:06:34 +03:00
Jeremy
cd684be0bf bump version for plugins 2024-02-04 13:57:04 +11:00
Jeremy Wu
acebf04c4c
New Crowdin updates (#2494)
* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Arabic)
[ci skip]

* New translations en.xaml (Czech)
[ci skip]

* New translations en.xaml (Danish)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Japanese)
[ci skip]

* New translations en.xaml (Korean)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (Turkish)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Chinese Traditional)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Norwegian Bokmal)
[ci skip]

* New translations en.xaml (Serbian (Latin))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish, Latin America)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Arabic)
[ci skip]

* New translations en.xaml (Czech)
[ci skip]

* New translations en.xaml (Danish)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Japanese)
[ci skip]

* New translations en.xaml (Korean)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (Turkish)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Chinese Traditional)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Norwegian Bokmal)
[ci skip]

* New translations en.xaml (Serbian (Latin))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish, Latin America)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations resources.resx (French)
[ci skip]

* New translations resources.resx (Ukrainian)
[ci skip]
2024-01-23 08:04:38 +02:00
Kevin Zhang
1f99d0da4f
Merge pull request #2493 from NoPlagiarism/calc_add_operators
[Calculator] Add comparison operators & remainder
2024-01-17 17:59:47 -06:00