Alexander334 downloadsAutomatically adds tags to notes when created or moved into specific folders.
Obsidian plugin that tags notes by folder. You say that notes in Work get #work, and from then on every note created in Work or moved there gets the tag. Works on desktop and mobile.

A rule is a folder plus tags. It covers the folder and everything inside it, so with rules for Projects and Projects/Alpha a note in Projects/Alpha gets the tags of both.
#new, so unsorted notes are easy to find.#new is removed.Tags go either to a block at the end of the note or to the tags property.
The block looks like this:
<!-- Alyok Autotag -->
#work
#new
The plugin rewrites the block, so don't keep your own tags in it. Whatever you write below the block stays.
With the tags property the plugin only adds and removes the tags of its rules, your other tags are left alone. If you switch from the block to the property, run "Apply to all notes" once and the tags move over.
In the settings: add a rule, pick a folder and type the tags, #tag1 #tag2 or tag1, tag2. A new rule starts with the folder name as its tag. When you close the settings, the notes already in folders whose rules changed get the new tags, and tags you removed are taken off them.
From the file explorer: right-click a folder (long-press on mobile) and choose "Autotag rule". On a phone this is the fastest way. When you save a rule there, the notes already in the folder get the new tags right away, and tags you removed from the rule are taken off them.
"Rules from folder names" makes a rule for every folder with the folder name as the tag, either the name itself (#Design) or the full path as a nested tag (#Projects/Work/Design). "Folders without rules" shows what's left, tap a folder to give it a rule.
Rules are kept in the vault's .obsidian folder and sync with it. Open the same folder as the vault on every device, otherwise each device has its own rules. When rules change on one device, the others pick them up without restarting Obsidian.
new by default.#2025-08-31-14-35. It stays the same when the note is moved.2025-08-31-14-35. Daily notes and notes created from a link keep their names.Templater templates work too, including ones that ask you something before they fill the note. Excalidraw drawings and Kanban boards are always left alone. A note only counts as new when it's created on this device, files that come in through sync are not tagged as new.
In Obsidian: Settings, Community plugins, Browse, search for Alyok Autotag. Until it shows up there, use one of the ways below.
With BRAT, this works on mobile too: "Add beta plugin" and paste 24tiy/Alyok-Autotag.
Manually: download main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/alyok-autotag/, then turn on Alyok Autotag in Settings, Community plugins.
Needs Obsidian 1.13 or newer. On older versions Obsidian installs 1.1.1.
See CONTRIBUTING.md for details.
npm install
npm run build
npm run lint
npm run lint runs the official Obsidian ESLint rules, the same ones the community directory checks.
tags property instead of the block.#new.First release: folder rules, #new, retag on move, creation time tag, naming by time, folders without rules, rules from folder names, apply to all notes.