No3371 / obsidian-regex-pipeline

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

Scroll restart when applying a regex #33

Open PraenaDP opened 4 months ago

PraenaDP commented 4 months ago

When you need to apply a regular expression to a note, which is a bit long, the page scrolling restarts, returning to the beginning of the note. This is quite annoying. But I want to thank you for making this plugin so good.

No3371 commented 4 months ago

Thanks for the kind word.

Scrolling back by line number is actually implemented but I just realized it does not work correctly.

However, as discussed before in #10, in short, because regex can basically do anything to the content, there's no really a reliable way to return to where the cursor was... because the line the cursor was will not always be the same actual line.

So even if it's fixed it won't be accurate.

No3371 commented 4 months ago

Reopen for the incorrect behavior.