-
Notifications
You must be signed in to change notification settings - Fork 23
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
Nithin/snippets #425
Nithin/snippets #425
Conversation
…o nithin/alias_expand
…o nithin/alias_expand
This is a preliminary impl just to keep it simple.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just trying out the ls
expansion, most of the time I would also like to add a space if I were to keep typing after the snippet has expanded. like if I wanted to type ls home
I would want the space to be insert automatically. Maybe we add option to append a space, maybe we detect this and only insert once you start typing. I'm not sure how generic this logic would be, and maybe we should wait for more use cases and implement more powerful snippets.
Otherwise looks good 👍
Could just simply add a space in the snippet itself to get this behaviour, or add an option in Will also throw up a few issues for the TODO left for this |
Snippets are substitutions that apply in the line when a trigger key is pressed. Encompasses #209, however it is not purely visual.