shabegom / buttons

Buttons in Obsidian
The Unlicense
453 stars 47 forks source link

in "type note(/dir/note1, split) template" split does't work well when the directory is specified #189

Closed Yead closed 5 months ago

Yead commented 10 months ago

First, thanks for the development work!

problem

When I set type note(/dir/note1, split) (note1 is not located under the home directory), I can only see an empty note on the vertical side windows with nothing in it.

details

I want to build a button, that can generate a new note based on my template called pdf_note, and I want to view the new note directly, so I added split parameter here.

when I didn't specify the directory, everything worked fine:

name add a new note
type note(note1, split) template
action pdf_note
templater true
color blue

I can see the new document on the right window. However, if I specify the path from note1 to /dir1/note1, the document is still generated in the right path, but I only see an empty note without any content on the right windows.

name add a new note
type note(/dir1/note1, split) template
action pdf_note
templater true
color blue

Is my operation correct?

itbeard commented 8 months ago

Hey, Just remove first slash here /dir1/note1 (should be like that dir1/note1) It should help