vamolessa / pepper

simple and opinionated modal code editor for your terminal
https://vamolessa.github.io/pepper/
373 stars 15 forks source link

a bit "blocked" when running the program without opening a buffer #13

Closed brunobord closed 3 years ago

brunobord commented 3 years ago

Hello,

I've played around with pepper, and I was a little bit puzzled with the following course of actions:

I've launched the pepper executable without any "file" argument:

$ pepper

After that, it looks like it's impossible to add any text or anything (you can't switch to "insert" mode, for example). You can't even run the command :save myfile.txt because it throws an error message: error:no buffer opened.

It looks strange but I often open my text editor to type text and thereafter save it to a new file. So far, I didn't see how to do that with pepper, but I may be wrong. The only solution I can think of right now is to know how you're going to name your file beforehand (either by doing a touch myfile.txt or launch pepper with myfile.txt as an argument.

Do you see any better way, so far?

vamolessa commented 3 years ago

Oh, that's because there's no buffer opened. You can use the open <file-path> command to open a buffer and then you can start editing it.

Maybe we could add a little help when there's no buffer opened. Or add the "use the 'open' command" tip to the error:no buffer opened message.

vamolessa commented 3 years ago

Gonna close it. If you need further help, please reopen.