README file from
GithubNew Note Fixer
Clicking a link to a note that does not exist yet creates it — and where it lands depends on which shape the link has, in ways Obsidian never explains:
[[non-existing-note]]respectsSettings → Files and links → Default location for new notes.[[folder/non-existing-note]]ignores that setting entirely and creates the note at the vault root, underfolder/.[[../folder/non-existing-note]]creates a file outside the vault, does not open it, and on the second click reports the misleading errorFolder already exists.
This plugin makes all three obey the setting you configured, so where a new note appears no longer depends on how the link that created it happened to be written.
Demo vault
The documentation is a demo vault. Every case has a note that explains what Obsidian does, what the plugin does instead, and a link you can click to watch it happen.
Start reading here — it is plain markdown, so it works on GitHub with nothing installed.
A copy of the vault ships with every release. You can access it via any of the following:
- Running the New Note Fixer: Open demo vault command.
- Downloading
new-note-fixer-demo-vault-<version>.zip(<version>is the release version) from the Releases. - Browsing its source in
demo-vault/in this repository.
What it does
- A link with a folder in it stops ignoring your default-location setting. 01 Subfolder link fix
- A link that climbs out of the vault (
../) stops creating files outside it, and stops theFolder already existsmessage that follows. 02 Relative link fix Same folder as current filekeeps working the way you would expect for every link shape. 03 Current note folder- Every setting, by the key it is stored under. 04 Settings
Installation
The plugin is available in the official Community Plugins repository.
Beta versions
To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:
- Ensure you have the BRAT plugin installed and enabled.
- Click Install via BRAT.
- An Obsidian pop-up window should appear. In the window, click the
Add pluginbutton once and wait a few seconds for the plugin to install.
Debugging
By default, debug messages for this plugin are hidden.
To show them, run the following command:
window.DEBUG.enable('new-note-fixer');
For more details, refer to the documentation.
Changelog
All notable changes to this project will be documented in the CHANGELOG.
Contributing
Contributions are welcome — see CONTRIBUTING to get set up.
Support
My other Obsidian resources
See my other Obsidian resources.