[AdvancedPaste] Custom Actions (#34395)

* [AdvancedPaste] Custom Actions

* Renamed pipe name to make spellcheck happy

* Improved settings page for Custom Actions

* UI improvements, disabled standard paste actions when no clipboard text, update clipboard text and gpo state every second

* Bug fixes, single query/prompt box, Ctrl+num shortcuts for custom actions, error box

* Spellcheck issue

* Bug fixes and used Advanced Paste Window as wait indicator for keyboard shortcuts

* Improvements to PromptBox, incluing show error message as tooltip

* Refactoring

* Fixed issue where ESC sometimes didn't close paste window

* Update src/settings-ui/Settings.UI/Strings/en-us/Resources.resw

Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

---------

Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
This commit is contained in:
Ani
2024-08-22 16:17:12 +02:00
committed by GitHub
parent bfa35d65a4
commit 2a8e211cfd
30 changed files with 1581 additions and 491 deletions

View File

@@ -720,7 +720,7 @@
<value>Save multiple items to your clipboard. This is an OS feature.</value>
</data>
<data name="AdvancedPaste_Direct_Access_Hotkeys_GroupSettings.Header" xml:space="preserve">
<value>Shortcuts</value>
<value>Actions</value>
</data>
<data name="RemapKeysList.[using:Microsoft.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
<value>Current Key Remappings</value>
@@ -1996,9 +1996,43 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
<data name="PasteAsPlainText_Shortcut.Header" xml:space="preserve">
<value>Paste as plain text directly</value>
</data>
<data name="AdvancedPasteUI_Actions.Header" xml:space="preserve">
<value>Actions</value>
</data>
<data name="AdvancedPasteUI_Actions.Description" xml:space="preserve">
<value>Create and manage advanced paste custom actions</value>
</data>
<data name="AdvancedPasteUI_AddCustomActionButton.Content" xml:space="preserve">
<value>Add custom action</value>
</data>
<data name="AdvancedPasteUI_Shortcut.Header" xml:space="preserve">
<value>Open Advanced Paste window</value>
</data>
<data name="AdvancedPasteUI_NewCustomActionPrefix" xml:space="preserve">
<value>New custom action</value>
<comment>First part of the default name of new custom action that can be added in PT's settings ui.</comment>
</data>
<data name="AdvancedPasteUI_CustomAction_Name.Header" xml:space="preserve">
<value>Name</value>
</data>
<data name="AdvancedPasteUI_CustomAction_Prompt.Header" xml:space="preserve">
<value>Prompt</value>
</data>
<data name="CustomActionDialog.SecondaryButtonText" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="AddCustomAction" xml:space="preserve">
<value>Add custom action</value>
</data>
<data name="CustomActionSave" xml:space="preserve">
<value>Save</value>
</data>
<data name="EditCustomAction" xml:space="preserve">
<value>Edit custom action</value>
</data>
<data name="CustomActionUpdate" xml:space="preserve">
<value>Update</value>
</data>
<data name="PasteAsMarkdown_Shortcut.Header" xml:space="preserve">
<value>Paste as Markdown directly</value>
</data>