This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
action:Prompt_for_Snippet [2023/09/13 05:04] peternlewis created |
action:Prompt_for_Snippet [2023/10/30 22:25] (current) peternlewis [Output of Results] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Prompt For Snippet Action ====== | ====== Prompt For Snippet Action ====== | ||
- | _Prompt For Snippet_ allows you to create a snippet built from a template with fields entered when you execute the macro. | + | The _Prompt For Snippet_ action (v11.0+) allows you to create a snippet built from a template with fields entered when you execute the macro. |
The snippet defines the template using the [[token:Ask|%Ask%]] token, which can include a size and a default value. | The snippet defines the template using the [[token:Ask|%Ask%]] token, which can include a size and a default value. | ||
Line 15: | Line 15: | ||
==== Output of Results ==== | ==== Output of Results ==== | ||
- | The results of a shell script can be: | + | The results of the prompt can be: |
- | + | ||
- | * Ignored. | + | |
- | * Displayed in a floating window. | + | |
- | * Displayed briefly in a Notification. | + | |
- | * Displayed large across the screen. | + | |
- | * Typed in to the current selection. | + | |
- | * Pasted in to the current selection. | + | |
- | * Saved to a variable. | + | |
- | * Appended to a variable (v9.0+). | + | |
- | * Saved to the system or a Named Clipboard. | + | |
- | * Saved to a file. | + | |
- | * Asynchronously ignored — the action runs while the macro continues on. | + | |
+ | {{page>include:ScriptOutput#}} | ||
==== Result Button ==== | ==== Result Button ==== | ||
Line 51: | Line 40: | ||
=== Tokens === | === Tokens === | ||
+ | * [[token:Ask|%Ask%]] token | ||
* [[token:AlertButton|%AlertButton%]] token | * [[token:AlertButton|%AlertButton%]] token | ||
* [[token:PromptButton|%PromptButton%]] token | * [[token:PromptButton|%PromptButton%]] token |