ideavim-sneak
ideavim-sneak copied to clipboard
Support for operators
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
)
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
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...
I guess this and #9 can be resolved simultaneously by switching to MotionActionHandler
API for this motion
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" :)
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!
+1