degouville / atom-bootstrap4

Bootstrap 4 Support & Snippets for Atom
https://atom.io/packages/atom-bootstrap4
MIT License
48 stars 26 forks source link

Updated snippets (4.0.0-beta) #16

Closed tomurb closed 7 years ago

tomurb commented 7 years ago

I've converted Sublime Text snippets[1] with linux sed command and atomizr[2]. The directories structure have changed a lot but it seems to work.

[1] https://github.com/degouville/sublime-bootstrap4 [2] https://github.com/idleberg/node-atomizr

degouville commented 7 years ago

@wolnyludz look great! good job 👏

degouville commented 7 years ago

can i mention about u in the readme?

tomurb commented 7 years ago

Sure. Thanks.

tomurb commented 7 years ago

Just in case if there were more snippets in the future to convert.

//With terminal opened in the snippets folder and old atom snippets already deleted.
sed -i "s/<\/snippet>/<scope>text.html<\/scope><\/snippet>/g" *
find ./ -type f -exec atomizr "*" -t atom -o ~/.atom/packages/atom-bootstrap4/snippets/a.cson {} \;
tomurb commented 7 years ago

Oh wait. I forgot to put these converted files into snippets directory after deleting everything inside. It should be

-atom-screenshot
-settings
-snippets
|-a.cson
|-accordion.cson
|-...