71 / dance

Make your cursors dance with Kakoune-like modal editing in VS Code.
https://marketplace.visualstudio.com/items?itemName=gregoire.dance
ISC License
435 stars 55 forks source link

Add helix `goto_word` command #339

Open forivall opened 1 month ago

forivall commented 1 month ago

I've tried out leap a bit, but it's not quite ideal for me, and i tried out goto_word (g w) in helix, and it works a bit more nicely for me, so I'd love to port it to dance (it also helps improve dance's helix capabilities :smile: )

It's similar to the existing leap implementation, so it shouldnt be too hard to implement (as in, if i can get around to it, i'm open to implementing it).

For reference, Helix's implementation: https://github.com/helix-editor/helix/blob/c9d829a26dac81a57f18796308d3806d77d0c439/helix-term/src/commands.rs#L6109

dance's leap 71/dance@7bf1463/src/commands/seek.ts#L628

71 commented 1 month ago

Ah, I wasn't aware of g w (which seems fairly new; it didn't work on 23.10 but it does work on 24.07).

It seems pretty useful and may indeed be better than leap (since it is fairly limited in Dance). With that said I don't have time to work on it myself, unfortunately.

forivall commented 1 month ago

Ah, yeah, looks like it's pretty new, and was added in 24.03 - https://github.com/helix-editor/helix/pull/8875