* fix: improve editor handling Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * test: add tests Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>