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.33k stars 254 forks source link

How to properly mimic a option-click? #992

Open narutohahahaha opened 1 year ago

narutohahahaha commented 1 year ago

Hi,

I am using the arc browser which will open a url in the split view if the user holds the option/alt key when clicking a url. Now I want to do the same thing with vimium-C but it does not work perfectly. Here is what I encountered:

  1. I hit the key to do LinkHints.activate;
  2. I held the option key and selected the url;
  3. The browser did open the url in split view. However, the selectors in the parent webpage did not disappear even if I selected the parent site again by manually clicking the white space. And I don't really know how to disappear them except refreshing this site. In addition, the selectors were out of place (maybe because the parent webpage layout is changed due to split view).

I wonder is there a way to make it work perfectly? Or is it possible to add a argument to LinkHints.activate (e.g., LinkHints.activate modifier = "meta")?

gdh1995 commented 1 year ago

I haven't tried Arc, but I guess it's because Meta key made LinkHints enter queue mode during your tests.

Up to now the mode switching can not be skipped. Let me do more tests and: