danhper / atomic-chrome-atom

Edit Chrome textareas in Atom
https://goo.gl/haazl1
MIT License
93 stars 18 forks source link

Default file type extension - instead of hardcoded .md #20

Closed ghost closed 7 years ago

ghost commented 7 years ago

TL;DR: great plugin, was about to make similar one today found this, one thing the .md hardcoded was giving me trouble, so how about making it configurable ?

This commit is adding settings panel option for plugin to enable changing file type extension for files generated via WebSocket (Chrome/Atom) interface. Default is .md, also in the ws-handler.coffee it's loading this option, user can set the the value to .js for example - it's helpful to users that have plugins which are file extension based. - e.g. goto-definition plugin in atom.

danhper commented 7 years ago

Great, thank you very much!