vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Is it possible to have the new tab page automatically open the Vomnibar?

Open emilyyyylime opened this issue 3 years ago • 7 comments

If so, how? Otherwise this is a feature request

emilyyyylime avatar Oct 06 '22 16:10 emilyyyylime

My customized version of Vimium, Vimium C (https://github.com/gdh1995/vimium-c), has implemented this feature: as said in https://github.com/gdh1995/vimium-c-helpers/issues/16#issuecomment-917598571 :

  1. open Vimium C Options, go to New tab URL and set it pages/blank.html
  2. add such a key mapping map t createTab $then="Vomnibar.activate"

Explainations:

  1. Vomnibar can not run on browser's native NewTab pages, so here uses an extension page of pages/blank.html
  2. in Vimium C, $then can be a mapped key sequence or a command name, and when it's a key sequence like o and g0, createTab will invoke the mapping rule when a new tab gets ready.
  3. If you're using global (browser-level) shortcuts, then shortcut createTab $then="Vomnibar.activate" should also work.

Detailed syntax and usages of $then: https://github.com/gdh1995/vimium-c/wiki/Auto-run-a-tree-of-commands

gdh1995 avatar Oct 10 '22 02:10 gdh1995

@Itay123TheKing Why not use Vomnibar.activateInNewTab? It's mapped to O by default.

It does almost exactly the thing you ask for, except it'll open the result in a new tab. To me that feels better than pressing to (open a new tab -> open omnibar).

oheikk avatar Oct 26 '22 09:10 oheikk

@oheikk I don't do to, that's exactly what this issue is about, I now have it configured so t opens a new tab and the vomnibar. That's not to say I don't also use the openinnewtab action, it's just sometimes one feels more natural than the other

emilyyyylime avatar Oct 26 '22 11:10 emilyyyylime

@oheikk I don’t do to, that’s exactly what this issue is about, I now have it configured so t opens a new tab and the vomnibar. That’s not to say I don’t also use the openinnewtab action, it’s just sometimes one feels more natural than the other

How did you accomplish this so that t opens a new tab AND the vomnibar? Trying to do just that. Thank you.

ghost avatar Oct 11 '25 08:10 ghost

@vim-happy-duck I have a PR coming in a few days which implements the ability to open the vomnibar on new tab pages. I'll link it here when it's ready.

philc avatar Oct 11 '25 16:10 philc

Fantastic! Thank you!

ghost avatar Oct 11 '25 19:10 ghost

See PR #4795 which implements this.

philc avatar Nov 19 '25 06:11 philc

Closing as #4795 is now merged.

philc avatar Dec 14 '25 04:12 philc