vim-argumentative icon indicating copy to clipboard operation
vim-argumentative copied to clipboard

Add counts to text objects

Open fdinoff opened this issue 11 years ago • 3 comments

Would it be possible to add counts to the text objects? (Does it even make sense to add counts to text objects?)

fdinoff avatar Aug 05 '14 03:08 fdinoff

I have asked myself this very question. I am not opposed to such a thing however I have not come across the need in my own workflow. I imagine we would mirror the word text objects and target arguments to the right. Do you think this will be useful?

PeterRincker avatar Aug 05 '14 17:08 PeterRincker

I came across it once or twice. Realized it wasn't there and did something else. I think mirroring the word text objects make sense.

I think it would be useful but probably not something I would use often.

fdinoff avatar Aug 05 '14 23:08 fdinoff

Hello, I think a good use-case would be when you have a method as a parameter for another method, and you want to change the parameter of the base method instead of the inner one, something like this:

foo(bar(baz), param)

You are on baz and want to change it to foo(p, param) instead of foo(bar(p), param). It would be useful to be able to type 2ci, or c2i,.

vimeitor avatar Sep 30 '17 22:09 vimeitor