Sublime Forum

Key Bindings - Command insert_snippet with Paste

#1

Good morning developers.

Today I have a shortcut in Sublime where I select a text and press crtl + . and it transforms the text into which he selected and puts the selected text between quotes and dots at the beginning and end of the text as in the example:

‘.HERE THE TEXT SELECT.’

{ “keys”: [“ctrl+.”], “command”: “insert_snippet”, “args”: {“contents”: “’.${0:$SELECTION}.’”, }},

But I needed the same function but instead of selecting a text, I wanted the text to be a crtl+v (paste text) is possible.

Because I know that the paste text comes from another command (paste).

0 Likes