Skip to content

Align nutrient note filenames character set with Obsidian #218

@PeterBeckley

Description

@PeterBeckley

Obsidian allows for quite a few special characters in the filenames that are converted to underscores with this plugin. I think it would be best to keep the Obsidian character set instead of parsing so many things to "_" because you often end up with multiple underscores between words in a title. The links on period notes also look ugly (this could just be personal preference).

Examples (from OpenFoodFacts -> Current filename conversion -> Using Obsidian-valid filenames):

Roasted Peanut Powder -> Roasted_Peanut_Powder -> Roasted Peanut Powder
Mixed Vegetables: Carrots, Green Beans, Corn & Peas -> Mixed_Vegetables__Carrots__Green_Beans__Corn___Peas -> Mixed Vegetables-Carrots, Green Beans, Corn & Peas
2% Milk -> 2__Milk -> 2% Milk

PS: I really like the ease of using your plugin, and the fact that the macro data is stored in YAML of the periodic note for future-proofing.

Edit: rewriting to better explain things.

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