Enveloppe / obsidian-enveloppe

Enveloppe helps you to publish your notes on a GitHub repository from your Obsidian Vault, for free!
https://enveloppe.github.io/
Apache License 2.0
636 stars 39 forks source link

[FR]: upload attachment in the same folder of md file #350

Closed yangtfu closed 4 months ago

yangtfu commented 4 months ago

Issue validation

Is your feature related to a problem ?

It seems the attachment upload folder cannot be set as the same folder of md file now. Like this in hugo.

What solution do you want to see ?

Give a option to upload in the same folder or provide a variable refering to frontmatter.

Describe the alternative you've considered

No response

OS

Windows

Anything else?

No response

Plugin version

7.2.8

Obsidian version & debug log

SYSTEM INFO:
    Obsidian version: v1.5.12
    Installer version: v1.4.16
    Operating system: Windows 10 Enterprise 10.0.22631
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Base theme: adapt to system
    Community theme: none
    Snippets enabled: 0
    Restricted mode: off
    Plugins installed: 9
    Plugins enabled: 7
        1: AidenLx's Folder Note v0.16.5
        2: Folder Note Core v1.3.5
        3: Auto Split v1.1.2
        4: Dataview v0.5.66
        5: Linter v1.24.0
        6: Enveloppe v7.2.8
        7: Attachment Name Formatting v2.1.8

RECOMMENDATIONS:
    Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Mara-Li commented 4 months ago

The problem is: if you use an attachment multiple time, it will be send multiple time. Meaning to duplication, and probably problem when using the cleaning function.

Moreover, a file is send "detached" from it sources, aka I don't save the source TFile or the path. A file can come from multiple source, and it can become tricky to also save in the methods all source.

I have some solution: