ideavim-sneak icon indicating copy to clipboard operation
ideavim-sneak copied to clipboard

Support for operators

Open strikerlulu opened this issue 4 years ago • 6 comments

like there is nmap s / S shouldn't there be a omap z / Z & x / X ?(z would act as f and x as t)

strikerlulu avatar Nov 19 '20 12:11 strikerlulu

Interesting feature. I personally didn't use it that much. Can you elaborate on usecase examples? Perfect if you can use notation like this, using | to frame cursor position:

before:

quick bro|w|n fox jumped over

command: smp after:

quick brown fox ju|m|ped over

Mishkun avatar Nov 19 '20 16:11 Mishkun

before:

quick bro|w|n fox jumped over

command: dzmp after:

quick bro|e|d over

before:

quick bro|w|n fox jumped over

command: dxmp after:

quick bro|m|ped over

Same for other operators like c,y,etc...

strikerlulu avatar Nov 19 '20 18:11 strikerlulu

I guess this and #9 can be resolved simultaneously by switching to MotionActionHandler API for this motion

Mishkun avatar Nov 19 '20 19:11 Mishkun

I too vote for this feature. The second thing I've tried after installing this plugin was to delete everything till "co" in "how so, coworker" by issuing dtsco, but ended up deleting to "s" in "so", leaving me with "so, coworker" :)

dimsuz avatar Nov 25 '20 13:11 dimsuz

This would be great to have! I regularly use ct<char>, but it's often not precise enough. Sneak solves exactly that problem for navigation, so it's a natural fit for operators too!

christian-olsen avatar Sep 06 '23 15:09 christian-olsen

+1

johnnypea avatar Sep 12 '23 13:09 johnnypea