atom-react icon indicating copy to clipboard operation
atom-react copied to clipboard

Enable ES6 snippets by default

Open rhobot opened this issue 8 years ago • 11 comments

Currently, ES6 snippets are mapped into keys *6 like props6 and ren6.

Not sure this is possible, it would be great if there's an option of using ES6 snippets by default so that props or ren return the snippets of props6 and ren6.

As an alternative, I'm using react-snippets where ES6 is enabled by default.

rhobot avatar Jul 13 '15 21:07 rhobot

This would be great!

framerate avatar Jul 14 '15 17:07 framerate

Think it should be an option in plugin config not to harm those people who still using ES5.

stremlenye avatar Jul 17 '15 10:07 stremlenye

Hi! I tried to find away to enable/disable (or even add) snippets from code but could not find any that didn't require horrible hacks. If I or we are unable to find a proper way to do it I think the best way to go is to at some point release a new major version with es6 as the default and add suffix to the es5 ones.

orktes avatar Jul 17 '15 10:07 orktes

I think they can be even extracted into a separate package all together until https://github.com/atom/snippets/issues/55 has been implemented.

oguzbilgic avatar Aug 05 '15 06:08 oguzbilgic

@oguzbilgic idea iss ok, but is it possible to inform all the users they should install extra package with snippets or include it as a dependency?

stremlenye avatar Aug 06 '15 08:08 stremlenye

Hey guys, it's been a year. Is it time to update this yet?

I'd be willing to do a PR where stuff like cdr would render the ES6 version and cdr5 would render the classic one. This might frustrate people using ES5 (not sure how many are left?) but since React officially encourages classes now I think it's time. We could do a major semver to account for the people who don't want the change.

Thoughts?

framerate avatar Sep 22 '16 17:09 framerate

(It's been 3 years now)

@orktes Are you interested in letting me take over this project? I'm a big fan and I'd like to see it continue.

framerate avatar Oct 11 '18 00:10 framerate

4 years now...

Is this plugin dead or dying? what's everyone else using nowadays?

Thanks

fonziemedia avatar Sep 02 '19 08:09 fonziemedia

@fonziemedia I just assumed people have moved onto vs code, but I am still using this plugin. It appears to be updated for critical patches still?

framerate avatar Sep 05 '19 17:09 framerate

@fonziemedia We could probably petition to take ownership. I know NPM allows that for dead projects. @orktes are you still around? maintaining? Interested in some help?

framerate avatar Sep 10 '19 21:09 framerate

@framerate I don't have any experience with electron but would definetely be interested in helping out if you want to pick this up

fonziemedia avatar Oct 13 '19 13:10 fonziemedia