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

FR: Normal replace or antonym substitution

Open yoghurtdewdew opened this issue 1 year ago • 3 comments

Is Your Feature Request Related to a Problem? Please Describe.

Custom regex would be useful if I know more about that. Normal replacement would work for below: /# # ,

image

Describe the Solution You'd Like

I have no idea how to make it.

Describe Alternatives You've Considered

Manually.

Additional Context

Thanks for your brilliant plug-in!

yoghurtdewdew avatar Aug 21 '23 03:08 yoghurtdewdew

Normal replace can be used if special characters are escaped with \ (not /).
If you learn some regex, it will be very beneficial in the future.

zanodor avatar Aug 21 '23 11:08 zanodor

Hi! Thanks for your advice! I wonder if linter would support normal replace as /## ? image

yoghurtdewdew avatar Aug 29 '23 03:08 yoghurtdewdew

Hey @yoghurtdewdew . Sorry about the delay in responding to your last message. I am not 100% sure what the issue is wit your regex. So long as you are trying to convert /# to # it should work from my understanding. If you are trying to replace \# with # you will need to use a find value of \\# since \ is a special character.

I hope this helps.

pjkaufman avatar Dec 12 '23 15:12 pjkaufman