Jump to next char with multiple selections
Author: sucrecacaoCreated Dec 27, 2020Updated Dec 27, 2020
Labelsbug
Xi-Editor Issue Template
- I have searched existing issues and could not find my issue.
- I have studied the documentation.
I'm trying to mimic vim/kakoune f and t normal command, to jump to the first occurrence of a character.
To do so I call find ( with the single character as parameter) followed by find_next .
It works perfectly with one selection but with multiple selection it doesn't do the expected behaviour.
Lets say we have the 3 follwing lines with 3 selections at the beginning of each lines, and we want to jump to the next X
[o]ooooXoo
[o]ooooooooXoo
[o]ooXooooooExpected
find X -> find_next
ooooo[X]oo
ooooooooo[X]oo
ooo[X]ooooooActual
find X -> find_next
ooooo[X]oo
oooooooooXoo <---- next selections get deleted
oooXoooooo <----Source: xi-editor/xi-editor