Justin M. Keyes
64a301184e
feat(input)!: CmdAtom event #41297
...
Problem:
There is no unified notion of a "user action".
Vim processes input by one-char-at-a-time, and mostly throws away any
hints it might gather about the user's action, with one exception: it
stores the last _edit_ action (the "redo buffer", encoded as
unstructured `["x][v][count]body` bytes).
Plugins can only observe individual keys (vim.on_key) and high-level
effects (TextChanged, CursorMoved).
Solution:
- Users can subscribe to `CmdAtom` events to handle any user action.
- Event is deferred; handlers cannot cancel or interfere with user
actions.
- Capture `CmdSpec` from the normal/insert/visual subsystems.
- typeahead/readahead stay unstructured (`buffheader_T`): they are key
streams, not commands.
- the redo/record buffers become `StringBuilder`: fewer
allocations/copies.
- Repurpose the input/redo engine to accept `CmdSpec` objects.
"atom": one repeatable unit of user input, as a resolved (post-mapping)
keysequence plus structured fields. Only user actions, not `:normal`,
API calls, or non-"t" `feedkeys`.
BREAKING: dot-repeat of an Insert session, replays the entire session
including cursor-moves (:help ins-repeat).
BREAKING: dot-repeat of a Visual operation, replays the selection
instead of operating on a fixed-size region.
2026-08-14 09:30:31 -04:00
..
2026-06-22 15:56:26 +02:00
2026-08-06 10:27:29 +02:00
2026-08-14 09:30:31 -04:00
2026-08-01 17:48:32 -04:00
2026-05-16 10:14:18 -04:00
2026-06-29 23:22:52 +02:00
2025-11-28 10:10:31 +08:00
2026-07-18 04:29:51 -04:00
2026-08-14 09:30:31 -04:00
2026-02-12 13:46:45 +01:00
2026-05-13 13:14:07 +01:00
2024-05-15 23:19:26 +02:00
2026-07-12 11:57:17 -04:00
2026-07-18 04:29:51 -04:00
2026-06-29 13:10:31 -04:00
2026-08-04 05:19:54 -04:00
2026-08-01 17:48:32 -04:00
2025-11-10 11:13:56 +08:00
2026-08-14 07:46:52 +08:00
2026-03-16 07:46:34 -04:00
2026-08-09 00:49:20 +00:00
2026-08-01 17:48:32 -04:00
2025-12-06 20:33:02 -05:00
2025-05-03 10:08:53 -07:00
2025-05-03 10:08:53 -07:00
2023-06-25 17:14:28 +02:00
2026-04-03 21:38:44 +08:00
2025-09-07 20:45:22 -07:00
2026-08-04 06:20:16 -04:00
2026-07-29 09:03:53 -04:00
2026-04-18 15:38:59 -04:00
2026-03-15 19:02:49 -04:00
2025-11-10 11:13:56 +08:00
2026-07-27 06:25:21 -04:00
2026-01-27 17:14:57 -05:00
2025-11-10 11:13:56 +08:00
2026-08-04 20:48:44 +02:00
2026-08-14 09:30:31 -04:00
2026-07-27 11:12:47 -04:00
2026-04-16 10:48:11 -04:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-01-26 07:05:42 +08:00
2026-01-26 07:05:42 +08:00
2026-08-07 11:27:19 -04:00
2026-03-23 17:41:48 -04:00
2026-07-13 19:44:15 +02:00
2026-06-23 10:08:50 -04:00
2026-08-06 10:27:29 +02:00
2025-12-15 13:55:15 -05:00
2026-03-16 10:29:58 +01:00
2026-07-25 10:36:56 -07:00
2026-04-17 09:50:03 +08:00
2026-08-07 16:10:02 -04:00
2025-11-10 11:13:56 +08:00
2026-08-01 17:48:32 -04:00
2025-09-28 20:57:59 -07:00
2026-08-06 10:27:29 +02:00
2026-05-07 10:36:55 +02:00
2026-07-18 04:29:51 -04:00
2026-08-14 09:30:31 -04:00
2026-05-14 13:13:30 -04:00
2026-08-14 09:30:31 -04:00
2026-07-31 19:20:34 +03:00
2026-05-10 14:22:31 -04:00
2025-11-10 11:13:56 +08:00
2025-12-15 13:55:15 -05:00
2025-11-10 11:13:56 +08:00
2023-01-01 15:05:13 +01:00
2026-04-16 22:19:48 +08:00
2025-05-20 00:21:30 +00:00
2026-08-11 04:08:33 -04:00
2026-02-04 13:53:08 -05:00
2026-05-29 09:35:37 +08:00
2026-07-27 11:12:47 -04:00
2026-05-16 08:07:22 +08:00
2025-11-10 11:13:56 +08:00
2026-05-20 05:21:27 -04:00
2026-08-14 09:30:31 -04:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-07-26 09:00:30 +08:00
2026-07-31 21:50:04 +02:00
2026-04-22 18:25:07 -04:00
2026-08-14 08:47:30 +08:00
2026-05-17 10:02:12 -04:00
2026-08-01 17:48:32 -04:00
2026-08-06 10:27:29 +02:00
2025-11-10 11:13:56 +08:00
2026-08-01 17:48:32 -04:00
2026-07-30 05:50:39 -04:00
2026-06-08 11:43:52 +08:00
2026-03-24 00:14:55 +01:00
2026-04-17 09:50:03 +08:00
2026-05-07 10:36:48 +02:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-06-01 01:04:30 +00:00
2026-05-07 08:32:27 -04:00
2026-06-26 06:17:00 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-24 00:10:36 +00:00
2026-07-25 12:47:51 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-07-13 17:57:13 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-05-07 08:32:27 -04:00
2026-07-27 06:25:21 -04:00
2026-08-06 10:27:29 +02:00
2026-08-14 09:30:31 -04:00
2026-08-11 10:19:38 +08:00
2026-08-12 08:24:48 +08:00
2026-08-14 09:30:31 -04:00
2026-07-18 04:29:51 -04:00
2026-07-30 15:09:19 -04:00
2026-08-03 15:22:25 -05:00