No3371 / obsidian-regex-pipeline

An Obsidian plugin that allows users to setup custom regex rules to automatically format notes.
70 stars 8 forks source link

Is it posssible to exclude some folders? #9

Closed ooker777 closed 2 years ago

ooker777 commented 2 years ago

Or even better, notes with tags or other patterns

No3371 commented 2 years ago

I don't get it, the plugin helps you do regex replacements on current opened file, what's it doing to your files/folders?

ooker777 commented 2 years ago

Oh I see. I thought it replaces in all notes. So may I ask why didn't you make that feature as well?

On Wed, Mar 23, 2022, 19:22 BA @.***> wrote:

I don't get it, the plugin helps you do regex replacements on current opened file, what's it doing to your files/folders?

— Reply to this email directly, view it on GitHub https://github.com/No3371/obsidian-regex-pipeline/issues/9#issuecomment-1076314817, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTCUXIC2VH54QW4FC4UUK3VBMEJBANCNFSM5RN2FJRA . You are receiving this because you authored the thread.Message ID: @.***>

No3371 commented 2 years ago

Because it's made to help me authoring my knowledge database, the only purpose of the plugin is to reduce repetitive manual modification when adding notes.

So the feature you describe is out of scope; and just as you said, a "replace in all" feature requires additional filtering mechanic which involve more logical and UI change. Hence "replace in all" will not be added.

ooker777 commented 2 years ago

Do you think we should make it clear that this plugin will only replace strings in the current open note?

No3371 commented 2 years ago

No, it should be intuitive enough to Obsidian users that a plugin do something to the opened note when nothing otherwise mentioned.

ooker777 commented 2 years ago

I mean the reason I download this plugin is to be able to replace all strings in the whole vault. So I think there are some people having the same thought too

No3371 commented 2 years ago

For that exact purpose I suggest a better solution: VSCode. It fully supports Regex and should have even better performance.

Open the folder in VSCode, Ctrl+Shift+F (default shortcut), you will see this (The appearance may vary by theme):

圖片

Include *.md should works because notes are markdown files.