This is a simple personal workflow explanation.

The average number of tabs I keep open is 4. The other day I accidentally closed the last tab and thus the Firefox window. I even hide all Firefox GUI elements so that the page takes the whole window. Yet, I never feel at a loss for how to find a page that I need. The secret is Tridactyl.

Tridactyl is a Firefox plugin that injects keyboard shortcuts on each page, which is why I started using it. I no longer needed to use the mouse on 99% of web pages that I visit. I still had dozens of tabs though.

I eventually noticed that the open and tabopen commands showed a list of websites based on the arguments that are being passed. What is happening here is that Tridactyl is taking your history and your bookmarks, concatenating them, and running a search on that list for any websites that match the arguments.

For example, ":open dockerfile args" will search that list for anything that matches "dockerfile" and "args". I usually get a list with a few items including the direct link to the "args" section of the dockerfile documentation. Very helpful.

From there it is just a matter of habit of closing tabs the moment you realize you don't need them anymore and then utilizing Tridactyl's history search when you later need something again.