Add prompt for user to select editor

If the editor is unset, prompts the user to select one. If stdout isn't TTY, it exits as before. (i dunno if anyone is using this non-interactively, but best not to break stuff)