nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 44cc2b16331bc9caf12a41843ccb064522badc48
parent 18bd544fa57a838c5a37087c9692af1303454df3
Author: Samuel Walladge <samuel@swalladge.id.au>
Date:   Tue, 31 May 2016 09:43:29 +0930

allow binding action to space key (ref issue #24)

Diffstat:
Msimplenote_cli/config.py | 2+-
Msimplenote_cli/sncli.py | 3+++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/simplenote_cli/config.py b/simplenote_cli/config.py @@ -33,7 +33,7 @@ def __init__(self, custom_file=None): 'kb_sync' : 'S', 'kb_down' : 'j', 'kb_up' : 'k', - 'kb_page_down' : ' ', + 'kb_page_down' : 'space', 'kb_page_up' : 'b', 'kb_half_page_down' : 'ctrl d', 'kb_half_page_up' : 'ctrl u', diff --git a/simplenote_cli/sncli.py b/simplenote_cli/sncli.py @@ -399,6 +399,9 @@ def gui_pipe_input(self, args, cmd): self.gui_reset() def gui_frame_keypress(self, size, key): + # convert space character into name + if key == ' ': + key = 'space' lb = self.gui_body_get()