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

Unable to search selected text in search engine #1133

Open
chjayakrishnajk opened this issue May 13, 2024 · 2 comments
Open

Unable to search selected text in search engine #1133

chjayakrishnajk opened this issue May 13, 2024 · 2 comments
Labels

Comments

@chjayakrishnajk
Copy link

chjayakrishnajk commented May 13, 2024

Describe the bug
I was trying to select text using LinkHints.activateSelect and then search using autoOpen, but it is not working I have to press 'enter' in order to copy it and then use autoOpen to search it in search engine in new tab

To Reproduce

map sg autoOpen keyword="google"
map yv LinkHints.activateSelect

Steps to reproduce the behavior:

2024-05-13.20-06-53.mp4

Go to any website and press 'yv' to select text and press the key according to the hints and then press sg it won't work, now try to press 'enter', this copies the text and when you press 'yv' again now it searches

Browser, OS and Vimium C versions

  • Browser name: Brave
  • Browser version: version 1.65.132 Chromium: 124.0.6367.202 Official Build 64-bit
  • Vimium C version: C 1.99.99
  • OS name and version: Windows and 11
@chjayakrishnajk
Copy link
Author

When I click yv and select a text, it is in visual mode, so the 'sg' is not working. When I press 'esc' and then press sg it is searching, because it quit visual mode. Can't I search in the visual mode

@gdh1995
Copy link
Owner

gdh1995 commented May 22, 2024

In Vimium C v1.99, You may use P to search selected word in a new tab when in visual mode.

And in Vimium C v2, it will be p - no shift needed by default.

You may write such a mapping to adjust p's behavior:

map v enterVisualMode reuse="new-fg" keyword="google"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants