From 259846dcf1829b378ffd44dc05d9f32b8e794735 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 28 May 2014 10:52:17 +0200 Subject: add some cli bindings the default bash command line bindings have been added ctrl+i -> expand or complete ctrl+j -> accept line ctrl+p -> up line in history ctrl+n -> down line in history ctrl+f -> forward char ctrl+b -> backward char --- VimperatorrcBuilder.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/VimperatorrcBuilder.py b/VimperatorrcBuilder.py index 8dd1658..a73f329 100644 --- a/VimperatorrcBuilder.py +++ b/VimperatorrcBuilder.py @@ -23,6 +23,15 @@ class VimperatorrcBuilder(): bang_shortcuts = {} default_engine = 'duckduckgo' + cli_bindings = { + '': '', + '': '', + '': '', + '': '', + '': '', + '': '', + } + def __init__(self): pass @@ -59,5 +68,11 @@ class VimperatorrcBuilder(): for key in self.bang_shortcuts: output += "noremap '" + self.bang_shortcuts_pfx[0] + key + "' o!" + self.bang_shortcuts[key] + ' \n' output += "noremap '" + self.bang_shortcuts_pfx[1] + key + "' t!" + self.bang_shortcuts[key] + ' \n' + + output += '\n" command line bindings\n' + for key in self.cli_bindings: + output += 'cnoremap ' + key + ' ' + self.cli_bindings[key] + '\n' + output += 'inoremap ' + key + ' ' + self.cli_bindings[key] + '\n' + return output -- cgit v1.2.3