alfred-firefox icon indicating copy to clipboard operation
alfred-firefox copied to clipboard

Open bookmark or switch if open

Open itainoam opened this issue 4 years ago • 4 comments

Many times I have multiple tabs with the same page opened. With many tabs open it's easier to open a new tab than search for an existing one.

It would be nice if there was an option to open a bookmark in a new tab, unless it's already open. In that case switch to it. What do you think?

itainoam avatar Jun 28 '20 17:06 itainoam

With many tabs open it's easier to open a new tab than search for an existing one.

How so? I don't think the tab command is any harder, or slower, to use than the bm one.

deanishe avatar Jun 28 '20 22:06 deanishe

I meant that sometimes you don't know if you have a certain page open. First step is to search for it in the open tabs. Second step, if you don't find it there, use the bookmark command to create a new tab. My suggestion is for a single command to do both. Open bookmark in a new tab, but if already exists switch to it (and not open additional identical tab).

itainoam avatar Jun 29 '20 06:06 itainoam

My suggestion is for a single command to do both

IMO, it would make more sense to have the tab search fall back to searching bookmarks if no matching tabs are found. That's also problematic, but not as much as adding tabs to the bookmarks search.

I can't see myself changing the bookmarks search to consider tabs in any way because it would break the simple, customisable, script-based mechanism for opening URLs.

deanishe avatar Jun 29 '20 20:06 deanishe

I'd like to have this too. Let me describe my use case. I have a function key trigger to open a bookmark. I'd like it to switch to a tab, if it exists, with the same URL as the bookmark, instead of opening a new one. If a matching tab does not exist, then open a new tab with that bookmark. Is this now maybe easier / possible with Alfred 5?

trickyslip avatar Nov 22 '22 17:11 trickyslip