obsidian-janitor icon indicating copy to clipboard operation
obsidian-janitor copied to clipboard

There is no confirmation dialog

Open merlinuwe opened this issue 1 year ago • 9 comments

I installed your plugin today and can get it run.

image

But it does not end running ... and there comes no confimation dialog, even not after 1 hour.

The settings are set to default.

What can I do?

Windows 10, lastest updates Obsidian 1.0.3

merlinuwe avatar Nov 19 '22 21:11 merlinuwe

Hi, could you please open the Developer Console to see if there is any error? Thanks a lot.

Canna71 avatar Dec 12 '22 16:12 Canna71

For me, the error came from an invalid regex expression. I fixed the expression and now everything works fine again.

mikebarkmin avatar Dec 23 '22 08:12 mikebarkmin

@mikebarkmin could you elaborate? you mean the regex you can insert for excluding files or folders?

Canna71 avatar Dec 23 '22 11:12 Canna71

That's correct. My first attempt was *.excalidraw, but this is an invalid regular expression and lead to the error. .*.excalidraw is the correct one.

mikebarkmin avatar Dec 23 '22 14:12 mikebarkmin

I see, I could try and add a validator. Thank you for reporting this.

Canna71 avatar Dec 23 '22 15:12 Canna71

Added a Regex Validator 1.0.7

Canna71 avatar Dec 23 '22 20:12 Canna71

Thank you very much. I also had to delete a wrong excluded file (.xlsx) to get it work. Thanks to @mikebarkmin for the example and for you for implementing the validator.

Can you please give some regex examples for janitor excluded files in your documentation? (files in folder x younger/older than yyy-mm-dd, files that start or end with some letters, files with dates in their name, AND and OR, ...)

merlinuwe avatar Dec 25 '22 09:12 merlinuwe

Thank you both, I will try to improve documentation!

Canna71 avatar Dec 25 '22 10:12 Canna71

Sorry for replying to an old issue but came here to manually exclude canvas files as they were deleted by Janitor, here's a reference for future members.

The correct syntax is: .*.canvas

@Canna71 can you kindly consider excluding them by default, I think most of the time they are used as orphans.

MossabDiae avatar Nov 03 '23 13:11 MossabDiae