Andrey Listopadov

Results 306 comments of Andrey Listopadov

hm, but we need to discard placeholders that do not have default text from such hook. And discard this hook if user leaves insert mode for some reason

for some reason the hook, mentioned above works fine for selections with 2+ characters, but results in duplicated input on single selected characters. From my point of view there should...

This is bit more difficult. First we need different behavior for selections with single character and more than single character: ```kak try %{ # abort if there default text is...

Also I've figured out what's causing that we need two different hooks.Since we start in append mode, after selections are added, inserted text gets deleted by the d. If placeholder...

I guess I can make this feature real, but I need to improve my Perl skills first. Anyway this is in my TODO list, since I really need this feature...

In UltiSnips Vim plugin this is called `${VISUAL}` placeholder (because of `visual` mode). The desired selection is stored inside special variable, and gets pasted into next snippet which contains such...

In case of Vim it was automation. In case of Kakoune, we have R which will allow us to replace any selcted placeholder with stored text

There's also a useful feature that allows skipping `$0` placeholder at the very end of the snippet, in case we want to jump out, called automatic jumpout. So instead of...

One potential usecase is generated placeholders, that consist of two parts, like `${1:test_${2:generated_name}}`. This is low priority, but I've seen predefined snippets for some languages were using such placeholders.

Hm, I see. I have an idea