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

Feature contexthinter #8087

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

mkonig
Copy link
Contributor

@mkonig mkonig commented Jan 30, 2024

Uploading 2024-01-30_15-39.png…
Adds a new hint mode "context".
This mode tries to make hints based on the text used in links, buttons, image elements etc.
The advantage to existing modes is that the hints are easier to predict and therefore faster to type. In addition hints for the same or similar elements in different webpages are most of the time the same. E.g. buttons with "accept" will almost always have the hint "acc".
Or menu elements in pages like gitlab, github etc will almost always have the same hint no matter the project you are in.
Another example if one hints filenames in repos, the hints will most likely be the same as the start of the filename. So it is easier to type the hint, because one already had the filename in mind.

You might have noticed that I use "almost always" a lot, because the hint mode does not guarantee that the hints are the same every time. But it is most likely they are.

I also added a feature to set the wm_class name. I use this to run multiple different instances of qutebrowser in i3 and want to be able to diffirenciate.
But I have no problem if that feature would be removed for this pull request.

@mkonig
Copy link
Contributor Author

mkonig commented Jan 30, 2024

I did use black to format. Will change this asap and update the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant