Obsidian - Sublime Text
Based on Josh Plunkett's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
Dead gray links in Obsidian often come from migrated RealmWorks link spam and can create empty “dead” notes when clicked.
Briefing
Migrating a large knowledge base from RealmWorks into Obsidian often leaves behind thousands of “dead” links—references that point to templates or notes that no longer exist. The practical fix is to clean those links in bulk, and the workflow here uses Sublime Text as a fast, reliable text editor to search-and-replace across entire Obsidian vault folders.
The cleanup problem shows up immediately in Obsidian preview: links that were created automatically in RealmWorks appear gray (meaning they don’t resolve to real notes). When those links are clicked, they can generate empty notes with the same names—creating clutter and “dead notes” that don’t lead anywhere. Manually removing links one by one is workable for a few pages, but it becomes painfully inefficient when dealing with hundreds of articles and link spam.
Sublime Text is introduced as the bulk-edit tool. After downloading and installing it from sublimetext.com, the workflow starts by opening the folder that contains the Obsidian notes to be cleaned. From there, “Find in files” is used: paste the exact text (including the bracketed link syntax) that needs to be removed or changed, then run Replace across the folder. In the demo, removing a broken reference (e.g., “curse of strad” wrapped in Obsidian-style brackets) is done by replacing the bracketed form with plain text. The search reports how many matches were found and in how many files, and “Save all” applies the changes across the vault. Similar steps remove other unwanted references (like “brovia”), again using global replacement rather than editing each note.
The same mechanism can also update links in bulk—turning plain text into proper Obsidian links. A key caution is emphasized: replacing a generic word can unintentionally rewrite many unrelated instances. The safer approach is to target named entities (like “mum” as a specific topic) and to limit the operation to one or two folders at a time. The demo shows replacing occurrences of “mum” with a link to the “mum” topic, with the result immediately visible in Obsidian as links that now resolve correctly.
A second cleaning technique addresses pasted content from external websites. HTML copied from the web can bring along embedded links that point outside the vault. To keep everything self-contained inside Obsidian, the workflow uses a “paste without formatting/links” style shortcut (Control Shift V) after selecting and deleting the pasted block, producing clean text without the unwanted hyperlink markup.
Overall, the method is about speed and control: use Sublime Text’s folder-wide search-and-replace to remove dead links, convert selected terms into real Obsidian links, and strip external hyperlink clutter during paste operations—making the migrated vault readable again without spending days clicking through notes.
Cornell Notes
RealmWorks-to-Obsidian migrations can leave behind gray, non-resolving links that clutter a vault and can even trigger empty “dead” notes. Bulk cleanup is done with Sublime Text by opening the Obsidian vault folder and using “Find in files” to replace exact bracketed link text across many notes at once. The workflow supports both directions: removing broken links by replacing bracketed syntax with plain text, and fixing references by replacing a term with a properly formatted Obsidian link. Updating links in bulk requires caution—generic words can be replaced everywhere—so it’s best to target named entities and limit changes to a small set of folders. For pasted web content, using a “paste without formatting/links” shortcut (Control Shift V) prevents external HTML links from entering the vault.
Why do gray links become a bigger problem after migrating from RealmWorks into Obsidian?
How does Sublime Text speed up removing dead Obsidian links across many notes?
What’s the risk when using bulk replace to create links, and how is it mitigated?
How can bulk replace turn plain text into working Obsidian links?
How does the workflow prevent external website links from polluting an Obsidian vault during paste?
Review Questions
- When removing dead links in bulk, what exactly should be replaced (bracketed link syntax vs plain text), and what should it be replaced with?
- Why is it safer to bulk-replace named entities than generic words when converting text into Obsidian links?
- What does Control Shift V accomplish compared with a normal paste when importing content from a website?
Key Points
- 1
Dead gray links in Obsidian often come from migrated RealmWorks link spam and can create empty “dead” notes when clicked.
- 2
Bulk cleanup is fastest by using Sublime Text’s “Find in files” on the entire Obsidian vault folder rather than editing notes individually.
- 3
To remove broken links, replace the bracketed Obsidian link text with plain text (dropping the brackets).
- 4
To fix references, replace a targeted term with proper Obsidian link syntax so the term resolves to an existing note.
- 5
Bulk link creation is risky for generic words; prefer named entities and limit changes to a small number of folders.
- 6
When pasting from websites, use Control Shift V to avoid importing HTML hyperlinks and keep content self-contained inside the vault.