Removing contents of a tabstop
OK, so, given a snippet like this:
snippet data "Algebraic data type" !b
data ${1:Type} ${2:variables} = ${3:Constructor} | ${0:Constructor}
endsnippet
The second tabstop is optional, but to skip it you have to reach for "delete" and you have to hit it twice to also get rid of the extra space. Is there a better way to handle this sort of thing? I could skip the default and just make it "$2", but then you get less hints at what you're supposed to put there, and you would also need to add the extra space yourself when you do want something in the second tabstop. So, I guess what I want is a way to define whitespace as part of a tabstop, and a mapping to clear the selected text when you jump to a tabstop that's easier to reach than "delete".
(Should I file a feature bug instead?)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- SirVer
- Solved:
- Last query:
- Last reply: