I was thinking about the possibility to implement another variable, similar to %%cursor%%, but that would pre-select some default text present in the snippet, when triggering it. Instead of only placing the cursor at X position.
Like those password fields that say "insert password here" and when you click on them, the whole phrase gets selected so you can start typing your password directly.
For example:
Let's say the variable is made of two parts: %%startText%% and %%endText%%
If I write the snippet:
``` %%startText%%insert programming language here%%endText%%
%%textSelection%%
```
And I trigger it while having the phrase int a=3; selected, I will obtain:
``` insert programming language here
int a=3;
```
with the phrase "insert programming language here" actively selected.
I was thinking about the possibility to implement another variable, similar to %%cursor%%, but that would pre-select some default text present in the snippet, when triggering it. Instead of only placing the cursor at X position.
Like those password fields that say "insert password here" and when you click on them, the whole phrase gets selected so you can start typing your password directly.
For example:
Let's say the variable is made of two parts:
%%startText%%and%%endText%%If I write the snippet:
And I trigger it while having the phrase
int a=3;selected, I will obtain:with the phrase "insert programming language here" actively selected.