-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive snippet-editing #41
Comments
Obviously, this is an enhancement, however the google interface won't allow me to Google Code Info: |
Cool indeed. Google Code Info: |
It will be great if this feature is supported. Google Code Info: |
I think this feature is already supported. But I'm not sure it will work in all (define-key yas/keymap [tab] 'yas/expand) However, since Emacs can't tell the difference between TAB and [tab] on a terminal, I Google Code Info: |
Another temp (and it usually works perfectly for me) is to bind expand to another key. I bound yas/expand to C-RET, so, when i'm in snippet and i need to expand some small Google Code Info: |
I confirm that the recursive snippet-editing works great. Thanks. I use hippie-expand and bind it to tab: (setq hippie-expand-try-functions-list And I use Enter/M-Enter to switch field: ;; reset yas/keymap Google Code Info: |
Already supported. Also in new version 0.6.0, see also new customization variable `yas/triggers-in-field'. Google Code Info: |
It would be really nice to have yasnippet work recursively. That is, when
editing a snippet 'tab' would, instead of just skipping to the next
snippet, first try to see if there is a new snippet in the current field,
and if so, insert that and start a 'stacked' snippet editing process.
I dont know if it's clear what I mean, but maybe this use case explains it
better:
There's two snippets:
'if' inserts a regular 'if' statement
'testx' insert 'test_for_x()'
ideally, when I want to insert the code
if (test_for_x()) {
// do something
}
I would type 'if', press tab (inserts the 'if' snippet'), type 'testx',
press tab (would insert the 'x' snippet!), and press tab again would jump
inside the curly braces of the if, exiting the snippet.
Google Code Info:
Issue #: 38
Author: scherpenisse
Created On: 2008-10-10T15:09:25.000Z
Closed On: 2009-07-31T00:02:12.000Z
The text was updated successfully, but these errors were encountered: