IMPL: implement editor selection like in native rebase