vimium-c icon indicating copy to clipboard operation
vimium-c copied to clipboard

Feature Request: more hints for LinkHints.activateSelect

Open alon-to opened this issue 4 years ago • 3 comments

I moved over to Vimium-C for the LinkHints.activateSelect command ("Select text and enter visual mode"). I've really enjoyed using it over the last several months.

One shortcoming of the feature is that it is somewhat tedious to use when the entry point for a selection is not near a hint. In that case, The workflow I follow is:

  1. Activate visual mode
  2. Select hint at the nearest hint
  3. Activate caret mode
  4. Move caret to correct position
  5. Activate visual mode
  6. Highlight and yank text

One change to make the above flow less common is to introduce more hints when LinkHints.activateSelect is activated, One example of this can be found in the Surfingkeys implementation, which seems to surface quite a few more hints (see screenshot below). The result is that steps 3, 4, and 5 can then be skipped, leaving the flow as:

  1. Activate visual mode
  2. Select hint at the nearest hint
  3. ~~Activate caret mode~~
  4. ~~Move caret to correct position~~
  5. ~~Activate visual mode~~
  6. Highlight and yank text

Thanks for maintaining this excellent extension! Happy to help answer questions, share more thoughts, test, etc.

image

alon-to avatar Mar 29 '22 21:03 alon-to

Um, aren't the hints by SurfingKeys too many?

Since here's a similar report which was sent to my email on 2022/2/15:

Surfingkeys, a similar extension, supports text hints. Surfingkeys applies these hints to almost all visible text, including links, when entering the visual mode, enabling one to select the starting position of the caret almost anywhere on a webpage or highlight almost any word. It is a great feature that reduces the number of key presses, thereby reducing fatigue and the risk of physical injury. Could you please add this feature to Vimium C?

Maybe I need to add a command option to provide more hints.

gdh1995 avatar Mar 30 '22 01:03 gdh1995

Um, aren't the hints by SurfingKeys too many?

I acknowledge the number of hints is quite overwhelming and can be visually cluttered for anyone not expecting this UI decision, but I believe the ability to (almost) always select the exact starting position as described in my note + the email you shared is to me extremely powerful. It would likely lead me to use LinkHints.activateSelect even more frequently than I do now!

I agree that it is likely best to not have the extra hints be the default behavior, but a command that gives LinkHints.activateSelect Surfingkeys type functionality would be very much welcomed!

Thanks so much for you quick reply, and for considering this feature request!

alon-to avatar Mar 30 '22 04:03 alon-to