atom / snippets

Atom snippets package
MIT License
205 stars 100 forks source link

Dynamic prefix #226

Closed kikoseijo closed 6 years ago

kikoseijo commented 7 years ago

Hi there, great work, let me tell you.

I been all evening trying to make it work but seems its not this easy, let me explain, its not complicated to understand:

I managed to create a local variable inside the package that allows the user to setup a default prefix value in the settings. What I want to achieve its the posibility to let user define this prefix in snippets, I have configured all the plugins with the shortcut .: but ill like to be dynamic, and let user open up my snippets with his own short code, for example kk but only the initial values, only a prefix of the prefix, as I define the rest, its a way to let user configure the window that suggests the snippet. Maybe just 2 or 3 characters.

The package im working on its https://atom.io/packages/bootstrap-3-snippets-for-atom

Did I lost the few hours been trying to figure it out? or is this something that its posible but require a bit more configuration? If question 2 its the right one, can you please advise in where to focus next to achieve this?

Thank you!! & Happy Days!!.

All the best,