-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: URL replacer doesn't work #359
Comments
Can't repro, the % is converted into %25 on my side ; and % is replaced using the link replacement. |
That's strange. Can you share your config? Mine is: {
"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": "[skip netlify] PUBLISHER",
"name": ""
},
"verifiedRepo": true
},
"upload": {
"behavior": "obsidian",
"defaultName": "docs",
"rootFolder": "docs",
"yamlFolderKey": "category",
"frontmatterTitle": {
"enable": true,
"key": "filename"
},
"replaceTitle": [],
"replacePath": [],
"autoclean": {
"includeAttachments": true,
"enable": true,
"excluded": [
"docs/assets/favicon.svg",
"docs/assets/favicon.ico",
"docs/_data.yaml",
"docs/_includes/og_image.jsx"
]
},
"folderNote": {
"enable": true,
"rename": "index.md",
"addTitle": {
"enable": true,
"key": "title"
}
},
"metadataExtractorPath": "",
"subFolder": ""
},
"conversion": {
"hardbreak": false,
"dataview": true,
"censorText": [
{
"entry": "/\\!\\[.*\\]\\(https:\\/\\/.*(youtube\\.com|youtu\\.be)\\/(.*).*\\)/",
"replace": "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/$2\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>",
"after": true,
"inCodeBlocks": true
}
],
"tags": {
"inline": true,
"exclude": [],
"fields": []
},
"links": {
"internal": true,
"unshared": false,
"wiki": true,
"slugify": "disable"
}
},
"embed": {
"attachments": true,
"overrideAttachments": [],
"keySendFile": [
"image"
],
"notes": true,
"folder": "docs/assets/attachments",
"convertEmbedToLinks": "keep",
"charConvert": "->",
"unHandledObsidianExt": [],
"sendSimpleLinks": true,
"forcePushAttachments": [],
"useObsidianFolder": false
},
"plugin": {
"shareKey": "share",
"excludedFolder": [
"Ξ Thiết lập"
],
"copyLink": {
"enable": true,
"links": "https://kiếmtiền.quảcầu.cc/",
"removePart": [
"content",
"index.md"
],
"transform": {
"toUri": true,
"slugify": "disable",
"applyRegex": [
{
"regex": "%",
"replacement": "%"
}
]
}
},
"setFrontmatterKey": "Set"
},
"tabsId": "plugin-settings"
} System info:
|
Why you remplace % by %? ^^' |
They are different characters actually: |
Hmm, I just realize that those options are only available when Copy link is enable. Does that mean this whole section is just for copying the URL, not actually modifying the output filename? I use a sandbox vault and only install the plugin and import the setting, but in my output repo the filename still isn't converted. Where do you get that screenshot? It doesn't seem to be from the console. |
I just copy / pasted XD It's just a shortcuts to quickly create a link using obsidian with your configuration, without relying on other plugin. |
Is the link automatically copied into the clipboard, or do I need to execute a command manually? Is there a way to automatically replace the file name, like the option to replace the file content? |
|
Stupid me 🤦 The link isn't automatically copied into the clipboard to me. There is also no command so I don't know how to copy it. |
For the commands, it needs to be enabled. The auto-copy (even if the command is disabled) works on my side |
What does the text transformation to the URL mean? In my understanding it just replaces text in the filename. So I expect if you have a file
a.md
, and with the rule to replacea
withb
, then you getb.md
as the output. But it doesn't work.Ultimately I want to avoid the
%
character in the filename to avoid URIError: URI malformed. But even enabling the Encode to URI option it still isn't converted to%25
.v7.2.12
The text was updated successfully, but these errors were encountered: