-
Notifications
You must be signed in to change notification settings - Fork 8
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
How to rename remove space? #111
Comments
I manage to edit the script to directly replace that ${originalname} to include a requirement to remove spaces. Sorry for this method because i'm not IT background, I only knew html and sql, currently learning js The file attached is main.js in the plugin file. |
When there are spaces in the filename, the attachment is named in url encode, and I would like to be able to display the spaces properly |
Url not possible to have spaces if not mistaken. I'm self learn coder so theory i might not good. But as i saw website or url don't have spaces. So i think not possible to display space in url encode. Do i get your question correct? |
What I mean is that when inserting an image in an obisidian file, this plugin will automatically name it for me, and I want to use the current md filename as the name of the attachment, at this point, if there are spaces in the md filename, then there will be spaces in the name of the attachment in the form of url encode. |
There was no real expression language support in this plugin, it's just a replacement. So you can't use |
I tested ${originalname.replace(/\s/g, '')}
But still can't remove space from original file name
The text was updated successfully, but these errors were encountered: