philc / vimium

The hacker's browser.
https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
MIT License
23.53k stars 2.49k forks source link

Can we have a "all tabs are windows" mode like in [qutebrowser](https://www.qutebrowser.org/)? #4138

Open emilyyyylime opened 2 years ago

emilyyyylime commented 2 years ago

This would make all shortcuts that open a new tab actually open a new chrome window, with an option for it to open in application mode (with the --app=urlgoeshere option passed to the chrome executable on linux, not sure what this would entail on windows).

I want this feature because I use i3 and chrome tabs kind of defeat the purpouse of a tiling wm, so I prefer simply ignoring tabs as a feature and managing windows as tabs myself

gdh1995 commented 2 years ago

In my customized version of Vimium, Vimium C (https://github.com/gdh1995/vimium-c), it's somehow possible: LinkHints supports a parameter of newtab="window", most commands to open URLs support reuse="new-wnd" and there's a trick to make Vomnibar always open URL in new window. So a basic key mapping to do so is:

map f LinkHints.activate newtab="window"
# map xxx LinkHints.activateXXXXXX newtab="window"

map o Vomnibar.activateInNewTab clickLike
mapKey <enter:o> <s-enter>

run <v-nw> $s#reuse="new-wnd" mask
run t nw createTab
run p nw openCopiedUrlInNewTab
# run xxx nw openXXXXX