feat(extensions): Bear Split — side-by-side split view (Arc gap closure) - #155
Merged
Conversation
…closure)
extensions/bear-split/ — MV2 WebExtension for LibreWolf/Firefox:
manifest.json:
- CMD+SHIFT+\ / Ctrl+Shift+\ keyboard shortcut to open split view
- browser_action toolbar button
- web_accessible_resources: split.html
- gecko id: bear-split@bearbrowser.local
background.js:
- commands.onCommand("open-split"): opens split.html?left=<current-url>&right=about:blank
- browserAction.onClicked: same; takes current tab URL as left pane seed
split.html (fully self-contained, no external deps):
- Two URL bars (LEFT/RIGHT labels) + two iframes side by side
- Draggable divider: mousedown → mousemove adjusts flex widths; iframes
get pointer-events:none during drag to prevent event capture
- Min pane width 80px; divider highlights teal (#39C5CF) on hover/drag
- URL input: Enter or Go button navigates; auto-prefixes https:// if no scheme
- sandbox: allow-scripts allow-forms allow-same-origin allow-popups allow-downloads
- Memory mesh ping on open + on each navigation (POST localhost:7788/api/append)
icons/split-48.svg:
- Two rectangles with dashed center divider, brand teal
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
Arc's split view is one of its most-used productivity features. Bear Split closes that gap.
CMD+SHIFT+\(orCtrl+Shift+\on Linux) opens the current tab in a split view with the same URL on the left and a blank pane on the right. Navigate each pane independently.Features
https://POST localhost:7788/api/appendsplit.htmlhas all CSS and JS inline, zero external assetsLoad
about:debugging→ This Firefox → Load Temporary Add-on →extensions/bear-split/manifest.jsonThen: toolbar button or
CMD+SHIFT+\Test plan