detect subl/nano for editor