akosbalasko / akosbalasko/yarle

how to create an _attachments subdirectory inside of the notes directory

Đang mở
#419 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
1.8k
Fork
111
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'm importing my notes with yarle via npx into Obsidian. Obsidian wants the _attachments directory inside of the notes folder.

In my config file I have the following, but it doesn't seem to work. No attachments get placed in the _attachments folder:
"outputDir": "./",
"resourcesDir": "notes/_attachments",

I've tried other variations as well:
"outputDir": ".",
"resourcesDir": "notes/_attachments",

Basically if my working directory is:
/Users/glenn/testing/evernote-to-md

I want the generated md notes to be placed in:
/Users/glenn/testing/evernote-to-md/notes/

I want the attachments placed in:
/Users/glenn/testing/evernote-to-md/notes/_attachments/

If I use absolute paths it works fine, but then all my notes have the full path referenced in them. I would rather them reference the relative path to the attachments.

Any idea on how I can achieve this? How can I get the _attachments directory to be placed in a subdirectory of the notes folder?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.