lemon6951k downloadsCreates missing linked files and detects missing wiki links.
English | 中文
An Obsidian plugin that detects and creates missing markdown files from links in your notes.
[[filename]][[filename|alias]][[path/to/filename]]![[filename]][[resources/books/filename]]| Command | Description |
|---|---|
| Create Files for Unresolved Links in Current File | Check the links in the currently open Markdown document and automatically create any missing linked files. |
| Scan Folder and Create Missing Files | Scan all Markdown files in the folder of the currently open document, detect their linked references, and automatically create any missing files. |
| Manage File Creation Rules | Open the rule management panel to create and edit file creation rules. |
Access these commands through the Command Palette (Ctrl/Cmd + P).
[[links]] in the editorIn the plugin settings, you can:
Set a default folder path for new files:
Enable notifications for file creation events
Add aliases to frontmatter: Whether to automatically add aliases from links to frontmatter (can be disabled when using with Templater)
Enable debug mode for troubleshooting (developers)
The rule system allows you to automatically determine where new files are created and which templates to use based on filename patterns.
When creating rules, you can use different condition types to create flexible matching logic:
These conditions can be combined to build complex matching logic. For example, you can create a rule that matches "filenames containing 'character' but not starting with 'NPC'".
The plugin now supports using templates to create new files:
When using templates, you can specify how aliases from links should be handled:
When used with Templater, the following variables are automatically passed to templates:
{{filename}}: Filename without path and extension{{path}}: Complete file path{{aliases}}: List of link aliases, comma-separatedIn Templater templates, you can access these variables through TP.file.title, tp.file.path, etc., or use the following method:
<%*
// tp.frontmatter is used to access the source file's frontmatter
// Get passed aliases
const aliases = tp.frontmatter.aliases;
%>
Write notes with links to files you plan to create later:
I need to research [[Ancient Rome]] and its connection to [[Byzantine Empire|Byzantium]].
Also check characters [[Caesar]] and [[Pompey]].
Set up a rule to place all files containing "character" in the "Characters" folder and use the "character" template
When ready to create these files:


The rule system supports matching files based on source file frontmatter properties:
When creating files, the plugin considers:
Goal: Automatically organize character, location, and plot notes for fiction writing
Rule Setup:
- [[Attack on Titan-Character—Eren Yeager|Eren Yeager]]
Eren Yeager is the protagonist of "Attack on Titan," a young man filled with determination and a desire for revenge. Living in a world surrounded by massive walls, his mother's death during a Titan attack motivates him to join the Survey Corps and fight against the Titans with strong resolve. Later, he discovers his ability to transform into a Titan and inherits the powers of the "Attack Titan" and the "Founding Titan." Eren's personality gradually evolves from a straightforward, passionate youth to a complex and contradictory figure whose choices profoundly influence the direction of the story.
- [[Attack on Titan-Character—Mikasa Ackerman|Mikasa Ackerman]]
Mikasa Ackerman is Eren's childhood friend and protector, known for her remarkable combat skills and loyalty to Eren. She is a descendant of the Ackerman family, possessing extraordinary strength and reflexes beyond normal humans. After her parents were murdered when she was young, Eren saved her, and from then on, she regarded him as family, vowing to protect him. Mikasa is calm and decisive, but often shows emotion when Eren's safety is threatened. She is considered one of the strongest warriors in the series.
Effect:
[[Attack on Titan-Character—Eren Yeager|Eren Yeager]], [[Attack on Titan-Character—Mikasa Ackerman|Mikasa Ackerman]] and similar linksTemplater-M02:1001-Attack on Titan-Character.md templateAnime/Attack on Titan/Attack on Titan-Characters
- [[Attack on Titan-Event—The Fall of Shiganshina|The Fall of Shiganshina]]
- The story of "Attack on Titan" revolves around the adventures of Eren Yeager, Mikasa Ackerman who was taken in by his family, and their childhood friend Armin Arlert. After Wall Maria, which protected their hometown, was destroyed by the Colossal Titan and the Armored Titan, Eren witnessed his mother being devoured by a Titan and vowed to exterminate all Titans.
- [[Attack on Titan-Event—Battle of Trost District-draft]]
- Eren, Mikasa, and Armin joined the Training Corps and graduated five years later. At this time, Titans attacked Trost District near the second wall again. During the subsequent battle, Eren discovered his ability to transform into a Titan and successfully defended the district. This caught the attention of Survey Corps Commander Erwin Smith, who utilized Eren's power to reclaim Wall Maria and placed him under the supervision of Captain Levi and Squad Leader Hange.
Effect:
[[Attack on Titan-Event—The Fall of Shiganshina|The Fall of Shiganshina]], [[Attack on Titan-Event—Battle of Trost District-draft]] and similar links
[[Attack on Titan-Event—The Fall of Shiganshina|The Fall of Shiganshina]]matches both conditions in the rule, will be created with the template and assigned to the specified locationTemplater-M02:1002-Attack on Titan-Event.md templateAnime/Attack on Titan/Attack on Titan-Events[[Attack on Titan-Event—Battle of Trost District-draft]]matches Condition 1, but doesn't satisfy Condition 2 as it contains "draft"TODO
Goal: Organize notes based on source file frontmatter
Rule Setup:
---
title: Attack on Titan Research Notes
series: Attack on Titan
creator: Hajime Isayama
categories:
- Anime Analysis
- Character Analysis
status: ongoing
---
- [[Eren Yeager Character Analysis]]
Effect:
[[folder/file]]) will be created in those locationsIf you encounter any issues, please report them on the GitHub repository.
During document editing (e.g., "novel writing"), an article often exceeds 3,000 words, and many links, such as [[Character Profiles]] or [[Task List]], are created during the writing process. However, these files may not have been created yet. With this plugin, you can quickly generate the corresponding files without manually creating them one by one, improving efficiency.
Through the rule system and template support, the plugin can greatly improve file management efficiency, allowing you to focus on content creation rather than file organization.
Q: Why aren't my links being detected?
A: Make sure the link format is correct. This plugin supports Wiki links in the [[link]] format, not standard Markdown links [text](link).
Q: How do I avoid duplicate aliases when creating files?
A: When using Templater, it's recommended to select "Skip" for alias handling in rules, letting Templater handle aliases to avoid duplication.
Q: How do I apply different templates to different types of notes?
A: Create multiple rules with different matching conditions (such as filenames containing specific keywords), and specify different templates for each rule.
Q: How do I change the priority of created rules?
A: In the rule management interface, use the up/down buttons next to each rule to adjust rule order. Rules at the top of the list have higher priority.
Q: Can I use regular expressions in matching conditions?
A: Yes, you can select the "regex" match type to use regular expressions for more complex pattern matching.