added experimental external editor option, needs testing on windows and osx