Skip to content

vanadium23/obsidian-advanced-new-file

Repository files navigation

Obsidian Advanced New File

Obsidian Downloads

Obsidian Advanced New file is a plugin for Obsidian, that provide functionality to choose folder over note creation. The new note file is created with Untitled.md filename just to provide same behavior as default Obsidian.

The plugin is heavily inspired by Note refactor and similar extension for Vs Code.

Features

Hint: you can set command advanced new file to shortcut like Ctrl/Cmd + Alt + N.

Spawn command advanced new file and choose directory. Then you can type full path to file.

Custom File Extensions

The plugin now supports creating files with custom extensions! When you specify a filename with an extension, the plugin will create the file with that exact extension. If no extension is provided, it defaults to .md.

Examples:

  • my-canvas.canvas → creates my-canvas.canvas (Obsidian Canvas file)
  • data.json → creates data.json (JSON file)
  • script.js → creates script.js (JavaScript file)
  • myfile → creates myfile.md (defaults to Markdown)

This is particularly useful for creating Canvas files (.canvas), which are commonly used in Obsidian for visual note-taking and mind mapping.

Desktop.MacOS.demo.mp4

How to develop

  • Clone this repo.
  • npm i or yarn to install dependencies
  • npm run dev to start compilation in watch mode.

Manually installing the plugin

  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/your-plugin-id/.