aki77 / atom-source-preview

Source Preview for Atom
https://atom.io/packages/source-preview
MIT License
8 stars 3 forks source link

How to deal with source language overlap? #12

Open danielbayley opened 8 years ago

danielbayley commented 8 years ago

I've mostly written a source-preview-decaf package to preview decaf output, but since it works on CoffeeScript, I have no idea how it could actually coexist in Atom, given that this package already covers CoffeeScript.

@aki77 Any ideas how this could work?

I was thinking it would be nice to have some kind of "alt preview" command, so that in this case both (preview CoffeeScript to ES5 as it currently works, and preview CoffeeScript to ES6 with decaf package) can be bound to a slightly different keybinding (for example ⌘p and ⌘⌥p).