Support multiple commands
This commit is contained in:
parent
88ea6e62b1
commit
8fee32e6c4
1
TODO
1
TODO
@ -47,7 +47,6 @@ Hiding scrollbars
|
|||||||
:bind
|
:bind
|
||||||
Ctrl+A/X to increase/decrease last number in URL
|
Ctrl+A/X to increase/decrease last number in URL
|
||||||
position remembering
|
position remembering
|
||||||
multiple commands with ;
|
|
||||||
|
|
||||||
Other stuff
|
Other stuff
|
||||||
===========
|
===========
|
||||||
|
@ -155,6 +155,10 @@ class CommandParser(QObject):
|
|||||||
arguments.
|
arguments.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
if ';;' in text:
|
||||||
|
for sub in text.split(';;'):
|
||||||
|
self.run(sub, count, ignore_exc)
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
self._parse(text)
|
self._parse(text)
|
||||||
self._check()
|
self._check()
|
||||||
|
@ -75,6 +75,7 @@ wiki = ${wikipedia}
|
|||||||
# For simple keys (no @ signs), a capital letter means the key is pressed with
|
# For simple keys (no @ signs), a capital letter means the key is pressed with
|
||||||
# Shift. For modifier keys (with @ signs), you need to explicitely add "Shift-"
|
# Shift. For modifier keys (with @ signs), you need to explicitely add "Shift-"
|
||||||
# to match a key pressed with shift.
|
# to match a key pressed with shift.
|
||||||
|
# You can bind multiple commands by separating them with ";;".
|
||||||
o = open
|
o = open
|
||||||
go = opencur
|
go = opencur
|
||||||
O = tabopen
|
O = tabopen
|
||||||
|
Loading…
Reference in New Issue
Block a user