Obsidian Sync - Sync hidden files as well

Use case or problem

Obsidian sync is ignoring all hidden files and directories currently. Some plugins and tools use hidden files (starting with a dot) to store their settings, which excludes them from Obsidian sync.

Some plugins allow to change the settings file to a different one, but I still think it makes sense to allow syncing of hidden files, and have those still be hidden in the main obsidian window. There is no need to have settings file be visible and editable from withing Obsidian.

Allowing syncing of hidden files means the Obsidian vault across multiple machines is actually identical, instead of somewhat identical minus hidden files.

Proposed solution

Allow syncing of hidden files similar to how “all file types” sync is an option in the sync settings. It could be optional, or even manually specifying which files should be synced.

Current workaround (optional)

  • Copy the hidden file to a non-hidden one (replace . with _), copy back on the other machine after syncing is done
  • Use other software to sync hidden files only, or use other software to automatically do the copying roundtrip I described above
18 Likes

Wanted to bump this to see if there is interest

2 Likes

This would be helpful for me. I have a plugin I’m working on that currently stores all data in the main plugin data.json file, but that file could get really big, and end up taking a lot of memory. It would be nice to be able to split up that data per file, and load it as needed, keeping the memory usage lower, and the time it takes to load smaller.

1 Like

This would be helpful to me as well for storing configuration like .obsidian.vimrc for the vim plugin.

2 Likes

Hey, this would be a really simple quality of life change for Obsidian Sync.
I find it really odd that hidden files are excluded, to be honest!

If I were using Git or Google Drive, I would have no problem syncing hidden files (or at least having the option to do so).

Arbitrarily not syncing files seems against the ethos of Obsidian.

2 Likes

I would like to be able to sync my .editorconfig files and similar.

1 Like

I’d also like to have this capability.
Smart Connections plugin uses .smart-connections/ directory to store embeddings information. This directory needs to be synced to use the plugin on multiple devices.
However, currently, Obsidian Sync does not sync this directory.

Having an option to synchronize such a directory would be very helpful.

1 Like

+1 Bump
Still looking for this feature

Maybe this could be solved via a plugin that automatically syncs hidden folder/files with a non-hidden version of it, and syncs it back on new machines?

Using a standardized prefix, and not overwriting files if conflicts found, but instead alerting the user to manually solve the issue.

1 Like

The git sync plugin has always supported this feature, but requires some kind of git server to work which requires manual setup and more time delays. For anyone who has need of more control over their syncing, that is probably the only solution right now.

1 Like

+1 bump as well

Would be nice to have an option underneath “Selective sync” to force include certain folders

1 Like

Syncthing will sync the hidden files , check in Linux LXC container with following command

ls -a

Full transperancy though, I did have some sync conflicts when setting up/connecting all my remote devices. Seems to be only the .json files in the .obsidian folder

Check out video below if you’re interested

I hope this feature will be implemented!