Benjamin Carlsson
9c7edd4bc3
Add Vim undo to the TUI composer ( #41941 )
...
## Why
Composer drafts include attachments, mention targets, and deferred paste payloads in addition to visible text. Vim undo needs to restore that complete state as a single edit.
## What changed
- Add bounded, draft-level Vim undo history, with `u` as the configurable default binding in normal mode.
- Group complete Vim commands and insert sessions into undo steps, including direct composer changes such as pastes and attachments.
- Preserve undo, repeat, and search state when a reverse-history preview is canceled, and start fresh history when another prompt is accepted.
## Testing
- Cover grouped edits, custom bindings, history and search interactions, attachments, and large paste payloads.
GitOrigin-RevId: 12ecdb3c34a2d66f5d856aa2f82dc15bd91b230b
2026-09-01 00:21:22 +00:00
..
2026-08-18 00:31:51 +00:00
2026-08-17 23:47:55 +00:00
2026-07-15 01:36:44 +00:00
2026-05-13 07:13:57 +00:00
2026-08-05 08:04:15 +00:00
2026-08-16 03:14:17 +00:00
2026-07-18 03:58:20 +00:00
2026-08-23 01:29:48 +00:00
2026-08-23 01:29:48 +00:00
2026-07-17 23:11:07 +00:00
2026-07-18 03:58:20 +00:00
2026-06-11 22:26:31 -07:00
2026-08-18 21:43:22 +00:00
2026-05-14 20:51:08 -07:00
2026-04-27 09:51:12 -07:00
2026-07-18 03:58:20 +00:00
2026-07-18 03:58:20 +00:00
2026-07-18 03:58:20 +00:00
2026-07-18 03:58:20 +00:00
2026-07-18 03:58:20 +00:00
2026-06-08 17:03:52 -07:00
2026-07-20 21:00:17 +00:00
2026-07-21 19:08:58 +00:00
2026-07-21 15:53:33 +00:00
2026-07-11 17:47:17 +00:00
2026-07-11 17:47:17 +00:00
2026-07-11 17:47:17 +00:00
2026-06-05 08:34:34 -07:00
2026-07-22 15:34:11 +00:00
2026-07-22 15:34:11 +00:00
2026-07-19 21:34:05 +00:00
2026-07-17 23:19:12 +00:00
2026-05-26 16:08:45 -03:00
2026-05-26 16:08:45 -03:00
2026-08-21 18:47:03 +00:00
2026-08-21 18:47:03 +00:00
2026-04-28 12:52:25 -03:00
2026-05-04 14:40:50 -03:00
2026-05-04 14:40:50 -03:00
2026-05-04 14:40:50 -03:00
2026-08-31 21:53:02 +00:00
2026-09-01 00:21:22 +00:00
2026-09-01 00:21:22 +00:00
2026-09-01 00:21:22 +00:00
2026-09-01 00:21:22 +00:00
2026-09-01 00:21:22 +00:00
2026-08-25 02:34:04 +00:00
2026-09-01 00:21:22 +00:00
2026-06-08 17:02:36 -07:00
2026-04-27 13:40:46 -07:00
2026-05-27 16:18:24 -03:00
2026-05-09 13:58:10 -03:00
2026-05-25 15:42:28 -03:00
2026-05-27 20:27:55 +00:00
2026-07-29 14:01:31 +00:00
2026-05-27 20:27:55 +00:00
2026-05-27 20:27:55 +00:00
2026-05-27 20:27:55 +00:00
2026-05-27 16:18:24 -03:00
2026-08-24 20:04:52 +00:00
2026-08-26 01:20:40 +00:00
2026-08-26 01:20:40 +00:00
2026-08-04 19:12:46 +00:00
2026-08-04 18:59:32 +00:00
2026-07-31 18:58:32 +00:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-08-07 03:54:23 +00:00
2026-05-05 13:32:54 -07:00
2026-05-05 13:32:54 -07:00
2026-08-15 17:30:13 +00:00
2026-08-15 17:30:13 +00:00
2026-08-14 20:35:11 +00:00
2026-06-05 08:32:07 -07:00
2026-06-05 08:32:07 -07:00
2026-05-27 18:59:17 +00:00
2026-05-01 09:07:56 -07:00
2026-08-17 20:06:41 +00:00
2026-07-29 13:57:46 +00:00
2026-08-20 07:25:40 +00:00
2026-08-20 07:25:40 +00:00