Copy a snippet directly to clipboard

Hi,

we use personalized scripts on a SSH Terminal and use Text Blaze to access to all of them with a single shortcut, like "//code".

For this, I created a dropdown on Text Blaze that allows the agent to select the code of the script. This works perfect on forms, documents, etc... BUT the problem comes when they use a SSH Terminal.

To paste the code on SSH Terminals is necessary to execute a keyboard command like:
ctrl-shift-V
(Another option is a click with the right button of the mouse, but as I have seen, this is not available on Text Blaze, so I discarded this option.)

When I create the snippet and execute the keyboard option with ctrl-shift-V, what is pasted is the content of my clipboard, not the result content of the snippet. I mean, the snippet is not store on my clipboard, so the content can't be pasted on the SSH Terminal.

My question is, ¿how I can make that the result of the snippet is copied to the clipboard automatically so I can insert it on SSH Terminal?

I attached a snippet where you can see this.

Thanks and regards!

{note: color=none}
Category: {formmenu: default=Select:; SSH; name=categoria}

{if: categoria = "SSH"; trim=left}
Code:
{formmenu: default=Select:; My code 1; name=codigo2}
{if: codigo2 = "My code 1"}{formtoggle: default=no; name=Mark if you will use SSH Terminal.}{endformtoggle}{endif}{endif}{endnote: trim=no}


{if: categoria ="SSH"}{if: codigo2 = "My code 1"}This is the code I want to paste to SSH Terminal.{if: `Mark if you will use SSH Terminal.` = "Yes"; trim=left}{key: ctrl-shift-V}{endif}{endif}{endif}

Hi @layla.errachidi Welcome to the forum! :slight_smile:

Can you setup PowerToys to remap keys specifically inside the SSH Terminal, such that Ctrl+V remaps to Ctrl+Shift+V? Here's how to do that: Remap Keys and Shortcuts with PowerToys Keyboard Manager | Microsoft Learn
Then, Text Blaze would still send Ctrl+V (while pasting the snippet), but PowerToys would intercept it and convert it to Ctrl+Shift+V before the SSH terminal receives it.

Alternatively, is it possible to change the settings of this SSH Terminal, so it can handle paste via Ctrl+V?

Let me know if you are able to get it working or if you run into any issues while trying this out :smiley:

[quote="Gaurang_Tandon, post:2, topic:61096"]
PowerToys
[/quote]Hi!

Thanks for your reply!

We work with several companies and their SSH Terminals, so we can't change the settings. I tried to use Ctrl+Shift+V because is the one that I found that works on all of them.

About PowerToys, we can't install new apps on our equipment for security reasons. They need to be approve and the process is very long.

There is no option with Text Blaze to make this?
If not, I will told them to just copy and paste, old style :smiley:

Thanks and regards!

Thanks for your clarification! You have one workaround: trigger the snippet in Notepad, insert it into Notepad, and then copy from there.

We might at some point have paste key override in-app instead of relying on PowerToys, but we haven't fully mapped that out yet.

Apologies for the inconvenience! I will move your post to Feature Ideas category so other folks can vote on it.

Feel free to reach out to us with any more information, and for any new feedback feel free to post here in the forum or email directly at support@blaze.today .

Best,
Gaurang