Qutebrowser: Feature: restore pinned tabs when reopening

Created on 13 Oct 2017  路  4Comments  路  Source: qutebrowser/qutebrowser

Currently, the behavior of the pinned tabs is to make the spacing for the tabs smaller and also prevent closing the tab.

However, when closing and reopning qutebrowser, the pinned tabs is nowhere to be seen (unless using :wq which would also restore all tabs, not just pinned ones), so they are only partly persisted currently. I suggest implementing similar behavior to Firefox, where pinned tabs are restored when you open up the browser.

2 - low

Most helpful comment

Hmm, I didn't know that this was a feature in firefox. Just for reference, here are the tab settings in firefox.

2017-10-13-093654_503x175_scrot

I tend to use the last option everywhere, to save/restore all my tabs on every platform. IMO, firefox is a bit confusing here, since "Show a blank page" and "Show your home page" don't imply that pinned tabs are saved at all, it implies that only a blank/home page shows up (which is not what happens).

Qutebrowser pinned tabs are more powerful in that they can be positioned anywhere in the tabbar, unlike in firefox. Here's my tabbar right now for example:

2017-10-13-094029_1919x37_scrot

If I was to close non-pinned tabs, only (to emulate this behavior on startup, I would get this):

2017-10-13-094319_999x36_scrot

Which looses the implicit information that I had with some of the pinned tabs being on the left, and others being on the right.

If you would like to mirror firefox's "show windows from last time" option:

:set auto_save.session true

Because this behavior is present in firefox (and people are used to it), maybe we should add a setting such as auto_save.session.filter which could be set to pinned to only save pinned tabs (during auto-save). I don't think it's a good idea to have it on by default due to loosing information (perhaps this won't be a problem if #2898 is implemented well).

All 4 comments

cc @jgkamat

Hmm, I didn't know that this was a feature in firefox. Just for reference, here are the tab settings in firefox.

2017-10-13-093654_503x175_scrot

I tend to use the last option everywhere, to save/restore all my tabs on every platform. IMO, firefox is a bit confusing here, since "Show a blank page" and "Show your home page" don't imply that pinned tabs are saved at all, it implies that only a blank/home page shows up (which is not what happens).

Qutebrowser pinned tabs are more powerful in that they can be positioned anywhere in the tabbar, unlike in firefox. Here's my tabbar right now for example:

2017-10-13-094029_1919x37_scrot

If I was to close non-pinned tabs, only (to emulate this behavior on startup, I would get this):

2017-10-13-094319_999x36_scrot

Which looses the implicit information that I had with some of the pinned tabs being on the left, and others being on the right.

If you would like to mirror firefox's "show windows from last time" option:

:set auto_save.session true

Because this behavior is present in firefox (and people are used to it), maybe we should add a setting such as auto_save.session.filter which could be set to pinned to only save pinned tabs (during auto-save). I don't think it's a good idea to have it on by default due to loosing information (perhaps this won't be a problem if #2898 is implemented well).

^ that's exactly what I was looking for. Thanks @jgkamat

I just learned that :session-save exists, with which I can save all the pins.
I don't want to auto-restore windows, just the pinned tabs.

Is there a way to automatically execute something like :session-load pins at startup., where pins is the name of the session only containing the pinned tabs I want?

Also +1 for the auto_save.session.filter to be implemented for only saving pinned tabs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

The-Compiler picture The-Compiler  路  3Comments

mhep picture mhep  路  3Comments

The-Compiler picture The-Compiler  路  3Comments

martingabelmann picture martingabelmann  路  3Comments

Chinggis6 picture Chinggis6  路  4Comments