stsquad / emacs_chrome

A Chromium/Firefox "clone" of It's All Text for spawning an editor to edit text areas in browsers. Based on David Hilley's original Chromium extension.

Home Page:https://chrome.google.com/extensions/detail/ljobjlafonikaiipfkggjbhkghgicgoh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent concurrent edit requests for one element

vfaronov opened this issue · comments

Thanks for the nice extension!

One problem: If I focus a textarea and click Edit in Emacs twice, I get two outstanding requests to the edit server. This means I’m editing the same text in two different buffers. This makes it rather easy to lose track of what’s happening. I often need to work on multiple complex pieces of text at a time, switching between different pages, windows, etc.

I wish there was an option to make it clear for a particular textarea that an edit request is outstanding and/or prevent further requests until that one finishes. Perhaps some kind of visual overlay/mask over the element that is being edited.

I think we should be able to track the connection somehow. There is a little bit of funkiness as the edit request is sent by the "background process" so is one step removed from the extension running on the page.