Split Groups

by Fuad Laguda
5
4
3
2
1
Score: 50/100

Description

Obsidian Bases view that puts a note in every group its list property names

Reviews

No reviews yet.

Stats

1
stars
196
downloads
1
forks
6
days
1
days
1
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
1
total issues
0
open issues
1
closed issues
15
commits

Latest Version

2 days ago

Changelog

Each group heading now has a + that makes a new note with that group's value already filled in, through the same new-note flow as the base's own New button. Code cleanups from Obsidian's review rules, which now run on every release. Needs Obsidian 1.10.2 or later.

README file from

Github

Split Groups

A view for Obsidian Bases that puts a note in every group its list property names.

Group a Base by a list property today and a recipe with category: [main, side] lands in one combined group called "main, side". With Split Groups it appears under main and again under side, which is what most people expect. This is the behaviour asked for in the forum thread Make a note fall into multiple groups.

Obsidian's own grouping puts Jollof Rice in one "main side" group; Split Groups shows it under main and again under side

Use it

  1. Open a Base, open the view menu and add a view of type Split groups.
  2. In the view options, set Split by to the list property to group on.
  3. Pick Table or List under Layout. Columns come from the view's properties, as in any Base.

How values are grouped

  • Every item in a list gets its own group. A single value works too.
  • Main, main and main are one group, shown with the spelling seen first.
  • Links group by the note they point to: [[Main]], [[Recipes/Main.md]], [[Main|Main dish]] and plain main share a group.
  • A tag's leading # is dropped.
  • The same value twice in one note counts once.
  • Notes with nothing in the property go to (no value) at the end. Turn that off with Show notes with no value.
  • Groups sort by name, numbers naturally (2 before 10). Notes inside a group keep the Base's own sort.
  • Sort in the view options flips group order between A → Z and Z → A. (no value) stays last either way.
  • Until a property is chosen under Split by, the view shows all its notes in one list.
  • Obsidian's own Group by (under Sort) has no effect on a Split groups view. Use Split by instead.

If you turn the plugin off, Split groups views show "Unknown view type" until you turn it back on or switch that view to Table. Your notes are never changed.

Click a note to open it, Ctrl or Cmd click (or middle click) for a new tab, and Ctrl or Cmd hover for a preview.

Try it

test-vault is a small vault with recipes and edge cases (links, case, duplicates, empty lists, numbers). Open it in Obsidian, build the plugin, and open Recipes.base or Edge.base. npm run bulk adds 3,000 generated notes and Bulk.base for a speed check.

Build

npm install
npm run build   # type checks, bundles main.js, copies it into test-vault
npm test        # unit tests for the grouping rules

Licence

MIT, Fuad Laguda.