kak forum question
I have a newbie question/frustration. Let’s say I’m at the beginning of a URL like https://github.com/kale/kakoune/
and I want to change everything until kakoune
. In Vim, I could do c/kak<enter>
. A nice feature of this is that the search is incremental: after typing c/ka
, I can immediately see whether that got me to where I wanted, and if not, I just type another letter.
Does Kakoune have a way of doing this?
I tried three approaches:
-
?kak<enter>
selects everything including “kak”. I’ve tried following that up with<a-?><enter>
or<a-N>
, in the hope that it will unselect, similarly to howH
unselects afterL
. That didn’t work either. -
?ale/<enter>
works, but loses the benefit of incremental search. I have to get it right the first time or start over. -
?(?=kak)<enter>
doesn’t work, since it selects the firstk
. Is this a bug? Even if it did work, it’s sub-optimal. It’s awkward to type and, perhaps more importantly, the incremental search doesn’t work until I type the)
. So, again, I have to get it right the first time.
It’s probably too late to match Vim’s clever behavior (it designed for optimal incremental search: forward search as described above selects until the match, while backwards search selects including the match), as that’s a breaking change. Perhaps asking for <a-N>
to work as in item 1. above is a reasonable request? Or is there a better way that I missed?
Thanks!