obsidian-paste-image-rename icon indicating copy to clipboard operation
obsidian-paste-image-rename copied to clipboard

Specifiying directory when renaming

Open xtuer opened this issue 1 year ago • 5 comments

It would be better specifiying directory using separator slash "/" when renaming.

Such as the name "foo/bar.png", the image will be saved in folder "attachmens/foo" with the name "bar.png".

xtuer avatar Apr 08 '23 02:04 xtuer

Has this been implemented? How do i specify the directory i want my pastes to go to? Adding the file path as a prefix seems to have the slashes get filtered out? The plugin mentioned its inspired by Zettlr and in the example given it shows exactly what i want to be able to do, however with this plugin i haven't figured how to yet.

Please help <3

"/Images/{{fileName}}"

Gets turned into:

image

Why does the path value scape out the slash?

evilcomrade avatar May 20 '23 07:05 evilcomrade

even easier option

  • [ ] save image in same folder of the md

like https://github.com/mushanshitiancai/vscode-paste-image thanks @reorx

obar1 avatar Sep 16 '23 06:09 obar1

I would use this option as well.

I would recommend a config option to enable/disable the feature. If you wanted to get really fancy being able to configure defaults for directories would be nice.

I want to use the Obsidian default attachment directory about 75% of the time, but I have a few special cases where I would like to change (either all the time, or have the option to select).

BrianMakes avatar Oct 19 '23 13:10 BrianMakes

I would love to see this implemented too!

krishnams0ni avatar Dec 01 '23 06:12 krishnams0ni

Hey, until the plugin is updated, this is how I'm solving it - https://github.com/reorx/obsidian-paste-image-rename/issues/82#issuecomment-2105595945

WadoodAbdul avatar May 11 '24 06:05 WadoodAbdul