kxxt / obsidian-advanced-paste

Advanced pasting functionality for obsidian

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Help] Where to find script directory?

julroger2013 opened this issue · comments

Hello:

Thanks for making this plugin—very helpful!

I've noted that the plugin can be used for custom clipboard transformations using JavaScript. Unfortunately, however, I don't know where to access the script directory, although I can see that it defaults to advpaste.

Where would I find the directory so that I can create custom transformations? I recognize that editing the scripts in Obsidian won't work, but I also can't find a script directory in the normal Windows File Explorer.

Also, although I think I can figure it out on my own, the transformation I'm aiming for is pretty simple, and maybe you know right away how to do it. I was hoping to do just two things with clipboard text before pasting:

  • 1). Replace every instance of * with \*
  • 2). Replace every line break with the <br>

By default, the plugin looks for the advpaste dir under the root dir of your vault. If it doesn't exist, then you need to create it.