Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll restart when applying a regex #33

Open
PraenaDP opened this issue Apr 21, 2024 · 2 comments
Open

Scroll restart when applying a regex #33

PraenaDP opened this issue Apr 21, 2024 · 2 comments

Comments

@PraenaDP
Copy link

PraenaDP commented Apr 21, 2024

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
Copy link
Owner

No3371 commented Apr 22, 2024

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 No3371 closed this as completed Apr 22, 2024
@No3371
Copy link
Owner

No3371 commented Apr 22, 2024

Reopen for the incorrect behavior.

@No3371 No3371 reopened this Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants