Filename Heading Sync

by dvcrn
5
4
3
2
1
Score: 63/100

Description

Category: File Management

The Filename Heading Sync plugin is a powerful tool for Obsidian users who want to keep their file names and headings in sync. This plugin automatically updates the first heading of a file to match its filename whenever you rename or open a file. It also inserts a heading if one doesn't already exist, and updates the file name if the heading changes. With this plugin, you'll never have to worry about keeping your file names and headings consistent again. You can even disable automatic renaming and use manual sync commands if you prefer. Overall, this plugin is a great tool for anyone who wants to streamline their Obsidian workflow.

Reviews

No reviews yet.

Stats

203
stars
66,339
downloads
37
forks
1,750
days
62
days
62
days
32
total PRs
5
open PRs
6
closed PRs
21
merged PRs
80
total issues
35
open issues
45
closed issues
14
commits

Latest Version

2 months ago

Changelog

  • Add option to specify what characters to replace space with (#62)

Full Changelog: https://github.com/dvcrn/obsidian-filename-heading-sync/compare/1.10.3...1.11.0

README file from

Github

Obsidian Filename Heading Sync

This is a Obsidian plugin to keep the filename and the first heading of a file in sync

demo

Note: This plugin will overwrite your first heading at the top of the file the moment you open it, so this can be considered destructive.

Discussion on the obsidian forum here

Features

  • When renaming the current file -> will update the heading
  • When opening a file that doesn't have a heading yet -> will insert one
  • When opening a file with a different heading than the current file name -> will update the heading
  • When updating the heading of a file -> will rename the file

If you're not a fan of automatic renaming you can also disable the "File Save Hook" and "File Open Hook" in settings and just use the manual sync commands (thanks @mnaoumov!)

This plugin conflicts with plugin X, how do I solve this?

  • First check if this is already solvable by adding a regex rule. For example if your file always ends in myfile.foo.md (ending foo), you can exclude this globally by adding the following regex rule in the plugins settings: .*\.foo\.md

  • If that didn't do it, see if the other plugin acts on file-open. If it does, you can go into the settings of this plugin and disable the 'file open hook' as a workaround. (You can also fully disable automatic syncing by disabling 'file save hook' as well)

  • If this still didn't solve the issue, open a new issue with steps and examples how to reproduce the problem.

Conflict with 'templater'

Disable the file-open hook in settings and they should play together nicely (#40)

Current limitations and to do

  • When renaming a file that isn't the current file, nothing will happen. The heading will get updated the next time the file is opened in edit mode
  • Special characters that obsidian can't handle will get auto-stripped

Development

Building the Plugin

To build the plugin for production:

npm run build

Watch Mode with Auto-Sync to Obsidian

If you want to develop with automatic syncing to your Obsidian vault, you can set the OBSIDIAN_PLUGIN_PATH environment variable to point to your plugin directory:

export OBSIDIAN_PLUGIN_PATH="/path/to/your/vault/.obsidian/plugins/obsidian-filename-heading-sync"
npm run dev

The watch build will automatically copy the compiled plugin files to your Obsidian vault whenever changes are detected.

Alternatively, if you're using just, you can use:

export OBSIDIAN_PLUGIN_PATH="/path/to/your/vault/.obsidian/plugins/obsidian-filename-heading-sync"
just watch-sync

LICENSE

MIT

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Remotely Save
4 years ago by fyears
Sync notes between local and cloud with smart conflict: S3 (Amazon S3/Cloudflare R2/Backblaze B2/...), Dropbox, webdav (NextCloud/InfiniCLOUD/Synology/...), OneDrive, Google Drive (GDrive), Box, pCloud, Yandex Disk, Koofr, Azure Blob Storage.
Todoist Sync
6 years ago by jamiebrynes7
Materialize Todoist tasks in Obsidian notes
Weread Plugin
4 years ago by hank zhao
Obsidian Weread Plugin is a plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.
Google Drive Sync
a year ago by Richard Xiong
A plugin to make Obsidian work in Google Drive to enable access to iOS.
Nutstore Sync
5 months ago by nutstore-dev
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
GitHub Sync
2 years ago by Kevin Chin
Sync Obsidian vault to personal GitHub
Douban
4 years ago by Wanxp
an obsidian plugin that can pull data from douban to your markdown file
TickTickSync
2 years ago by thesamim
Taskbone
5 years ago by Dominik Schlund
Obsidian OCR plugin - extract text from images
WuCai highlights Official
3 years ago by 希果壳五彩
WuCai highlights Official, for Sync highlights into your obsidian notes
Peerdraft
2 years ago by Peerdraft
Collaboration for Obsidian – Sync, Share, and Edit anywhere
Sync Graph Settings
3 years ago by Xallt
This is a plugin for syncing graph settings (Color Groups and Search Filters) to Local Graphs
Settings profiles
2 years ago by 4Source
This is a plugin for Obsidian (https://obsidian.md). Allows you to create various global settings profiles. You can sync them between different vaults. To keep all your settings in sync, you'll never have to manually adjust them again for every vault you have or create in the future.
Readwise Mirror
5 years ago by jsonmartin
Share to NotionNext
3 years ago by EasyChris, jxpeng98
Share obsidian markdown file to any Notion database and generate notion share link 同步obsdian文件到任意Notion数据库。
Awesome Reader
3 years ago by AwesomeDog
Make Obsidian a proper Reader.
GitHub Gitless Sync
a year ago by Silvano Cerza
Sync a GitHub repository with vaults on different platforms without requiring git installation
Voicenotes Sync
2 years ago by Andrew Lombardi
Official Obsidian plugin that syncs your notes from VoiceNotes.com into your vault
TickTick
3 years ago by Viduy Cheung
Cubox
a year ago by delphi-2015
Cubox Official Obsidian Plugin
Instapaper
2 years ago by Instapaper
Official Instapaper plugin for Obsidian
Sync Vault CE
a year ago by Camus Qiu
The missing bridge between your 10+ TB cloud drive and your AI brain.
BookFusion
2 years ago by BookFusion
BookFusion Obsidian Plugin
Safe Filename Linter
3 years ago by sneaky-foxes
Obsidian app plugin to lint filenames for invalid or troublesome characters
Notes Sync Share
3 years ago by Alt-er
Sync and share (publish) your notes in your own private service.
Tressel Sync for Obsidian
4 years ago by Tressel
Official Tressel plugin to export various content from the Internet (like Twitter, Reddit, Kindle and more) into Obsidian
SamePage
3 years ago by SamePage
Awesome Flashcard
3 years ago by AwesomeDog
Handy Anki integration for Obsidian.
KOReader Sync
4 years ago by Federico "Edo" Granata
Obsidian.md plugin to sync highlights/notes from koreader
AnkiSync+
3 years ago by RochaG0
Invio
3 years ago by frontend-engineering
Publish obsidian docs online
Pinboard Sync
4 years ago by Mathew Spolin
Obsidian plugin to sync Pinboard.in links to Daily Notes
LINE Notes Sync
a year ago by onikun94
Vim Multibyte Char Search
4 years ago by anselmwang
Search multibyte characters by the corresponding input method encoding. For example, for Chinese, search "用来" by "yl"
Strava Sync
2 years ago by Howard Wilson
Sync Strava activities to your Obsidian vault
Vika Sync
3 years ago by romantic-black
Askify Sync
3 years ago by Kishlay Raj
Memos Sync
2 years ago by RyoJerryYu
Syncing Memos to Obsidian daily note. Fully compatible with official Daily Notes plugin, Calendar plugin and Periodic Notes plugin.
Readavocado Sync
4 years ago by Cyrus Zhang
Readavocado obsidian plugin to sync your favorite highlights.
Hoarder Sync
a year ago by Jordan Hofker
An Obsidian.md community plugin that allows syncing with https://karakeep.app/
Custom new file name
2 years ago by homu-konamilk
Confluence Sync
2 years ago by Prateek Grover
Obsidian plugin for obsidian confluence sync
HackMD Sync
a year ago by thor kampefner
obsidian extension to push and pull notes from hackmd conveniently
Checkbox Sync
a year ago by Grol
Keep parent/child checkboxes in sync automatically within your Obsidian task lists.
Jira Issue Manager
a year ago by Alamion
Obisdian plugin to sync tasks between Obsidian and Jira
Unearthed (Kindle Sync)
a year ago by CheersCal
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Anki Integration
a year ago by Noah Boos AKA Rift
Create flashcards from your notes with a seamless interface, structuring them with metadata and syncing effortlessly via AnkiConnect.
Google Contacts
a year ago by aleksejs1
Obsidian plugin for sync Google Contacts with obsidian notes
MrDoc
6 months ago by zmister
An Obsidian plugin for MrDoc that enables two-way synchronization between local Obsidian documents and MrDoc.一个 Obsidian 的 MrDoc 插件,用于 Obsidian 本地文档与 MrDoc 的双向同步
Glasp
a year ago by Glasp
Obsidian plugin to import highlights and notes from Glasp
Markwhen File Sync
a year ago by rouvenjahnke
Synchronize properties from your Obsidian notes with a Markwhen timeline file.
Template Filename
a year ago by Callum Alpass
Obsidian plugin for creating notes with templatable filenames
Limitless Lifelogs
a year ago by Maclean Dunkin
Sync your Limitless AI lifelog entries directly into Obsidian markdown files.
Minote Sync
a year ago by Emac Shen
Minote Sync is a Obsidian plugin to sync Minote(小米笔记) into your Vault.
Cicada Synchronizer
2 years ago by Adapole, Adapole, Mahyar Mirrashed
Hardcover
3 months ago by aliceinwaterdeep
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Yandex Wiki Integration
10 months ago by Pavel Sokolov
Sync config folder to common folder
2 years ago by codeonquer
Github Issues
9 months ago by LonoxX
An Obsidian plugin that integrates with GitHub to track issues and pull requests directly in your vault.
AnySocket Sync
2 years ago by Andrei Vaduva
Securely Synchronize your Vault on a self-hosted server
Vikunja Sync
2 years ago by Peter Heiss
Manage your tasks in vikunja.
WikiDocs
a year ago by pahkey
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
New Filename
a year ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
Memos AI Sync
a year ago by leoleelxh
obsidian-memos-sync-plugin,将 Memos 内容同步到 Obsidian 的插件,提供无缝集成体验。
Browser History
a year ago by noy4
Sync your browser history to notes.
BookXNote Sync
2 years ago by CodeListening
将bookxnote中的笔记同步到obsidian指定的文件夹中
Sync Cnblog
a year ago by zhanglei
同步文章到博客园
ExMemo Client
a year ago by Yan.Xie
exmemo obsidian plugin
Feedly Annotations Sync
a year ago by Nick Felker
Download my Feedly annotations
Sync-safe file names
6 months ago by j-maas
Ensure your Obsidian files can always be synced across all your devices.
BetaX NAS Sync
a year ago by Skye
Obsidian NAS Sync
Sync to Hugo
a year ago by Cray Huang
Sync the selected notes from Obsidian to Hugo
GitHub Tracker
a year ago by schaier-io
InfoFlow
a year ago by RockieStar Inc.
Obsidian plugin for InfoFlow.app - This plugin integrates InfoFlow with Obsidian, allowing you to sync your saved articles, web pages, notes, and highlights directly into your Obsidian vault.
KOI Sync
a year ago by Luke Miller
DocBase (Unofficial)
2 years ago by yurikuvanov
Unofficial DocBase plugin for Obsidian
Jade Publisher
a year ago by Lucas Ji
This is a simple plugin to help publish your Obsidian vault to a public website(build with Jade).