Updated bindings in __main__.
This commit is contained in:
@@ -45,7 +45,10 @@ def main():
|
|||||||
config = Config()
|
config = Config()
|
||||||
config.update(**fargs)
|
config.update(**fargs)
|
||||||
config.update(**args)
|
config.update(**args)
|
||||||
config.keymap.update(**bindings)
|
|
||||||
|
# If key bindings are supplied in the config file, overwrite the defaults
|
||||||
|
if bindings:
|
||||||
|
config.keymap.set_bindings(bindings)
|
||||||
|
|
||||||
# Copy the default config file and quit
|
# Copy the default config file and quit
|
||||||
if config['copy_config']:
|
if config['copy_config']:
|
||||||
|
|||||||
@@ -610,6 +610,7 @@ class KeyMap(object):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, bindings):
|
def __init__(self, bindings):
|
||||||
|
self._keymap = None
|
||||||
self.set_bindings(bindings)
|
self.set_bindings(bindings)
|
||||||
|
|
||||||
def set_bindings(self, bindings):
|
def set_bindings(self, bindings):
|
||||||
|
|||||||
Reference in New Issue
Block a user