Skip to content

Conversation

@AidanV
Copy link
Contributor

@AidanV AidanV commented Nov 2, 2025

Release Notes:

  • Pressing u after multiple . in rapid succession will now only undo the latest repeat instead of all repeats.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 2, 2025
@github-actions github-actions bot added the community champion Issues filed by our amazing community champions! 🫶 label Nov 2, 2025
@AidanV
Copy link
Contributor Author

AidanV commented Nov 2, 2025

I think that the vast majority of the time users would prefer this new behavior, but I am happy to discuss putting it behind a setting or not having it at all.

@maxdeviant maxdeviant changed the title vim: Each vim repeat is one transaction Nov 2, 2025
@ConradIrwin
Copy link
Member

@AidanV Can you please verify what vim does and add a test for this.

@AidanV
Copy link
Contributor Author

AidanV commented Nov 5, 2025

This is the behavior that Vim does. I will keep trying to add a test for this, but the testing framework seems to treat each dispatched keystroke as its own transaction (correct me if I am wrong). This makes any test I do succeed even without these changes, despite it not working correctly in the actual editor.

@ConradIrwin ConradIrwin enabled auto-merge (squash) November 13, 2025 06:34
@ConradIrwin
Copy link
Member

I added a test that works around the default test behavior (and verified it fails before your fix).

Thanks for sending this!

@ConradIrwin ConradIrwin merged commit 1fc0642 into zed-industries:main Nov 13, 2025
36 of 38 checks passed
11happy pushed a commit to 11happy/zed that referenced this pull request Dec 1, 2025
Release Notes:

- Pressing `u` after multiple `.` in rapid succession will now only undo
the latest repeat instead of all repeats.

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement community champion Issues filed by our amazing community champions! 🫶

2 participants