hadronized / hop.kak

A simple hinting Rust binary to be used in the Kakoune editor
Other
16 stars 1 forks source link

Feature requst: post-hop actions #3

Open postsolar opened 10 months ago

postsolar commented 10 months ago

Maybe I missed something in the README but I'm not seeing a way to execute actions after the selection has been selected. Is something like this currently possible?

I was going to add two commands examples to the README, for adding a selection as a new cursor and extending current selection. These would start with Z before the hop and end with <a-z>a and <a-z>u respectively after the hop.

I could maybe dig into source code to see what happens and what could be hooked into, but I think it would be awesome to have an established interface for this.

postsolar commented 10 months ago

Another use case is that it would maybe also enable user-controlled dimming.

hadronized commented 10 months ago

Yep, I thought about that. It could be part of a next release, indeed. Currently, what the binary does is simply taking your selections, and filtering them (by saving setting the ^ register and resuming with Z).