Also use @cmdutils.argument
for :bind
This was added in master and not updated when this branch was rebased on master.
This commit is contained in:
parent
3a33bc42a6
commit
cdcd276a1a
@ -150,10 +150,10 @@ class KeyConfigParser(QObject):
|
|||||||
data = str(self)
|
data = str(self)
|
||||||
f.write(data)
|
f.write(data)
|
||||||
|
|
||||||
@cmdutils.register(instance='key-config', maxsplit=1, no_cmd_split=True,
|
@cmdutils.register(instance='key-config', maxsplit=1, no_cmd_split=True)
|
||||||
win_id='win_id',
|
@cmdutils.argument('win_id', win_id=True)
|
||||||
completion=[usertypes.Completion.empty,
|
@cmdutils.argument('key', completion=usertypes.Completion.empty)
|
||||||
usertypes.Completion.command])
|
@cmdutils.argument('command', completion=usertypes.Completion.command)
|
||||||
def bind(self, key, win_id, command=None, *, mode=None, force=False):
|
def bind(self, key, win_id, command=None, *, mode=None, force=False):
|
||||||
"""Bind a key to a command.
|
"""Bind a key to a command.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user