New Note Fixer

approved

by Michael Naumov

Unifies the way non-existing notes are created when clicking on their links.

★ 13 stars↓ 4,982 downloadsUpdated 12d agoMIT

New Note Fixer

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

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]] respects Settings → Files and links → Default location for new notes.
  • [[folder/non-existing-note]] ignores that setting entirely and creates the note at the vault root, under folder/.
  • [[../folder/non-existing-note]] creates a file outside the vault, does not open it, and on the second click reports the misleading error Folder 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.

Without the plugin: a new note lands at the vault root

More screenshots
With it: your default location for new notes is honored Without the plugin: a new note lands at the vault root With it: your default location for new notes is honored

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:

  1. Running the New Note Fixer: Open demo vault command.
  2. Downloading new-note-fixer-demo-vault.zip from the Releases. It unzips into a single new-note-fixer-demo-vault-<version> folder.
  3. 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 the Folder already exists message that follows. 02 Relative link fix
  • Same folder as current file keeps 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:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button 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 in the DevTools Console:

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

Buy Me A Coffee

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

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.