gdh1995 / vimium-c

A keyboard shortcut browser extension for keyboard-based navigation and tab operations with an advanced omnibar
https://chrome.google.com/webstore/detail/vimium-c/hfjbmagddngcpeloejdejnfgbamkjaeg
Other
3.44k stars 255 forks source link

Feature request: Switch tabs using hints in vomnibar (like If you press T) #1157

Open Abdullah16M opened 4 months ago

Abdullah16M commented 4 months ago

Requested feature Switch tabs using hints like in surfingkeys (video below)

Demonstration in sufingkeys https://github.com/gdh1995/vimium-c/assets/68733950/9c0ce5d7-31d7-4774-b043-73fd6e6e4b82

Steps

  1. Press gt
  2. A frame of open tabs with hints appears
  3. You want to search open tabs instead of selecting them by hints? press space (or any letter not used by hints)

Why? This is a great UX improvement.

  1. It is much more efficient and convenient than the current implementation of tab switching in vimium-c (e.g. using T)
  2. cmd-(tab number) isn't consistent when the vomnibar is open (only in firefox)
  3. Vomnibar is big for tab switching (A cleaner frame with only the tab title is easier for identifying a tab), so a smaller frame with open tabs to select is better (based on my experience using surfingkeys)
  4. You can run out of numbers for (cmd-tab number) when you more than 10 tabs open
  5. I found many issues with surfingkeys and tridactly (scrolling, hints..etc), but if i have to chose one feature from surfingkeys to be in vimium it would be this one.
gdh1995 commented 4 months ago
  1. Um hard to implement it using LinkHints - Vimium C's LinkHints has too many features and then it is too heavy for Vomnibar iframe to run.
  2. If you mean Cmd+Number has been used by browser to select N-th tab (from left to right), then you may use Alt+number
    • yes Vimium C v1.x has some bugs on macOS so alt+n fails, but I've fixed it in Vimium C v2.x, which will be released in several days
  3. titles are not enough for me - I often open some websites which are not well-designed, and their tabs share same short titles
  4. yes it's an issue

Then, what about this idea:

image

Abdullah16M commented 4 months ago
  1. Um hard to implement it using LinkHints - Vimium C's LinkHints has too many features and then it is too heavy for Vomnibar iframe to run.

    1. If you mean Cmd+Number has been used by browser to select N-th tab (from left to right), then you may use Alt+number
    • yes Vimium C v1.x has some bugs on macOS so alt+n fails, but I've fixed it in Vimium C v2.x, which will be released in several days
    1. titles are not enough for me - I often open some websites which are not well-designed, and their tabs share same short titles

    2. yes it's an issue

Then, what about this idea:

* `map xxx Vomnibar.activateTab characters="asdfg"`

* then show tabs with current number circles, while the number will be replaced with `a`, `s`, ..., `g` and even `as`

* consume follow keys just like LinkHints

* or exit this mode, if only on a space or other non-matched keys.

image

Yes that would be great, i have a few suggestions:

  1. maybe changing characters="asdfg" to hintCharacters="asdfg" or tabCharacters would be better, as characters may be used for other purposes later on.
  2. As for titles aren't enough in some cases, I agree, although adding an option to hide urls would be a nice addition.
  3. Lastly, I think the number cycles are better placed at the beginning of each item (i.e. tab). Sometimes i have doubts if the number I am pressing is aligned with the tab (especially in wide screens).
  4. Thanks for your efforts.
gdh1995 commented 4 months ago

What about limiting max-width of Vomnibar to 2000px, especially when on a 4K screen?