fregante / GhostText

đź‘» Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.26k stars 116 forks source link

Define a default editor #123

Closed dertuxmalwieder closed 6 years ago

dertuxmalwieder commented 6 years ago

Some people like me have different text editors installed. There should be a way to define which one is the main editor. (I have no idea what happens when e.g. Sublime Text and Emacs are both attached to a text box...?)

It's All Text could start the preferred editor from within Firefox. Would that be a possibility too?

fregante commented 6 years ago

GhostText editor plugins run a server on port 4001 (customizable) so there can only be one per port.

GhostText Browser just opens whatever editor is listening on port 4001.

If you don’t want emacs to connect, then either disable its GhostText plugin, or don’t install it, or just change its GhostText server port to 4002.

Having multiple editors set to separate ports essentially lets you pick which editor is the default one. The only way to connect to it is to change GhostText’s port in the browser.