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.28k stars 117 forks source link

Graceful failure if a supported editor isn't running #111

Closed mavit closed 3 years ago

mavit commented 6 years ago

Things fail in a confusing way if a supported editor is not already running when trying to use GhostText.

Steps to reproduce:

  1. Install Firefox addon from https://addons.mozilla.org/en-US/firefox/addon/ghosttext/
  2. Navigate to a webpage containing a text box.
  3. Click the GhostText button in the Firefox toolbar. The text box turns blue.
  4. Install atomic-chrome package for Emacs.
  5. Start atomic-chrome with (atomic-chrome-start-server).
  6. Try clicking the GhostText button in Firefox again.
  7. Observe that a message pops up in the browser saying "Connected", the GhostText icon has a green "ON" label, and a new buffer opens in the editor. Hurrah!
  8. Try to edit text in the browser. Observe that it is transferred to the editor. Spendid!
  9. Try to edit text the editor. Observe that it is not transferred to the browser. Oh.
fregante commented 6 years ago

The order is wrong, you should first start the server, then click on the button once.

mavit commented 6 years ago

Sure, I figured that out in the end, but it would be better not to be able to get into that situation. It's inconsistent that you can toggle syncing on an off by clicking the icon, but only if syncing is working properly.

fregante commented 3 years ago

This has been fixed in v21.

gif