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

FR: jj op undo $n #4056

Open
Zoybean opened this issue Jul 9, 2024 · 2 comments
Open

FR: jj op undo $n #4056

Zoybean opened this issue Jul 9, 2024 · 2 comments
Labels
polish🪒🐃 Make existing features more convenient and more consistent

Comments

@Zoybean
Copy link

Zoybean commented Jul 9, 2024

Is your feature request related to a problem? Please describe.
Most often when I'm undoing something, I'll look at the op log and then figure out the number of operations I want to undo, then count that many -'s, e.g.: jj op restore @---.
I rarely have a use for more than 2 + or -, outside of jj op restore.

Describe the solution you'd like
I'd like to be able to say jj op undo 3 to undo the last 3 operations

Describe alternatives you've considered
jj op restore @-3 using the syntax in #4055 and #3337

@yuja
Copy link
Contributor

yuja commented Jul 9, 2024

See also #3700 for broader discussion.

@PhilipMetzger
Copy link
Contributor

Yes, this should be folded into the new high level jj undo (#3700), as jj op undo is to low level for such a convenience detail

@PhilipMetzger PhilipMetzger added the polish🪒🐃 Make existing features more convenient and more consistent label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
polish🪒🐃 Make existing features more convenient and more consistent
Projects
None yet
Development

No branches or pull requests

3 participants