I switched to Obsidian Sync, but now all files with special characters don't sync. How do I fix this?

What I’m trying to do

I’m on a mac and so enjoy a broad range of special characters in my file titles.
However, I just switched to Obsidian Sync which does not support those characters (*"/<>:|?)

I could use a 3rd party software to remove all those characters, but that would break all the links I’ve created to those notes in Obsidian.

What is the way to change those characters in file names without breaking the links in my Obsidian vault?

Thanks!

Obsidian Sync does not have limitations, the filesystems in each of your devices may have different limitations.
So you need to use minimum common denominator.
: and / are forbidden on mac.

Maybe this can help you get started. It is a JSON list I have for filenames I intend to use across multiple systems.

{
    "Windows": {
        "characters": "<>:\"/\\|?*",
        "max_file_name_length": 255,
        "max_path_length": 260,
        "additional_restrictions": "Filenames cannot end with a space or a period.",
        "reserved_names": [
            "CON",
            "PRN",
            "AUX",
            "NUL",
            "COM1",
            "COM2",
            "COM3",
            "COM4",
            "COM5",
            "COM6",
            "COM7",
            "COM8",
            "COM9",
            "LPT1",
            "LPT2",
            "LPT3",
            "LPT4",
            "LPT5",
            "LPT6",
            "LPT7",
            "LPT8",
            "LPT9"
        ]
    },
    "Mac": {
        "characters": ":",
        "max_file_name_length": 255,
        "max_path_length": 1024,
        "additional_restrictions": "Using `/` in Finder treats the file as a folder.",
        "reserved_names": [
            "._",
            ".DS_Store"
        ]
    },
    "iOS": {
        "characters": "/:",
        "max_file_name_length": 255,
        "max_path_length": 1024,
        "additional_restrictions": "Filenames cannot start with a dot (.)",
        "reserved_names": []
    },
    "Android": {
        "characters": "/",
        "max_file_name_length": 255,
        "max_path_length": 4096,
        "additional_restrictions": "Older versions have specific restrictions depending on the file system.",
        "reserved_names": []
    },
    "*nix": {
        "characters": "/",
        "max_file_name_length": 255,
        "max_path_length": 4096,
        "additional_restrictions": "Avoid using control characters and non-printable characters.",
        "reserved_names": []
    }
}

1 Like

Yeah it can be a real headache, I tried LongPath Tool Program which helped a lot.

on linux there is the detox program

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.