Split by Heading

approvedunreviewed

by siulved54

Split a note into one note per heading, with links back in the source.

↓ 49 downloadsUpdated 16d agoMIT

Split by Heading

Split a note into one note per heading, with links back in the source.

A note split into three notes, with links where the sections were

Usage

Two commands, both in the command palette:

  • Split note by headings (pick level): choose a heading level (the picker shows how many notes each level makes) and every heading of that level becomes its own note. Deeper headings stay inside their note.
  • Split note here (heading above): splits only the section under the nearest heading above the cursor.
  • Merge linked notes back into this note: the reverse. Every line that holds only a link or embed of another note is replaced by that note's text under a heading named after the note, one level below the heading above it (level 2 when there is none). Select some lines to merge only those. The merged notes are kept unless you turn on "Trash notes after merging them back". One Undo restores the links.

Each new note is named after its heading (characters Obsidian rejects are removed; a taken name gets " 2", " 3"), holds the text under the heading, and sits next to the source note or in the folder you choose. Where a section was, the source gets a link, an embed or nothing, as you choose in the settings. Text before the first heading, front matter and code blocks are left alone.

The source note is changed in one editor step, so Undo brings it back; the new notes stay and can be deleted. If the note changes while the files are being created, nothing is touched.

Links from other notes to a heading or block of the source ([[Note#Heading]], [[Note#^id]]) are not rewritten and will need updating. If you choose a different folder, relative Markdown links inside the moved text ([x](../file.md)) are not rewritten either; wikilinks keep working.

To pull out just a selection, or to merge notes, use Obsidian's core Note composer.

Installation

In Obsidian, open Settings → Community plugins → Browse and search for "Split by Heading".

More plugins by Siulved54

PluginWhat it doesSource
Shared BlocksWrite a block of text once and reuse it in any note. Edit the source and every reference re-renders live.shared-blocks
Text Case and CleanupChange case, make camelCase or slugs, sort lines and remove duplicates, and repair text pasted out of a PDF, without touching code or URLs.text-format
Typography as You TypeCurly quotes, dashes and ellipses as you type, kept out of code and maths, with Backspace to take one back.smart-typography-plugin
Section NumberingNumber headings as an outline (1, 1.1, 1.2) and keep every link to them working when they renumber.section-numbering
Spreadsheet to TablePaste cells from Excel or Google Sheets as a Markdown table with a real header, insert CSV files, and copy tables back out.spreadsheet-to-table
Hybrid Line NumbersRelative and hybrid line numbers for Vim-style jumps, where a folded section counts as one line.hybrid-line-numbers
List Item CalloutsColour a single list item as a callout by starting it with a character such as &, ! or ?.list-item-callouts
Folder CountsSee how many notes or files each folder holds, right in the file explorer, with a vault total and folder exclusions.folder-counts
Note Reading TimeReading time of the current note or your selection in the status bar, optionally saved to a property.note-reading-time
Task RolloverRoll unfinished tasks from your last daily note into today's when it is created, with a real undo.task-rollover
Zoom Into SectionZoom into a heading or list item to see only it and its contents, with a breadcrumb bar to climb back out.zoom-into-section
Link Title on PastePaste a web address and get a Markdown link with the page's title, fetched in the background and undone in one step.link-title-on-paste
Update RadarChecks your installed community plugins for updates in the background, shows what changed, and flags the ones that look abandoned.community-update-checker
Dataview to BasesConvert Dataview queries into Bases blocks, and see which queries in your vault can be converted.dataview-to-bases
Line Editing CommandsDuplicate, join, sort and reverse lines, insert blank lines and jump to a line number, with multi-cursor support.line-editing-commands
Note Mover RulesMove notes into folders by ordered rules on tags, properties, titles and paths, with a preview before any bulk move.note-mover-rules
Tab HistoryKeeps each tab's back and forward history across restarts, and adds commands to move, maximize and close tabs.tab-history
URL CardsShows web addresses as cards with title, description and image, and reads existing cardlink blocks.url-cards
Vim ConfigLoads a vimrc-style file from your vault so your key mappings and editor commands are ready when vim mode starts.vim-config
Task ArchiveMoves completed tasks, with their sub-items, into an archive section or note.task-archive
Revisit LaterLink the current note into a future daily note, with a date typed in plain English, so it comes back when you want to review it.revisit-later
Explorer Colors PlusColor files and folders in the file explorer, with a palette, cascading to children, and import from File Color.explorer-colors-plus
Book LookupCreate book notes from Open Library or Google Books, with cover images, ISBN search and Book Search compatible templates.book-lookup
Web Search MenuSearch the web for selected text or the note title from the right-click menu, with engines you define.web-search-menu
Word LookupLook up any word in a sidebar dictionary with definitions, phonetics, synonyms and antonyms, or create a note for it.word-lookup
Quick TranslateTranslate the selection or a whole note into another language with no account, keeping links, code and front matter untouched.quick-translate
Dice RollsInline dice rolls you click to reroll, in Live Preview and Reading view, with full dice notation, a roll dialog and a roll history. Reads Dice Roller notes.dice-rolls
Claude StudioNotion-style AI writing, chat and vault tools powered by your local Claude Code CLI.claude-studio
Book StudioTurn notes into a print-ready paperback PDF and an EPUB 3, entirely on your device.book-studio
Emoji SearchInsert emojis from a searchable picker or by typing a :shortcode.emoji-search
Inline TOCShow a live table of contents inside any note with a toc code block, or insert a plain Markdown one.inline-toc
Run Code BlocksAdds a Run button to code blocks and shows the output right below, for JavaScript, Python, shell and more.run-code-blocks
Canvas FinderFuzzy-search the cards and files on a canvas and jump straight to the match.canvas-finder
Folder Index NotesKeeps an index note in each folder up to date with links to the notes and subfolders inside it.folder-index-notes
Random Note FiltersOpen or link a random note from a folder, tag, property or the current search results.random-note-filters

All of them are in the community directory: Settings -> Community plugins -> Browse, then search for the name. Demos and install links for every one: the catalog.

Follow new plugins and updates on X: @luenpereza

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.