by shadowlink
Browser-style tab groups: group, name and color tabs, collapse/expand groups, and close a group to reopen it later.
Tabular Grouping
Browser-style (Chrome / Brave / Firefox) tab groups for Obsidian, on desktop, tablet and phone.
- Group tabs: right-click a tab and pick Add tab to new group or Add tab to group.
- Name and color: double-click the group chip, or right-click it and pick Edit name and color. There are 9 colors.
- Collapse/expand: click the chip. The group's tabs hide, and the chip shows how many tabs are in it.
- Save and close groups (like Brave): right-click a chip and pick Save and close group, or middle-click the chip. The archive button in the tab bar shows how many groups are saved. Its dropdown lets you restore a whole group, open just one of its tabs, or delete it.
- Any tab can be grouped: notes, canvas, graph, plugin views, and tabs in the left and right sidebars (sidebar chips are smaller). A saved sidebar group reopens in the same sidebar.
- Behaves like a browser:
- Drag a tab out of a group and it leaves the group. Drag a tab between two grouped tabs and it joins.
- A new tab opened from a grouped tab joins that group (you can turn this off).
- If you collapse the group you're working in, Obsidian switches to the nearest tab outside it.
- If a tab in a collapsed group gets opened (quick switcher, link, etc.), the group expands.
- Drag and drop: drop a tab onto a group's chip to add it. Drag a chip to move the whole group, with the same insertion bar Obsidian shows for tabs.
- Tab-bar button (next to +): one menu to group the current tab, collapse/expand the groups in that bar, group all tabs by folder, and reopen closed groups.
- Group all tabs by folder: every folder with 2 or more open tabs becomes a group named after the folder.
- Ctrl+Tab skips collapsed groups, like browsers do.
- Hover a chip to see the tabs inside it. Right-click a chip and pick Collapse other groups to focus on one.
- Accidentally closed tabs come back: grouped tabs closed outside the plugin (Close all, closing a window, a crash) show up under Recently closed in the archive dropdown, with a Restore button in the notice. They're kept for 7 days.
- Commands (you can bind hotkeys to them): add to new group / add to group, remove from group, collapse/expand current, collapse all, expand all, rename, new tab in group, ungroup, close group, reopen closed group.
Groups are saved in the plugin's data.json and are linked to Obsidian's tab ids, which stay the same after a restart.
Phone and tablet
- Tablet: same tab bar as desktop. Tap a chip to collapse/expand it, and long-press a chip for its menu. Touch can't drag groups, so the chip menu has Move group left/right.
- Phone (Brave-mobile style, in the tab switcher you open with the tab-count button):
- An expanded group's cards get a ring in the group's color, and its first card shows a label with the group's name. Tap the label to collapse, or tap ⋯ for options. Cards stay two to a row, so groups never leave gaps.
- A collapsed group becomes one card showing its tabs. Tap it to expand, tap its × to save and close the group, or long-press it for options.
- Long-press a tab card → Add to tab group to group it.
- The group button next to + in the switcher's bottom bar has the current tab's group options, all groups, and saved, recently closed and other-device groups.
Several devices
If your vault syncs between devices (Obsidian Sync, Syncthing, iCloud...):
- Each device keeps its own open groups, since each device has its own open tabs. One device never closes or changes another device's groups.
- Saved and recently closed groups are shared: save a group on your computer and restore it on your phone.
- Open on other devices: the saved-groups dropdown lists the groups your other devices have open. Pick one to open it here as a group, or open just one of its tabs.
- Name each device in the plugin settings, so the list is easy to read.
Install
From Community plugins (once it's approved): Settings → Community plugins → Browse → search Tabular Grouping.
With BRAT (before approval, or for beta versions): install the BRAT plugin, run BRAT: Add a beta plugin for testing, and enter Shadowlink117/tabular-grouping.
Manually: download main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/tabular-grouping/, then turn on Tabular Grouping under Settings → Community plugins.
Build from source
npm install
npm run build
mkdir -p <vault>/.obsidian/plugins/tabular-grouping
cp main.js manifest.json styles.css <vault>/.obsidian/plugins/tabular-grouping/
Then turn on Tabular Grouping under Settings → Community plugins.
To rebuild automatically while you work:
OBSIDIAN_PLUGIN_DIR=<vault>/.obsidian/plugins/tabular-grouping npm run dev
Develop
npm testruns unit tests for the logic that tracks drags, joins and contiguity (src/reconcile.ts) and for merging copies ofdata.jsonfrom several devices (src/store.ts).src/main.tsis the Obsidian glue: rendering, menus, commands and modals.src/switcher.tsdraws groups in the phone tab switcher.- Mobile can be tried on desktop with
app.emulateMobile(true)in the dev console (phone layout needs a narrow window).
Limitations: the plugin relies on a few undocumented Obsidian internals (the tab container's insertChild/removeChild, onOpenTabHeaderMenu, and the phone tab switcher's markup). In stacked-tabs mode the tabs show their group color, but you can't collapse the group.
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.