akosbalasko / akosbalasko/yarle

how to create an _attachments subdirectory inside of the notes directory

Ouverte
#419 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
1.8k
Forks
111
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.