obsidian-regex-pipeline icon indicating copy to clipboard operation
obsidian-regex-pipeline copied to clipboard

Scroll restart when applying a regex

Open PraenaDP opened this issue 1 year ago • 2 comments

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.

PraenaDP avatar Apr 21 '24 20:04 PraenaDP

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 avatar Apr 22 '24 11:04 No3371

Reopen for the incorrect behavior.

No3371 avatar Apr 22 '24 11:04 No3371