emacs_chrome icon indicating copy to clipboard operation
emacs_chrome copied to clipboard

Prevent concurrent edit requests for one element

Open vfaronov opened this issue 7 years ago • 1 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.

vfaronov avatar Jul 27 '18 19:07 vfaronov

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.

stsquad avatar Jul 30 '18 13:07 stsquad