-
Notifications
You must be signed in to change notification settings - Fork 120
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
Accepting without breaking the current snippet. #624
Comments
Hey, Thanks for your fast response. I think I didn't provide a good enough example, and weren't probably clear with my explanations, and the suggested fix isn't exactly what I wished for. So let me try again. It seems that suggested fix works as long as the first parameter is just a simple string. In my example above, Now if I hit tab, I expect the first parameter of the snippet to be set to the variable The keymap below is exactly what I want to achieve.
Which works just fine as long as the first parameter is a string, not any other type of suggestion. |
@Cih2001 Is it possible you have (by default) set |
No, I disabled that, the problem still persist. It's not because of the auto brackets, since like I mentioned in my previous comment, it works fine if the first parameter is a string, so 284dd37 partially worked. |
Feature Description
I looked at the documentations. There are two commands available to accept the suggested item
accept
andselect_and_accept
. However, they both break the snippet, so if I accept a suggestion for the first parameter, then snippet is broken and I cant jump to the next part usingsnippet_forward
orsnippet_backward
. Is there a way to accept a suggestion without breaking the current snippet?Using "super-tab" preset, here after hitting tab, I can select
testString
but cannot jump to the next parameter anymore as the snippet is broken.The text was updated successfully, but these errors were encountered: