slap-editor / slap

Sublime-like terminal-based text editor
MIT License
6.14k stars 217 forks source link

Slap needs to open a blank buffer or at least print an error if it can't find its target #347

Open DamnedScholar opened 8 years ago

DamnedScholar commented 8 years ago

I have both a Windows 10 machine running cmd and a Manjaro machine running zsh and in both cases, if I try to invoke slap with a file name that doesn't exist, it thinks for a little while and then drops me back at the prompt with no indication of why it failed to open. Standard behavior for editors is to open a blank buffer if they can't find a target with that name (nano, emacs, and atom invocations all act like that).

dbkaplun commented 8 years ago

I can confirm. I may not have time this week to fix it, but if it's urgent feel free to file a PR and I will take a look at it when I can! Thanks for reporting.