-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Undo repeat_last_motion
#12877
Comments
related: #8495 A maintainer seems interested in PR to implement this #12092 (comment) Anyone implementing this should also checkout #8761 (comment) I might give this ago myself since this drives me nuts as well. |
If Mike is open to a PR I might do it myself as well. Seems like he's already given an approach, so I think it'll be doable as a first PR. |
I spent a bunch of time on this yesterday. Think I'll have a PR ready tonight. |
Awesome, thanks! |
Note, while the PR is really nice it doesn't actually solve your problem
If you have your cursor at the principal: EntityUid, #[default(entity_id("Action", "test-action"))] action: EntitayUid And you press (the way the PR implements this is correct actually, it works the same way in Vim. Just letting you know, and thinking about potential solutions to the above problem.) |
some type of soft undo might solve it: |
However, one could just screenrecord.mp4 |
hmmmm, that is kind of a problem. Yes you can go two back and one forward, but that isn't ideal. I don't really understand your last sentence. I opened up |
I was using |
I see. Honestly, I think this implementation and making it an exact undo command is valid, but the current behavior still leaves room for #1596 to be implemented. Also, this could be used intentionally, although I don't think I would. Unless an exact undo is easy, I wouldnt mind leaving it as is |
This is coming from: https://www.reddit.com/r/HelixEditor/comments/1ipjmxx/best_way_to_extend_selection_to_character/
Take a look at this snippet:
#[default(entity_id("Action", "test-action"))] action: EntityUid
.Imagine I want to jump from the
#
at the beginning to thea
in action. I'll useAlt-.
which is bound torepeat_last_motion
. If I go too far, I'll overshoot, now my selection is ruined. I'd like something like Vim's,
key where you can search in the opposite direction. So if a user executedfind_next_char
and repeated it, this new action would executefind_prev_char
.This could also be implemented by #1596, but they're not the same interface
The text was updated successfully, but these errors were encountered: