dance icon indicating copy to clipboard operation
dance copied to clipboard

Replaying issues

Open 71 opened this issue 3 years ago • 2 comments

This issue should be used for tracking bugs related to replaying actions, i.e. macros and repeating the last actions.

71 avatar Mar 08 '22 20:03 71

I have an array of model names and want to do a simple transformation to append "Model" at the end of each. When I record a macro, it correctly repeats the text I typed in insert mode, but not at the point in the text I expected, and it jumps much farther down than expected based on my normal mode movements.

Before (cursor starts on the second o of Foo

[
    Foo,
    Bar,
    Baz,
    Qux,
]

Macro

waModel<esc>bj

After replaying the macro once

image

I've tried this with both selectionBehavior: character and the default behavior.

tylerlaprade avatar Nov 01 '24 15:11 tylerlaprade

dance.run commands should be able to be annotated on whether it's an edit or a seek or a select, so that "repeat" commands can take that into consideration and repeat them.

forivall avatar Jun 24 '25 21:06 forivall