Skip to content

Obsidian: Remove underscores in filenames and directories #8

@sojusnik

Description

@sojusnik

If a Zim filename or a directory has a space between words, then currently after conversion with this script the space will be replaced with an underscore. This makes the note titles ugly, same goes for directories. I assume this was done to avoid problems with linking.

Those underscores aren't necessary, because when using Wikilink style linking, those space are taken into account.

This is how a proper an internal Wikilink style link looks in Obsidian:
I'm linking to a [[a category with spaces/a note with spaces|note]] with several spaces

But in Markdown style links, spaces must be replaced with %20, as described here:
I'm linking to a [note](a%20category%20with%20spaces/a%20note%20with%20spaces.md) with several spaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions