mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[CmdPal][Calc] Add option to choose Copy as the primary command (close on enter) (#40398)
## Summary of the Pull Request Adds a new setting that lets users swap Save/Copy as primary/secondary commands. This is done in order to enable closing on enter (similar to PTRun) and therefore saving three extra steps (see issue). Defaults to true - Copy is primary. ## PR Checklist - [x] **Closes:** #40262 - [x] **Communication:** I've discussed this with core contributors already. - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** No, but that's a more general issue (#40397) - [x] **Dev docs:** No need - [x] **New binaries:** None - [x] **Documentation updated:** No need ## Detailed Description of the Pull Request / Additional comments  | On (default) | Off | |--------|--------| |  |  | ## Validation Steps Performed Shown in screenshots --------- Co-authored-by: Mike Griese <migrie@microsoft.com>
This commit is contained in:
@@ -186,6 +186,24 @@ namespace Microsoft.CmdPal.Ext.Calc.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Close on Enter.
|
||||
/// </summary>
|
||||
public static string calculator_settings_close_on_enter {
|
||||
get {
|
||||
return ResourceManager.GetString("calculator_settings_close_on_enter", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Makes Copy and close the primary command.
|
||||
/// </summary>
|
||||
public static string calculator_settings_close_on_enter_description {
|
||||
get {
|
||||
return ResourceManager.GetString("calculator_settings_close_on_enter_description", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Use English (United States) number format for input.
|
||||
/// </summary>
|
||||
|
||||
@@ -184,6 +184,12 @@
|
||||
<value>Ignores your system setting and expects numbers in the format '{0}'.</value>
|
||||
<comment>{0} is a placeholder and will be replaced in code.</comment>
|
||||
</data>
|
||||
<data name="calculator_settings_close_on_enter" xml:space="preserve">
|
||||
<value>Close on Enter</value>
|
||||
</data>
|
||||
<data name="calculator_settings_close_on_enter_description" xml:space="preserve">
|
||||
<value>Makes Copy and close the primary command</value>
|
||||
</data>
|
||||
<data name="calculator_settings_replace_input" xml:space="preserve">
|
||||
<value>Replace input if query ends with '='</value>
|
||||
</data>
|
||||
|
||||
Reference in New Issue
Block a user