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]: 'Delete all before publish' option #333

Closed somidad closed 6 months ago

somidad commented 6 months ago

Issue validation

Is your feature related to a problem ?

No

What solution do you want to see ?

Proposal

I imagine that it would be better if there is an option 'Delete all before publish' applicable to some or all of the following:

Motivation

A usecase is that I renamed an already published note and publish it again, then there are two files, 'original' published file and 'renamed' published file. I want a repository to have only one file with the latest name.

How does the proposal satisfy the motivation?

By deleting all files on the remote before publishing, the remote starts with a fresh state. Then actual publish command upload all public notes. If the pull request is merged after then, it has a rename effect virtually.

Describe the alternative you've considered

No response

OS

IOS, Android, MacOS, Windows, Linux

Anything else?

No response

Plugin version

7.0.2

Obsidian version & debug log

1.5.12

I don't think debug log is required since it is not a bug report

Mara-Li commented 6 months ago

Use the autoclean function.