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

Undo macros all at once. #4448

Open
kwinso opened this issue Oct 24, 2022 · 4 comments
Open

Undo macros all at once. #4448

kwinso opened this issue Oct 24, 2022 · 4 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@kwinso
Copy link

kwinso commented Oct 24, 2022

When using macros multiplle times (e.g. 20q with a macro recorded to @ register) and then pressing u to undo, it reverts only last command of the last macro (not even the whole last macro). I think it should be done like it is in nvim: u keys jumps back to state when all macros are not applyied yet.

@kwinso kwinso added the C-enhancement Category: Improvements label Oct 24, 2022
@ksandvik
Copy link

Yes, I would think this should be a unique transaction recorded and then reverted.

@kirawi kirawi added the A-helix-term Area: Helix term improvements label Oct 25, 2022
@Omnikar
Copy link
Contributor

Omnikar commented Oct 26, 2022

I think I have a stash in my local copy of the git repo implementing this from when I first made #1234, but I never actually pushed it or anything.

@askreet
Copy link
Contributor

askreet commented Mar 19, 2023

@Omnikar If you want to push what you have here I'd be willing to get it up to date and shepard it along.

@robinmoussu
Copy link

Coming from vim, this was a very unexpected behavior. As proposed above, making q a unique transaction would be much nicer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

6 participants