obsidian-image-converter icon indicating copy to clipboard operation
obsidian-image-converter copied to clipboard

Variable {notepath}

Open Neon-JZ opened this issue 9 months ago • 6 comments

I want my attachments to be storied in the folder named as: Attachments/{notepath} But when I use this variable,it include my notename's extension(.md) which is I don't want. Is there any variable can generate file paths without extensions? It's not provided in the optional variables. Image If a solution can be provided, thank you very much!

Neon-JZ avatar Feb 19 '25 09:02 Neon-JZ

I found that the variable directory meets my needs and is included in the help documentation, but it is not implemented in the published plugin.

Neon-JZ avatar Feb 20 '25 05:02 Neon-JZ

Does the variable {notename} match your needs?

NullString1 avatar Mar 12 '25 19:03 NullString1

Does the variable {notename} match your needs?

The effect I want to achieve is: Attachments/project/subproject/mynote But the variable {notepath} is interpreted as : Attachments/project/subproject/mynote.md But I don't want the file extension .md,which causes my pictures are images are stored in the following folder: Attachments/project/subproject/mynote.md/image.png So I want to combine other variables to achieve this effect. The following variables are available in the plugin: {parentfolder}: project
{notefolder} : project
{notepath} : project/subproject/mynote.md {notename} : mynote I fonud the variable {directory} in Examples/Variables Reference Guide.md meet my needs. {directory} - Full directory path e.g.: "Documents/Photos/Vacation" Which helps me get this : Attachments/{directory}/{notename} : Attachments/project/subproject/mynote But this variable is not actually installed in the plugin 🤒 Can you help me solve this problem? Thank you very much!😝😝

Neon-JZ avatar Mar 14 '25 03:03 Neon-JZ

Hi, I'm also encountering this issue, I'd like to know how you're dealing with it now?

hu2327401139 avatar Apr 05 '25 09:04 hu2327401139

Hi, I'm also encountering this issue, I'd like to know how you're dealing with it now?

Just ignore of this issue, waitting for the author to fix it,haha。😂

Neon-JZ avatar Apr 05 '25 10:04 Neon-JZ

+1. I also found the {directory} variable in the reference guide, but it doesn't work.

bray avatar Apr 12 '25 18:04 bray

+1, I'm also encountering this issue

liamtao avatar May 08 '25 13:05 liamtao

@Neon-JZ I removed .md from notepath. Not sure if that is what you were after:

https://github.com/user-attachments/assets/cfab8f61-7146-4572-8147-755154bc16e3

xRyul avatar Jun 09 '25 09:06 xRyul

@Neon-JZ I removed .md from notepath. Not sure if that is what you were after:

Obsidian_f4d42iBiGj.mp4 Thansk a lot!

Neon-JZ avatar Jun 10 '25 03:06 Neon-JZ