Closed tsievert closed 4 months ago
I worked on a branch for this. I also added for support by sharing file using they links. It's late so it needs more test before merging (ie preventing multiple send of the same fils)
You can try the last beta version 7.1.0-0
Thanks a lot for the quick implementation!
Unfortunately, I don't get it to work.
I've added py
and sh
as extensions to upload, but with the example above it just causes empty commits ( see https://github.com/LassanceLab/DLC_handbook/commit/b8dd4bb167c00eabd5f57f4b5ecaa89202fd80da).
{
"github": {
"branch": "main",
"automaticallyMergePR": true,
"dryRun": {
"enable": false,
"folderName": "github-publisher"
},
"tokenPath": "%configDir%/plugins/%pluginID%/env",
"api": {
"tiersForApi": "Github Free/Pro/Team (default)",
"hostname": ""
},
"workflow": {
"commitMessage": "[PUBLISHER] Merge",
"name": ""
},
"verifiedRepo": true
},
"upload": {
"behavior": "fixed",
"defaultName": "",
"rootFolder": "",
"yamlFolderKey": "",
"frontmatterTitle": {
"enable": true,
"key": "title"
},
"replaceTitle": [],
"replacePath": [],
"autoclean": {
"enable": false,
"excluded": []
},
"folderNote": {
"enable": false,
"rename": "index.md",
"addTitle": {
"enable": false,
"key": "title"
}
},
"metadataExtractorPath": ""
},
"conversion": {
"hardbreak": true,
"dataview": true,
"censorText": [
{
"entry": "/---\\n([\\s\\S]*?)\\n---/",
"replace": "",
"flags": "",
"after": false
},
{
"entry": "",
"replace": "",
"flags": "",
"after": false
}
],
"tags": {
"inline": false,
"exclude": [],
"fields": []
},
"links": {
"internal": true,
"unshared": true,
"wiki": true,
"slugify": "strict"
}
},
"embed": {
"attachments": true,
"overrideAttachments": [],
"keySendFile": [
"script"
],
"notes": true,
"folder": "",
"convertEmbedToLinks": "keep",
"charConvert": "->",
"unHandledObsidianExt": [
"py",
"sh"
],
"sendSimpleLinks": true,
"useObsidianFolder": true
},
"plugin": {
"shareKey": "share",
"excludedFolder": [],
"copyLink": {
"enable": false,
"links": "",
"removePart": [],
"transform": {
"toUri": true,
"slugify": "lower",
"applyRegex": []
}
},
"setFrontmatterKey": "Set",
"shareAll": {
"enable": true,
"excludedFileName": "DRAFT"
}
}
}
Oh I found the issue! You need to make a change in the note where the file is linked to force the upload, so does not work on existing links without a change to the note.
It's probably the cache that wasn't updated? It's a bit strange, as I list all links directly using the Obsidian API each time a note is send
Issue validation
Is your feature related to a problem ?
I would like to upload Python files (as an example) with my vault, but there is currently no way to do this.
What solution do you want to see ?
Allow upload of files that are linked inside Obsidian such as
Describe the alternative you've considered
You could manually handle this, but with more than a few files this becomes unmanagable
OS
Windows
Anything else?
No response
Plugin version
7.0.6
Obsidian version & debug log