Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame does not close when leaving web page #175

Open
rlauer6 opened this issue Feb 24, 2021 · 1 comment
Open

Frame does not close when leaving web page #175

rlauer6 opened this issue Feb 24, 2021 · 1 comment
Labels

Comments

@rlauer6
Copy link

rlauer6 commented Feb 24, 2021

Not sure if this is an issue or intended behavior. When you leave the web page that contains the text box being edited in a frame, is the behavior intended to be that the frame remains open? If I C-c C-c then the frame is closed, but just wondering if this is the experience that is intended.

Also - whenever I save C-x C-s the focus is changed to the top of the file...quite annoying. Is this intended as well?

Context: emacs 26.1 (text mode in terminal window) on Pixelbook.

Thanks

@stsquad
Copy link
Owner

stsquad commented Mar 2, 2021

Currently the connection to the edit-server is a single transaction - send contents, receive results. It's not well suited to handling these async actions like browsing away on the page.
The C-x C-s behaviour is a consequence of this communication process because you effectively save the results and then start a new session. I'm sure however we could do something to persist the cursor from the previous edit session.
The long term solution would be to replace the existing GET/REPLY approach with a fully bi-directional websocket between the browser and the edit server. This is the approach that Atomic uses for example.

@stsquad stsquad added the feature label Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants