feature: Tab movement to different Browser instances - #61
Open
dotWee wants to merge 2 commits into
Open
Conversation
Move the frontmost browser tab to another browser from the menu bar or a recordable global shortcut. Reuse the existing picker for the destination and close the original tab only after a successful open. Support Safari and Chromium-family browsers through Apple Events, and ask for Automation permission on first use. Document the flow, supported browsers, and limitations in the readme.
dotWee
force-pushed
the
feature/browser-tab-switching
branch
from
August 15, 2026 18:13
8f1c4d1 to
676c0fd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Starting off with a use case:
Sometimes a tab is open in one browser (Chrome, Brave, etc) and it belongs in another (Safari, Edge).
Solving the via copy-pasting the tab url to another browser is easy, but AppleScript can this do too - I've used some hand-rolled AppleScript for most of the time: read the current tab URL, open it in the other browser, then close the original tab.
This PR builds that flow into Browserino. Trigger it from Move Current Tab... in the menu bar, or from a recordable global shortcut.
Browserino reads the frontmost (scriptable) browser’s current tab URL, shows the existing picker for the destination, opens the URL there, and closes the source tab only after that open succeeds.
Canceling the picker leaves the original tab alone. Shift / Shift+Return still opens the destination in private mode. Closing the source tab can be turned off under Preferences -> General -> Tab switching.
Short description how
The picker and
NSWorkspaceopen path are unchanged. What is new is pulling a URL out of another app and optionally closing that tab.tell application id "..."), not localized app names. Safari:URL of current tab of window 1. Chromium family:URL of active tab of window 1.Moving from …, host-matched Apps hidden, source browser omitted, hidden browsers not offered. Empty destination list → alert, not an empty picker.Scriptable sources: Safari / Safari Technology Preview; Chrome, Brave, Edge (including Beta/Dev/Canary/Nightly variants); Opera, Opera GX, Vivaldi, Arc, Chromium.
Not moved: empty URLs and start pages, browsers with no windows, internal pages (
about:,chrome:,edge:,brave:,safari:,opera:,vivaldi:,chrome-extension:,edge-extension:). Firefox and other non-scriptable apps are out of scope. Only the URL is transferred — not cookies, history, or session.macOS asks for Automation permission the first time Browserino controls a source browser (read + close). Denied access shows an alert with a link to System Settings -> Privacy & Security -> Automation. Opening the destination still uses Launch Services, so the destination does not need Automation access.
Also documents the existing feature set and this flow in the README.
Love the work on Browserino! Hope you know Browserino is even recommended by the fellow Browserosaurus creator :) Cheers and greets from Zurich!