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

Port overlapping link hint rotation by Space from VimFx #1252

Closed
wants to merge 5 commits into from
Closed

Port overlapping link hint rotation by Space from VimFx #1252

wants to merge 5 commits into from

Conversation

kartynnik
Copy link

This commit basically ports the VimFx'es ability to rotate overlapping marker stacks by pressing [Shift-]Space. This is very useful in the cases where many little (e.g. iconic) links are stuffed together. Resolves #757.

@mrmr1993
Copy link
Contributor

This is very cool! I've created a pull request on your branch that fixes the shift behaviour and adds shift-space as a shortcut.

@mrmr1993
Copy link
Contributor

How could we to document this so that users know about it?

@kartynnik
Copy link
Author

Thank you for the pull request, I am unaware what is the intended Shift behaviour so decided not to change anything there.
As to the documentation, we could in principle check if there are any overlapping stacks and display a HUD notification (in the case of VimFx, it is just a hint in README.md, but we can do better than that).

mrmr1993 and others added 2 commits November 20, 2014 22:31
@smblott-github
Copy link
Collaborator

Two comments:

  • How useful is this feature in practice? When hints overlap, it's usually pretty difficult for the user to know what each hint actually activates.
  • However, we could do this anyway. It's a cool feature which former VimFX users would expect to have, and it's minimally disruptive.

I suspect this PR is against an hopelessly old code base; so I'll close it for now. (Correct me if I'm mistaken.) A new PR would be welcome.

@kartynnik
Copy link
Author

This feature is pretty useful in the occasions when the web app interface is full of little icons, for example. Another claim in its favor is that you may try once and remember - if you happen to be forced to use some repetitive interface, being able to use Vimium to speed up your regular navigation is beneficial. I remember myself wishing several times that this feature is implemented in Vimium, but it was mainly back when GMail support was not that polished.

Yes, the code base is like over a year old, I didn't update the PR 'cause there was no significant reaction. But @mrmr1993 had merged it into his own fork then, so if he had kept it up to date through the code base changes, maybe we could have a more modern implementation of this.

If this is not the case, I'll try to reimplement the PR against the current upstream.

@lydell
Copy link

lydell commented Feb 6, 2016

As a VimFx user:

  • Every now and then sites have terrible markup where you get two markers on top of each other, because some wrapper element was considered clickable (as a false positive). Activating the hint for the wrapper element does nothing. Then it’s nice being able to press <space> once (that’s the default shortcut to rotate markers in VimFx) to see the “real” marker.
  • When it’s difficult to see what each hint actually activates (such as those tiny pagination numbers some forums use), you can press and hold shift (by default) in VimFx to make the hints semi-transparent. Then it is easier to work out which hint to type.

(Also, it’s VimFx, not VimFX, hehe :) )

smblott-github added a commit to smblott-github/vimium that referenced this pull request Mar 17, 2016
We recognise elements with a class names containing the text "button" as
clickable.  However, often they're not, they're just wrapping a
clickable thing, like a real button.

Here, we filter out such false positives.

This has two effects:

- It eliminates quite a number of real false pasitives in practice.
- With fewer hints close together, fewer hint markers are obscured by
  the hints from (non-clickable) wrappers.  This reduces the need for
  rotating the hint stacking order, e.g philc#1252.
smblott-github added a commit to smblott-github/vimium that referenced this pull request Mar 28, 2016
We recognise elements with a class names containing the text "button" as
clickable.  However, often they're not, they're just wrapping a
clickable thing, like a real button.

Here, we filter out such false positives.

This has two effects:

- It eliminates quite a number of real false pasitives in practice.
- With fewer hints close together, fewer hint markers are obscured by
  the hints from (non-clickable) wrappers.  This reduces the need for
  rotating the hint stacking order, e.g philc#1252.
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.

An idea about resolving overlap link hints!
4 participants