nvim-treesitter-textobjects icon indicating copy to clipboard operation
nvim-treesitter-textobjects copied to clipboard

Number repeat

Open salastro opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When I type 2<leader>a I expect the parameter to be moved twice. It does not.

Describe the solution you'd like To be able to type a number before the keybind and for the function to be repeated that number of times.

Describe alternatives you've considered Record a macro with the movement and then repeat it. This does work.

salastro avatar May 03 '22 23:05 salastro

Would also love this. It would also be nice to have some shortcuts for moving back and forth. The way "," and ";" work for "f" and "F". Now a lot of the movements are impractical as they require a lot of typing. Moving by function is like that. Because there might be a lot of lambdas in front of the target function.

cristiansofronie avatar May 25 '22 19:05 cristiansofronie

@cristiansofronie Finally the ; and , repeat is implemented. Not yet the number repeat, but you can use a dot repeat which is practical enough.

kiyoon avatar Jan 17 '23 12:01 kiyoon