kakoune-snippets icon indicating copy to clipboard operation
kakoune-snippets copied to clipboard

[Feature Request] Nested placeholders

Open andreyorst opened this issue 5 years ago • 2 comments

Support for this kind of placeholders ${2:text ${1:other text}}

andreyorst avatar Jan 17 '19 12:01 andreyorst

This would be tough with the current approach since I create one selection per placeholder so they cannot be overlapping. I'm not sure if it's really worth changing it for this feature, what's a potential usecase?

occivink avatar Jan 20 '19 11:01 occivink

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.

andreyorst avatar Jan 20 '19 11:01 andreyorst