Create Note in Folder

by Mara-Li
5
4
3
2
1
Score: 58/100

Description

Category: File Management

The Create Note in Folder plugin allows you to create a new note within a specific folder based on your preferences. You can set the filename and template, which can include the folder name or date. The title of the note will be incremented if a file with the same name already exists.

Reviews

No reviews yet.

Stats

31
stars
14,671
downloads
2
forks
1,165
days
313
days
556
days
3
total PRs
0
open PRs
0
closed PRs
3
merged PRs
20
total issues
4
open issues
16
closed issues
37
commits

Latest Version

2 years ago

Changelog

1.12.4 (2024-10-31)

Bug Fixes

  • template: return undefined in case of plugin not found (971e6af)

README file from

Github

Turkish translation

Commands: Create note in folder

This plugin adds a new command to create a new note in a specific path.

To add a path, use the settings tab. It will ask you to select a path. The plugin will then create a new note in this path.

The main menu allows you :

  • To duplicate a command ;
  • To move the order for the quick-switcher command (only accessible using the enable for all folder options).

[!NOTE] If you want to create a path for the current folder, you can use the {{current}} variable in the path. The command will only work if you have a file opened in the current tab. You could also use the file-menu to use this command (this need to be enabled in the settings).

You can choose how per each folder :

  • The note is named with a filename and a possible template.
  • The note is created (in the current tab, in a new tab, windows or in a split view)
  • If the note must be focused after creation
  • If a template must be applied (using templater)
  • If you want a command in the file-menu

After adding the path, you can use the command "Create Note In Folder: {{commandName}}" to use the command.

Global settings

Global template

You can set / manage the default template for all folders in the settings tab.

The default template can be used in two ways :

  • A default template for all "non registered" folder (i.e. folder not in the settings tab)
  • A default template automatically applied when creating a new command, in case you use always the same settings for example.

To use the default template for all folder, you need to click on the enable button.

Quick Switcher

You can choose to enable the default template for all folder. In this case, the default template will be used for all folder not in the settings tab. It will allow you to enable:

  • A pseudo quick-switcher with using the command Create Note In Folder : Quick Switcher.
  • Filter this quick-switcher that remove the registered folder.

Custom variables

When creating files or folders, you can use custom variables in the path to customize the names. To use a variable, simply put its name between {{ and }}. For instance, if you have a variable named myVar, you can incorporate it into the path like this: {{myVar}}.

Remember that if the folder you're referencing doesn't exist yet, it will only be created when you use a variable in the path.

You have several naming options:

  1. Regular Expression (regex): Enclose the regex in //, e.g., /\d+-\d+/gi. This will match numbers separated by a dash, like {{/\d+-\d+/gi}}. Any folder name matching this regex will be replaced with the contents of that folder. For example, it allows you to create a file in a folder named 2021-01 by using the regex /\d+-\d+/gi in the path. This works for 2021-02, 2021-03, etc., as well. Without using the regex, you'd need a separate template for each folder.
  2. Strict String: Use a plain text string as is.
  3. Date Format: Utilize date formats based on moment.js, like YYYY-MM-DD, which would be replaced by the current date in the format 2021-01-01. This enables you to use dynamic dates in your paths, such as the folder of the current month by using YYYY-MM. Without this feature, you'd have to create individual templates for each month.

[!NOTE] Using this with the templater settings could you prevent to set-up in templater option a lot of folder.

Focusing

You can choose to totally not open a file that is created. In this case, the file will be created in the background. If you use a template, the templater API will be used, and you don't need to do anything.

With this settings, and if the incrementation is disabled, you can also choose to open the existing file instead of creating a new one.

[!NOTE] Enable the incrementation if you don't want to open the already existing file.

Per folder settings

About file name & template

You can choose to set a filename and a template. The template can be :

  • The folder name
  • A date, with the format based on moment.js.

In the case you choose to use a template, you don't need to set a filename. Moreover, you can choose how the template will be added :

  • Before the filename (if any)
  • After it. And you can set a separator.

The title will be incremented if a file with the same name already exists.

If you have the Templater plugin installed and configured, you can assign a template to a note. Once a note is created, the assigned template will be executed. This functionality enables you to replicate the behavior of "Folder Templates." However, because I permit the utilization of folder paths with variables, you gain a higher degree of flexibility.

[!NOTE] In other words, there is no necessity to individually add a template for each folder and you must prefer employ a custom variable instead.

Incrementing title

You can choose to increment the title if a file with the same name already exists. If this option is disabled, the plugin will open the existing file instead of creating a new one.

Advanced settings

The plugin allow you to focusing onto the inline title, mimicing the behavior of the Obsidian when creating a new file. However, with the {{current}} template, the methods used is a little "hacky", and could not work in some case. I used a timeout, by default, of 50ms to wait the creation of the file. If you have a slow computer, you can increase this value in the data.json file (in the .obsidian/plugins/create-note-in-folder folder). For that, you need to search the timeOutForInlineTitle variable in the file.

[!NOTE] If the variable is not present, you need to create it at the end of the file.

There is two way to edit/adjust this value:

{
  // (your settings are before)
  timeOutForInlineTitle: 50
}

This way will set the value for desktop and mobile to the same amount of time.

{
  // (your settings are before)
  timeOutForInlineTitle: {
    desktop: 50,
    mobile: 100
  }
}

Will set the value for desktop and mobile to different amount of time.

After changing the setting, you need to reload the plugin.

-—

Installation

  • From Obsidian's community plugins
  • Using BRAT using https://github.com/mara-li/create-note-in-folder
  • From the release page:
    • Download the latest release
    • Unzip create-note-in-path.zip in .obsidian/plugins/ path
    • In Obsidian settings, reload the plugin
    • Enable the plugin

🎼 Translation

  • English
  • French

To add a translation:

  1. Fork the repository
  2. Add the translation in the src/i18n/locales folder with the name of the language (ex: fr.json).
    • You can get your locale language from Obsidian using obsidian translation or using the commands (in templater for example) : <% tp.obsidian.moment.locale() %>
    • Copy the content of the en.json file in the new file
    • Translate the content
  3. Edit i18n/i18next.ts :
    • Add import * as <lang> from "./locales/<lang>.json";
    • Edit the ressource part with adding : <lang> : {translation: <lang>}

Credit

Many thanks to @SilentVoid13 and @RafaelGB for their Templater and dbFolder, where some part of the code where taken.


Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
KOReader Sync
4 years ago by Federico "Edo" Granata
Obsidian.md plugin to sync highlights/notes from koreader
Power Search
4 years ago by Aviral Batra
Auto Note Mover
4 years ago by faru
This is a plugin for Obsidian (https://obsidian.md).
Digital Garden
4 years ago by Ole Eskild Steensen
Waypoint
4 years ago by Idrees Hassan
Obsidian plugin that gives you the power to generate dynamic MOCs in your folder notes. Enables folders to show up in the graph view and removes the need for messy tags!
Zotero Desktop Connector
4 years ago by mgmeyers
Insert and import citations, bibliographies, notes, and PDF annotations from Zotero into Obsidian.
Book Search
4 years ago by anpigon
Obsidian plugin that automatically creates notes by searching for books
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
Weread Plugin
4 years ago by hank zhao
Obsidian Weread Plugin is a plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.
PodNotes
4 years ago by Christian B. B. Houmann
PodNotes is a plugin for Obsidian that helps the user write notes on podcasts.
New Note Content Pusher
4 years ago by Henry Gustafson
An Obsidian plugin to add (prepend or append) specified content to a note (existing or new) without opening another pane.
Old Note Admonitor
3 years ago by tadashi-aikawa
Dynbedded
3 years ago by Marcus Breiden
Embed snippets, templates and any linkable by delegating the current scope to the embedded file either by using a direct reference or as reference with date naming format relative from today.
Daily Notes Editor
3 years ago by boninall
A plugin for you to edit a bunch of daily notes in one page(inline), which works similar to Roam Research's default daily note view.
Hidden Folder
3 years ago by ptrsvltns
obsidian plugin for hidden folder
Audio Notes
3 years ago by Jason Maldonis
Easily take notes on podcasts and other audio files using Obsidian Audio Notes.
Awesome Reader
3 years ago by AwesomeDog
Make Obsidian a proper Reader.
Source Code Note
3 years ago by Waiting
The obsidian plugin can help you organize source code note easily.
OZ Calendar
3 years ago by Ozan Tellioglu
Advanced Merger
3 years ago by Anto Keinänen
Colorful Note Borders
3 years ago by rusi
Tolino notes Importer
3 years ago by juergenbr
Obsidian plugin to import notes from a Tolino E-Reader
Quickly
3 years ago by Sparsh Yadav
Quick capture to obsidian note
Smart Rename
3 years ago by mnaoumov
Obsidian Plugin that helps to rename notes keeping previous title in existing links
Folder notes
3 years ago by Lost Paul
Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.
Auto Template Trigger
3 years ago by Numeroflip
An obsidian.md plugin, to automatically trigger a template on new file creation
Note archiver
3 years ago by thenomadlad
Hide Folders
3 years ago by JonasDoesThings
Toggle the visibility of folders in the Obsidian.MD file navigator based on name-patterns
Style Importer
3 years ago by Josh Rouwhorst
Obsidian.md plugin to import a stylesheet from a URL to the snippets folder.
Air Quotes
3 years ago by Alan Grainger
Plugin for Obsidian. Search and insert quotes from a source text as you type. This is great for reading a physical book or eReader while taking notes on a separate laptop or phone.
AI Tools
3 years ago by solderneer
Adding powerful semantic search, generative answers, and other AI tools to Obsidian, using Supabase + OpenAI.
ZettelGPT
3 years ago by Overraddit
Turbocharge Your Note-taking with AI Assistance
Easy Bake
3 years ago by mgmeyers
Compile many Obsidian notes down to one.
Voice
3 years ago by Chris Oguntolu
🔊 The Obsidian Voice plugin lets you listen to your written content being read aloud—mobile-friendly audiobook-like experience. 🎧
Quick note
3 years ago by James Greenhalgh MBCS
Create New note from right-clicking app icon
File Explorer++
3 years ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
Notes Sync Share
3 years ago by Alt-er
Sync and share (publish) your notes in your own private service.
iDoRecall
3 years ago by dbhandel
iDoRecall Obsidian plugin
Sets
3 years ago by Gabriele Cannata
Timeline View
3 years ago by b.camphart
Obsidian plugin for viewing your notes linearly based on a given property
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Multi Properties
3 years ago by fez-github
Plugin for Obsidian that allows user to add properties to multiple notes at once.
Zettelkasten Outliner
2 years ago by Tyler Suzuki Nelson
Spotify Link
2 years ago by Studio Webux
Obsidian.md Plugin to include the song or episode you're currently listening to in your note.
Are.na unofficial
2 years ago by 0xroko
Unofficial Are.na plugin for Obsidian
Custom Note Width
2 years ago by 0skater0
Set the line width for each note individually in Obsidian. Works with a slider, pill presets, YAML frontmatter and hotkeys.
Desk
2 years ago by David Landry
A desk for obsidian
R.E.L.A.X.
2 years ago by Syr
Regex Obsidian Plugin
Ollama Chat
2 years ago by Brumik
A plugin for chatting with you obsidian notes trough local Ollama LLM instead of Chat GTP.
YouTube Template
2 years ago by sundevista
📺 A plugin that would help you to fetch YouTube videos data into your vault.
Widgets
2 years ago by Rafael Veiga
Add cool widgets to your notes or your dashboard in Obsidian
Instapaper
2 years ago by Instapaper
Official Instapaper plugin for Obsidian
Create Task
2 years ago by Simon Knittel
Create tasks faster from anywhere.
Apple Books - Import Highlights
2 years ago by bandantonio
Import highlights and notes from your Apple Books to Obsidian
iCloud Contacts
2 years ago by Truls Aagaard
Obsidian plugin that imports contacts from iCloud and manages a note for each contact.
Protected Note
2 years ago by Mikail Gadzhikhanov
Plugin for Obsidian
Kindle Highlights Importer
2 years ago by MovingMillennial
Autogen
2 years ago by Aidan Tilgner
A plugin to use a language model to fill in parts of notes.
Confluence Sync
2 years ago by Prateek Grover
Obsidian plugin for obsidian confluence sync
Title renamer
2 years ago by Peter Strøiman
Obsidian plugin to keep title in markdown synced with tile name
Note Companion Folder
2 years ago by Chris Verbree
A Obsidian Plugin providing a way to associate a folder to a note
Moulinette Search for TTRPG
2 years ago by Moulinette
Plugin for Obsidian
Kinopoisk search
2 years ago by Alintor
Obsidian Kinopoisk plugin
Quick File Name
2 years ago by Wapply
This Obsidian plugin generates a note with an random string as file name.
Slurp
2 years ago by inhumantsar
Slurps webpages and saves them as clean, uncluttered Markdown. Think Pocket, but better.
Current Folder Notes
2 years ago by Pamela Wang
Shows notes in the current folder, useful for writing novels
Create List of Notes
2 years ago by Andrew Heekin
my anime list text exporter
2 years ago by XmoncocoX
a plugin who create an obsidian page for an anime with the data from my anime list.
Note Splitter
2 years ago by Trey Wallis
Split a note into individual notes based on a delimiter
Folder Periodic Notes
2 years ago by Andrew Heekin
BibTeX Manager
2 years ago by Akop Kesheshyan
Create literature notes in Obsidian from BibTeX entries, display formatted reference lists, and instantly generate citations.
Pinned Notes
2 years ago by vasilcoin002
Auto Folder Collapse
2 years ago by Dario Casciato
A plugin for Obsidian that automatically collapses all child folders when you collapse a parent folder. This helps keep your file explorer organized and clutter-free.
Truth Table+
2 years ago by Maximilian Schulten
This is the repository of an Obsidian.md plugin that allows users to create truth tables via the command palette.
Live Variables
2 years ago by Hamza Ben Yazid
Define variables in your note's properties and reuse them throughout your content.
Journaling
2 years ago by Ordeeper
View daily notes in a journal-like format, similar to Logseq. It enhances note organization and facilitates better reflection by consolidating daily notes into a continuous journaling view.
Print
2 years ago by Marijn Bent
Print your notes directly from Obsidian
Note Refactor
6 years ago by James Lynch
Allows for text selections to be copied (refactored) into new notes and notes to be split into other notes.
Smart Random Note
5 years ago by Eric Hall
A smart random note plugin for Obsidian
Icons
5 years ago by Camillo Visini
Add icons to your Obsidian notes – Experimental Obsidian Plugin
Folder Note
5 years ago by xpgo
Plugin to add description note to a folder for Obsidian.
Periodic Notes
5 years ago by Liam Cain
Create/manage your daily, weekly, and monthly notes in Obsidian
Prettier Format
5 years ago by Andrew Lisowski
Format obsidian.md notes using prettier
Dice Roller
5 years ago by Jeremy Valentine
Inline dice rolling for Obsidian.md
Admonition
5 years ago by Jeremy Valentine
Adds admonition block-styled content to Obsidian.md
Tracker
5 years ago by pyrochlore
A plugin tracks occurrences and numbers in your notes
Highlight Public Notes
5 years ago by dennis seidel
Focus Mode
5 years ago by ryanpcmcquen
Add focus mode to Obsidian.
2Hop Links
5 years ago by Tokuhiro Matsuno
File Explorer Note Count
5 years ago by Ozan Tellioglu
Obsidian Plugin for viewing the number of elements under each folder within the file explorer
QuickAdd
5 years ago by Christian B. B. Houmann
QuickAdd for Obsidian
Quick Explorer
5 years ago by PJ Eby
Perform file explorer operations (and see your current file path) from the Obsidian.md title bar
Podcast Note
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian that lets you add podcast meta data to your notes.
Card View Mode
5 years ago by PADAone
Obsidian Card View Mode Plugin
Enhance Copy Note
5 years ago by kzhovn
Plugin which enhances the copy command for Obsidian.
Wikipedia
5 years ago by Jonathan Miller
Grabs information from Wikipedia for a topic and brings it into Obsidian notes
Bible Reference
4 years ago by tim-hub
Take Bible Study notes easily in the popular note-taking app Obsidian, with automatic verse and reference suggestions.
Structured
4 years ago by dobrovolsky
From Template
4 years ago by mo-seph
Simple plugin to create Notes from a template, and fill in fields defined there
Symlink Creator
2 years ago by Tobias Heidler
A plugin for Obsidian that allows the creation of symlinks - for Windows, OS X and Linux only!
Quick Notes
2 years ago by Sean McOwen
Quarto Exporter
2 years ago by Andreas Varotsis
Export Obsidian notes to Quarto-compatible QMD files.
Asciidoctor editor
2 years ago by dzruyk
Obsidian asciidoc editor plugin
random-retrieval
2 years ago by Rachninomav
Fold Properties
2 years ago by James Alexandre
Adds Fold/Unfold Properties Function to Folder Context Menu
Session Notes
2 years ago by tabibyte
A plugin for Obsidian to create temporary & session notes that will be deleted when session ends
Vault Review
2 years ago by Alexander
This plugin allows you to create a snapshot of your vault and randomly review files from it 1-by-1.
Hierarchical Backlinks
2 years ago by Jason Motylinski
Plugin which displays backlinks as a tree structure based on file paths
Arweave Uploader
2 years ago by makesimple
MOC Link Helper
2 years ago by Bogdan Codreanu
This obsidian plugins allows you to quickly see which notes you need to include in your MOC.
Unearthed (Kindle Sync)
a year ago by CheersCal
Daily Random Note
a year ago by Alexandre Silva
Daily Random Notes in Obsidian.
Daily Summary
a year ago by Luke
Beautiful Contact Cards
a year ago by Seth Tenembaum
A plugin for the Obsidian text editor which renders "contact" code blocks with tappable links for phone, social media, etc.
Instant Above Divider
a year ago by SedationH
Folder Canvas
a year ago by Nancy Lee
Generate a canvas view of your folder structure
Folder Links
a year ago by Stefan Rausch
Obsidian Plugin that enables using links to folders.
Abbrlink
a year ago by Q78KG
Share as ZIP
a year ago by Till Friebe
create folder notes with dropdown
a year ago by Sturdy Shawn
Sync Cnblog
a year ago by zhanglei
同步文章到博客园
Chat clips
a year ago by sleepingraven
Record chat in ordinary markdown list.
Simple Archiver
a year ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Xiaohongshu Importer
a year ago by bnchiang96
An Obsidian plugin to import Xiaohongshu (小红书) notes into your vault. Extract titles, content, images, videos, and tags from share links, with customizable categories and optional local media downloads.
Generate Timeline
a year ago by Shanshuimei
An obsidian plugin to generate timelines from tags, folders, files or metadata automatically. 根据标签,文件夹,文件或者属性自动生成时间轴的插件。
Sticky Notes
a year ago by NoPoint
Obsidian Sticky Notes Plugin
Auto Note Importer
a year ago by uppinote
Obsidian plugin that automatically creates notes from external database
Colorful Note Background
4 months ago by andresgongora
Set note background based on file location or frontmatter metadata