-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Show title attribute tooltips command #5406
Comments
There is a hover hint target, "hint all hover" is bound to What OS are you using on it that has a good enough keyboard to not make it painful? Or did you rebind everything? |
I tried it out on xkcd.com to see the text from the image but it did not work. I'm using debian phosh with my own terminal key layout. But it should work for me more or less with any layout. I just bound b to back and comma and period to zoom in and out. Works quite well although I miss pinch to zoom. |
I suppose it would be possible to extract title attributes and show them similar to how hints are being shown. |
Is it not possible to make the hint target hover to activate the title box like the real mouse cursor hover does? For what it's worth, I created this shell userscript to use with :hint to show the title as an info message: #!/bin/sh
# Set how long you want the message to show.
titleTimeout="10000"
# Set your value for messages.timeout here so the script can restore it.
defaultTimeout="4000"
restTime="$(echo "scale=3;(${titleTimeout}-${defaultTimeout})/1000" | bc)"
title="$(echo "$QUTE_SELECTED_HTML" |
grep -Po '(?<=title=")(.*?)(?=")' |
php -R 'echo html_entity_decode($argn);' |
sed 's/"/\\"/g')"
([ -z "$title" ] &&
echo "message-error 'No title to show.'" ||
(
echo "set messages.timeout $titleTimeout" &&
echo "message-info \"$title\"" &&
sleep "$restTime" &&
echo "set messages.timeout $defaultTimeout")
) > "$QUTE_FIFO" Also a simpler version if you don't mind having the same timeout as all the other messages: #!/bin/sh
restTime="$(echo "scale=3;(${titleTimeout}-${defaultTimeout})/1000" | bc)"
title="$(echo "$QUTE_SELECTED_HTML" |
grep -Po '(?<=title=")(.*?)(?=")' |
php -R 'echo html_entity_decode($argn);' |
sed 's/"/\\"/g')"
([ -z "$title" ] &&
echo "message-error 'No title to show.'" ||
echo "message-info \"$title\""
) > "$QUTE_FIFO" |
It seems to do that sometimes? No idea why it doesn't always work. |
I am very successfully using qutebrowser on my Pinephone. It seems like it is very well suited for touchscreen (or more precisely, lack of mouse) support.
But I would like the ability to watch tooltips done through the title attribute. Either by treating a touch like hovering with the mouse over an element or through a command showing all title attributes.
I guess the latter would be more in the spirit of qutebrowser.
The text was updated successfully, but these errors were encountered: