Whenever you’re writing more than a little snippet of code anywhere on the web, activate GhostText to open your preferred text editor and enjoy your own development environment.
Installation
GhostText is a browser extension that connects to your editor via its own extension. Install both extensions and, if necessary, start the GhostText server in the editor’s extension.
Choose your browser
Choose your text editor
Most editor extensions are by third parties. You can create more extensions for your editor! Refer to the protocol file.
Usage
Once you install both extensions, you can activate GhostText in the current browser tab by clicking its icon in the toolbar or by using a keyboard shortcut. The editor will need to be already open.
Notice: in some editors you’ll need to run the Enable GhostText command to start the server. Refer to the documentation of your editor’s GhostText extension. Sublime Text doesn’t need this step.
How it works
GhostText is split in two parts:
- a HTTP and WebSocket server in the text editor
- a client in the browser
When you activate GhostText with a click, the browser will try contacting the server in the text editor (at the port specified in the options) and open a WebSocket connection. Every change will be transmitted to the other side. Each side can close the socket (for example by closing the window) and the session will be automatically over.
Keyboard shortcuts
These are the default shortcuts, they can be customized in Chrome and Firefox, but not yet in Safari.
Windows | ctrl + shift + K |
---|---|
Linux | ctrl + shift + H |
Mac | cmd + shift + K |