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

Feature request: Show other suggestions when no result is found on "Vomnibar.activateInNewTab" #259

Closed
afilp opened this issue Dec 13, 2020 · 14 comments

Comments

@afilp
Copy link

afilp commented Dec 13, 2020

  • I want to open the "google calendar" page, in a new tab, straight from where I am in Chrome
  • So, I press "T", then type "cale".
  • No list is shown, as no "cale" tab is open in my browser:

image

  • It would be great though, if in such a case ("no list items") you could show the Google suggestions there!

image

This way, we can go fast to a new page with search results ready!

The reason is that sometimes I have google calendar open many times, because I do not want to lose time with "T" to check if it is already open or not and I always try a new google search. If I go the "T" route, and the tab is not already open, I lose energy with additional typing for a new search, since I cannot go straight to the google search results from there.

Thanks!

P.S. In order for the user not to be confused with the regular results, you could use a different icon OR a label for this. Example:
image

@gdh1995
Copy link
Owner

gdh1995 commented Dec 13, 2020

I suggest that you use the default mode ("omni mode) of Vomnibar, which means Vomnibar.activate and Vomnibar.activateInNewTab, because it will search in opened tabs and history items, and in the mode tabs have a quite high priority.

If you can not go to Google calendar by cale in the default mode, then there's still a trick for this case: focus "custom key mappings" on Vimium C Options page, and add / update the line of Vomnibar.activate:

  1. you may add a new option of engines=5, and then Vomnibar triggered by this key sequence will only search in bookmarks and opened tabs
  2. you may use engines=12, and then it only search in opened tabs and Vimium C's custom search engines.
    1. then add cale|cal: https://calendar.google.com/calendar/u/0/r?pli=1 Google Calendar to custom search engines.
  1. use engines=20 to limit search ranges as search engines and known domains

The detailed meanings of engines can be seen in Point 2 on https://github.com/gdh1995/vimium-c/wiki/How-to-...-on-Vomnibar

@gdh1995
Copy link
Owner

gdh1995 commented Dec 13, 2020

Um, it seems that engines doesn't work in the latest code. I'll fix it in days.

Update: it works - just notice that engines=12 can only work as engines=4 if the command is Vomnibar.activateTabSelection, so you always need to use Vomnibar.activate if you want to use an engines.

@afilp
Copy link
Author

afilp commented Dec 13, 2020

Thanks a lot!

I noticed that when I use this: Vomnibar.activate icase engines=4 (i.e. showing just the tabs)

...then ctrl-Enter does not open the 1st tab in the selection list:

image

but it opens this google search results page instead (in a new tab):
image

P.S. Another feature request, can we have CTRL-SHIFT-ENTER to open the result in a new Window instead of a new tab?

@gdh1995
Copy link
Owner

gdh1995 commented Dec 15, 2020

open the 1st

add an option of autoSelect to Vomnibar.activate.

in a new window

well, currently there's no. Maybe I need to add a new option to make Vomnibar's *-Enter act like Chrome's *-Click.

@casprwang
Copy link

I happen to have similar wishes, so I created an issue #263

gdh1995 added a commit that referenced this issue Dec 28, 2020
@gdh1995
Copy link
Owner

gdh1995 commented Dec 30, 2020

have CTRL-SHIFT-ENTER to open the result in a new Window

Hello, I've made some changes to the shown text, and please try: vimium_c-1.87.2-chrome-bb50d72.zip, vimium_c-1.87.2-firefox-bb50d72.zip (please try v1.88.0 instead).

Usage: re-map Vomnibar-related commands, and add a new option to those mapping rules: clickLike="chrome". For example:

map o Vomnibar.activate clickLike="chrome"

And then Vimium C will translate Ctrl / Shift signals just like what Chrome will do.

If you're using Vivaldi, which has a different Ctrl/Shift usage, then clickLike can be "vivaldi".

Wiki about .zip files: https://github.com/gdh1995/vimium-c/wiki/Test-a-zip-package .

@gdh1995
Copy link
Owner

gdh1995 commented Jan 4, 2021

Hello, v1.88.0 has been released, and if you add clickLike="chrome" to mappings of Vomnibar.activate***, then Ctrl/Alt/Shift will work like Chrome itself deals with your click. So Shift+Enter will open in a new window.

For example: map o LinkHints.activate clickLike="chrome"

@afilp
Copy link
Author

afilp commented Jan 4, 2021

Thank you!

@afilp
Copy link
Author

afilp commented Jan 4, 2021

Do we have an option to have tabs on higher priority than the "domain"? (so that we can hit CTRL-ENTER and get there?)
image

Note: I am using engines=20

@gdh1995
Copy link
Owner

gdh1995 commented Jan 4, 2021 via email

@afilp
Copy link
Author

afilp commented Jan 4, 2021

The idea is this:

  • CASE 1: If we already have the calendar tab open, don't bother opening a new one, just hit CTRL-ENTER and we are there. (note: I am using CTRL-ENTER often, a great feature to quickly go where we want, as in most cases the 1st result in tabs is the one we need).
  • CASE 2: If not, the domain for calendar is only shown (nothing else), so we just hit SHIFT-ENTER and we are in a new calendar tab!

Of course, in CASE 1 we can just hit TAB, then ENTER, but CTRL-ENTER was much better when I did not have the domain (but I also need it for the CASE 2 logic).

I am just trying to "automate" my tabs navigation with the least moves possible. I want to be able to go to my "frequently used websites" (like "calendar", etc.) without opening new tabs for them: If they are open, use them, if not open a new tab. This should be fast.

Thanks!

@gdh1995
Copy link
Owner

gdh1995 commented Jan 4, 2021 via email

@afilp
Copy link
Author

afilp commented Jan 4, 2021

Thanks,

I thought of this but the idea is that we should not have to think which key to press (shift-T or b), it should all be done through a single point of entry, then type, then act.

@gdh1995
Copy link
Owner

gdh1995 commented Jan 5, 2021

In a normal ("omni") mode of Vomnibar, all of bookmarks, history, domains and tabs will be searched. So you can just add engines=... to a single mapping (e.g. map o Vomnibar.activate engines=...) and always use the single key like o.

@gdh1995 gdh1995 changed the title Feature request: Show chrome search suggestions when no result is found on "Search through your open tabs (T)" Feature request: Show other suggestions when no result is found on "Vomnibar.activateInNewTab" Jan 8, 2021
@gdh1995 gdh1995 closed this as completed Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants