Mishkun / ideavim-sneak

Vim-sneak for IdeaVim!
Other
45 stars 10 forks source link

Support for operators #11

Open strikerlulu opened 3 years ago

strikerlulu commented 3 years ago

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)

Mishkun commented 3 years ago

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
strikerlulu commented 3 years ago

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...

Mishkun commented 3 years ago

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

dimsuz commented 3 years ago

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" :)

christian-olsen commented 1 year ago

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!

johnnypea commented 12 months ago

+1