coolapso / hugo-theme-terminalcv

An easy to setup and (almost) fully customizable command line style CV theme for HUGO
MIT License
123 stars 22 forks source link

Enter should result in a newline instead of an 'unknown command' #11

Closed davidem closed 4 months ago

davidem commented 4 months ago

Hi Carlos,

awesome theme for Hugo! Thanks!

One tiny thing that annoyed me was that when you press 'enter', the prompt came back with an 'unknown command' error. Imho it should simply return a newline. Only when a real unknown command is typed, it should return the error.

I've added 2 lines of code to catch '', which fixes it for me. Please check the pull request. Not sure if it is the best way to do this, but it works for me ;)

10

Cheers,

David

coolapso commented 4 months ago

https://github.com/coolapso/terminalcv/releases/tag/v1.1.2