Open blasco opened 5 years ago
Would you mind giving an example to reproduce the problem? It’s hard to answer, because there are several vague points in your description. (What is the custom operator you used? What is the new definition of textobj#line#select_a
? And so on.)
I would like to be able to do something like "3gUal" and that it capitalizes the next following 3 lines:
Okay, I got it.
First of all, a count in 3gUal
doesn’t mean how many times to repeat in general. Even if that count just means a repeat count, there is no obvious way to support the repeating behavior for all custom text objects at a framework level. That’s why vim-textobj-user doesn’t handle count for custom text objects.
So that you have to write code to handle count in textobj#line#select_a
.
Makes sense, then I'll try to add that functionality. Thank you for the guidance and inspiration kana.
As mentioned in this issue: https://github.com/kana/vim-textobj-line/issues/3
I would like to be able to repeat customs operators over lines. My solution is something like this:
i: The text in the line, same as in here I: The text in the line plus trailing whitespaces a: the complete line, I should end in the next line.
I've managed to add the different modifiers
But I don't know how to achieve the repeatability. I changed 'a' to 'V' mode, which now works with the delete operator, but not with other operators as I'm still in the same line.
I would like to end in the next line after applying the operation. Does this make sense and is it possible?