-
Notifications
You must be signed in to change notification settings - Fork 100
Programmable snippets #109
Comments
The desired behavior is known as transformations in TextMate snippet terminology. We should probably use that as the starting point for this feature request. |
Alright, sounds good. I'll starting looking at the spec. |
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
Any news on this, or any guidance where to start looking at? |
This comment has been minimized.
This comment has been minimized.
Rather than use regular expression-based TextMate-style transformations, it might be more flexible to allow calling some kind of user-defined function. This would allow for regular expressions, but also other things. I've used this kind of feature in the past in another editor to insert the current date/time, or the current file name, as part of my snippet. |
I wrote up #257 because I’d missed this one way back in the issues list, but I’m linking it here because it’s got some example use cases and some technical discussion. |
This comment has been minimized.
This comment has been minimized.
I’m closing this one because the example described can be done now — #260 added support for snippet transformations. |
Just wondering if there is any way to make programmable snippets like in yasnippets for emacs.
Kinda like:
In this example, when typing
BrowserWindow
the text inside the require statement is converted from camel casebrowser-window
This would be awesome.
Anyway I could help?
The text was updated successfully, but these errors were encountered: