Skip to content

Commit 8bf2cdc

Browse files
committed
test(replay): s/ReplayCapture/ReplaySave
makes more sense also add > as keymap for ReplayNext
1 parent 30d229c commit 8bf2cdc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/manual/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Once loaded, you can use these commands in Neovim:
2828
- `:ReplayStop` - Stop auto-replay
2929
- `:ReplayReset` - Reset to the beginning (clears buffer and resets event index)
3030
- `:ReplayClear` - Clear output buffer without resetting event index
31-
- `:ReplayCapture [file]` - Capture snapshot of current buffer state (auto-derives filename from loaded file). Used to generated expected files for unit tests
31+
- `:ReplaySave [file]` - Save snapshot of current buffer state (auto-derives filename from loaded file). Used to generated expected files for unit tests
3232
- `:ReplayStatus` - Show current replay status
3333
- `:ReplayHeadless` - Enable headless mode (useful for an AI agent to see replays)
3434

tests/manual/streaming_renderer_replay.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,21 +270,21 @@ function M.start(opts)
270270
' :ReplayStop - Stop auto-replay (<leader>s)',
271271
' :ReplayReset - Reset to beginning (<leader>r)',
272272
' :ReplayClear - Clear output buffer (<leader>c)',
273-
' :ReplayCapture [file] - Capture snapshot (auto-derives from loaded file)',
273+
' :ReplaySave [file] - Save snapshot (auto-derives from loaded file)',
274274
' :ReplayStatus - Show status',
275275
})
276276

277-
vim.api.nvim_create_user_command('ReplayLoad', function(opts)
278-
local file = opts.args ~= '' and opts.args or nil
277+
vim.api.nvim_create_user_command('ReplayLoad', function(cmd_opts)
278+
local file = cmd_opts.args ~= '' and cmd_opts.args or nil
279279
M.load_events(file)
280280
end, { nargs = '?', desc = 'Load event data file', complete = 'file' })
281281

282282
vim.api.nvim_create_user_command('ReplayNext', function()
283283
M.replay_next()
284284
end, { desc = 'Replay next event' })
285285

286-
vim.api.nvim_create_user_command('ReplayAll', function(opts)
287-
local delay = tonumber(opts.args) or 50
286+
vim.api.nvim_create_user_command('ReplayAll', function(cmd_opts)
287+
local delay = tonumber(cmd_opts.args) or 50
288288
M.replay_all(delay)
289289
end, { nargs = '?', desc = 'Replay all events with delay (default 50ms)' })
290290

@@ -304,8 +304,8 @@ function M.start(opts)
304304
M.show_status()
305305
end, { desc = 'Show replay status' })
306306

307-
vim.api.nvim_create_user_command('ReplayCapture', function(opts)
308-
local filename = opts.args ~= '' and opts.args or nil
307+
vim.api.nvim_create_user_command('ReplaySave', function(cmd_opts)
308+
local filename = cmd_opts.args ~= '' and cmd_opts.args or nil
309309
if not filename and M.last_loaded_file then
310310
filename = M.get_expected_filename(M.last_loaded_file)
311311
end

0 commit comments

Comments
 (0)