insanum / sncli

Simplenote CLI
MIT License
396 stars 34 forks source link

Spacebar as keybinding #27

Closed retrography closed 8 years ago

retrography commented 8 years ago

Is there any way to bind spacebar to a function with the current configuration files?

samuelallan72 commented 8 years ago

This wasn't previously possible due to configparser ignoring whitespace-only values (sets them to empty strings). Commit 44cc2b1 fixes this by allowing you to use the space keyword to bind spacebar to an action. See also the urwid article on user input for examples of how to format other keybindings. tab and enter work as well (for tab and enter keys that is).

retrography commented 8 years ago

thanks!