occivink / kakoune-snippets

Snippet support for kakoune
The Unlicense
48 stars 6 forks source link

[Feature Request] Nested placeholders #7

Closed andreyorst closed 1 year ago

andreyorst commented 5 years ago

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

occivink commented 5 years ago

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?

andreyorst commented 5 years ago

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.