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

Request: mouseless browsing #270

Closed
lcabrini opened this issue Apr 9, 2020 · 7 comments
Closed

Request: mouseless browsing #270

lcabrini opened this issue Apr 9, 2020 · 7 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@lcabrini
Copy link

lcabrini commented Apr 9, 2020

I installed eaf primarily to be able to copy text from wordreference.com and past it into an org buffer, all from withing Emacs (I can't get eww to cooperate with wordreference). This works, but in order to select text, I have to use the mouse, which gets annoying really fast. I was hoping to navigate a webpage like any other Emacs buffer, move to the start of text, mark the text and copy it, all via the keyboard.

Is that possible with eaf? I haven't been able to figure it out. I also saw this in the todo list which may be what I'm looking for:

Browser: smart select text area by cursor.

@MatthewZMD
Copy link
Member

Yes, this is part of the TODO list :-)

@manateelazycat
Copy link
Member

It's in todo list.

I think it's need much JavaScript code.

If you're good at JavaScript, welcomes the submission PR. ;)

@lcabrini
Copy link
Author

Hm.. Javascript is not really something I dabble in, but in the end it is just another programming language (albeit a bad one) and this is functionality that is really important to me so let me have a look and see what I can come up with.

So, if I get it right: one would need to inject Javascript into the page to handle things like scroll buffer up/down, mark region, copy, etc, right? And the EAF provides a bridge between LISP and the PyQT application? I'm sorry, I think I have to read up on how EAF works.

@manateelazycat
Copy link
Member

Hm.. Javascript is not really something I dabble in, but in the end it is just another programming language (albeit a bad one) and this is functionality that is really important to me so let me have a look and see what I can come up with.

So, if I get it right: one would need to inject Javascript into the page to handle things like scroll buffer up/down, mark region, copy, etc, right? And the EAF provides a bridge between LISP and the PyQT application? I'm sorry, I think I have to read up on how EAF works.

You can research emacs-application-framework/core/browser.py, this file is enough

@AlonTzarafi
Copy link
Contributor

QT has the option QWebSettings::CaretBrowsingEnabled but PyQt doesn't have it

@MatthewZMD MatthewZMD added enhancement New feature or request help wanted Extra attention is needed labels May 25, 2020
@manateelazycat
Copy link
Member

This request exist in https://github.com/manateelazycat/emacs-application-framework/wiki/Todo-List

Close this issue now.

@manateelazycat
Copy link
Member

This issue has fixed by recent patches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants