jscher2000 / switch-to-previous-active-tab

Firefox toolbar button to switch to the last accessed tab (and MRU popup)
Mozilla Public License 2.0
8 stars 1 forks source link

Please add basic keyword search #19

Open trlkly opened 4 months ago

trlkly commented 4 months ago

Your addon almost completely replicates Chrome's tab dropdown menu. I use this feature all the time in Chrome, and need a replacement in order to move to Firefox.

But it is missing one thing: keyword search. And, yes, I know you can search tabs in the URL bar, but it is far less convenient. It limits the number of search results, and you have to press an extra button.

It would be much better if it were part of your addon. Just a basic space-delimited keyword search would work. Just take whatever words we type in, and do a quick conversion to a Regex (/keyword1|keyword2/i, and then move the matching results to the top of the list.

trlkly commented 4 months ago

Extra note: Firefox is likely to get an influx of Chrome users once it switches over to MV3, and people who use Chrome's tab drop down will probably find your extension. I'm probably not the only one who will ask for you to add a quick search.

jscher2000 commented 4 months ago

I think I understand how you want the search to work; I would crib from https://addons.mozilla.org/firefox/addon/show-history-top-sites-button/.

However, lists are currently limited to the 20-30 most recently accessed tabs. That was done because the focus was on the most recently visited tabs and I didn't want to make it too slow to show the list (the extension stores tab IDs and the list entries are generated on demand). So unless I change that, any filter/search feature would be limited to the most recently visited tabs.

Would that still be useful, or do I need to make it possible to list and search across all open tabs in order to make search useful? I had always expected to make the number of list items user configurable, so maybe it's time to implement both feature.

trlkly commented 4 months ago

As long as it's an option, it would be fine.

May I suggest that, if you need to speed it up, you do some sort of lazy loading? If 20 is fine, then load the first 20, display results, and then keep on loading?