daledesilva / obsidian_ink

Other
265 stars 6 forks source link

REQUEST: be able to choose name for ink folder #20

Closed tenebrisnox closed 1 week ago

tenebrisnox commented 2 months ago

(A really minor request...)

Is it possible in a future release to give users the ability to name the folder where the .writing files are stored?

Also, any plans to automatically delete .writing files when a note containing them is deleted (or give the choice of deleting them)?

ichmoimeyo commented 2 months ago

@tenebrisnox "ability to name the folder where the .writing files are stored" hi, in the meantime you can achieve something similar yourself by setting: Default location for new attachments: Screenshot 2024-04-05 06 43 29

e.g. myInkFolder as the folder where the .writing files are stored:

Default location for new attachments: in the folder specified below: 
Attachment folder path: myInkFolder

... your options are: as above ... in the folder specified below: ... Attachment folder path: myInkFolder ... this lets you choose your top level name with Ink however still below it. OR same folder as current file ... it would still be called Ink however. OR in subfolder under current folder ... Subfolder name: myInkFolder ... this lets you in a subfolder choose your top level name with Ink however still below it.

JeminiRiver commented 2 months ago

I've forked the repository and added the setting successfully but I'm encountering Build errors on the main branch with the @tldraw:2.0.0-alpha.17 dependency. I merged my changes onto a local copy of the release_0.1.2 branch after seeing dependency updates there but I'm getting the same Build errors. Just curious if you're encountering the same build errors, @daledesilva?

daledesilva commented 2 months ago

@JeminiRiver i only updated those dependencies on that branch last night so can't say confidently, but I don't believe so.

It's possible you merge it between my commits and didn't get all my updates. Maybe try merging again.

Either way, I'll put in an option for defining the folder names in the next release myself if you can wait.

YkionArt commented 1 month ago

Along with name, changing location of the Ink folder independently from settings in "Files and links" would be nice too. If I'm not mistaken, the plugin currently uses same folder as "new note" ? Personally I'd like my notes to be in the "new attachments" folder instead, for example.

daledesilva commented 1 week ago

This is now implemented. If you want to use it immediately you can install the latest prerelease version (0.2.3) through BRAT. Or if not using BRAT, you'll need to wait till it becomes the official release. Thanks for you comments!

batrand commented 1 week ago

@daledesilva So we have 2 options, 1 is the root folder, 2 is the Obsidian attachments folder. Can I request a third option, which is to use a path relative to the note?

What I'm imagining is if I set this setting to "_attachments" for example:

My use case is a single vault for all aspects of life, and on my work devices, I only store the work subfolder, so I don't want personal notes and attachments synced there.

daledesilva commented 1 week ago

Lol. I knew someone would want this but I didn't think I'd hear back so quickly! I'm aware of this deficiency, but I decided to limit how much work I put into this ticket to start.

I'm going to jump on some other more high priority things first, but I will create a new issue for this and hopefully implement it sooner rather than later!

Thanks for voicing it @bartrand