Skip to content
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

Assign a hotkey per snippet #10

Open
mamvdheijden opened this issue Dec 8, 2014 · 8 comments
Open

Assign a hotkey per snippet #10

mamvdheijden opened this issue Dec 8, 2014 · 8 comments

Comments

@mamvdheijden
Copy link

It would be great if you could decide where to place the cursor in the snippet when it is inserted. Now it is always inserted a rule after the snippet, so i have to place the cursor in the code again.

@zaggino zaggino added the invalid label Dec 8, 2014
@zaggino
Copy link
Member

zaggino commented Dec 8, 2014

@SoulVayne You can use {{!cursor}} to place cursor, see the example in default snippets: https://github.com/zaggino/brackets-snippets/blob/master/default_snippets/angularjs/ng-controller

@mamvdheijden
Copy link
Author

Nice Thanks, didn't know that!

@zaggino
Copy link
Member

zaggino commented Dec 8, 2014

No worries :)

@mamvdheijden
Copy link
Author

I've got another question regarding wrapping text with a snippet. Don't know if it's already implemented, thats why i ask it here instead of making another issue ^^

@zaggino
Copy link
Member

zaggino commented Dec 8, 2014

That is not implemented :)
Open a new issue for that and I'll have a look on how it could be possible.

@zaggino zaggino reopened this Dec 8, 2014
@zaggino zaggino changed the title Cursor place when inserting a snippet. Wrapping text with a snippet. Dec 8, 2014
@zaggino
Copy link
Member

zaggino commented Dec 9, 2014

@mamvdheijden
Copy link
Author

Tnx for the fast replies and additions to the plug-in. Really helps me in my workflow :)

I have one last request regarding this enhancement.
Would be really cool if you could assign a hotkey per snippet. So i could wrap things fast in the code.
Don't know if it is possible, but would be really nice!

@zaggino
Copy link
Member

zaggino commented Dec 9, 2014

Yeah, that definitely can be done, why not.

@zaggino zaggino changed the title Wrapping text with a snippet. Assign a hotkey per snippet Dec 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants