[Feature Request] Caret Position After using Whole Document
#31
Replies: 1 comment 2 replies
-
@FelipeRearden, thank you for writing! I agree that this would be useful, and have been thinking about how to accomplish it. The issue is that after a pattern is applied, what was line 2 might now be line 12, or line 1, or line 0. Further, the line might be a different length than it was before. This is all to say that automatically figuring out where to return the caret to turned out to feel too fragile to me. So, instead, in the upcoming I hope that this will be responsive to what you had in mind! |
Beta Was this translation helpful? Give feedback.
-
Hello @jglev !!!!
I’d like to suggest a new feature to the command
whole Document
.It’s very simple to explain: after applying a pattern to the whole document would be amazing if the caret position came back to the previous line (before the pattern were applied)
Example: I want apply car -> plane in the whole document
As you can see in the image, my caret is in
Line 2
The Last line in the document ins the
Line 11
Before apply Pattern
After apply pattern
After the applied pattern, the caret position is in the last line of the document
Line 11
My suggestion is to make the caret position jump to
Line 2
which was the line before :)Thanks for reading this!
Have a great day!
Beta Was this translation helpful? Give feedback.
All reactions