Support multiple commands

This commit is contained in:
Florian Bruhin 2014-02-18 10:41:00 +01:00
parent 88ea6e62b1
commit 8fee32e6c4
3 changed files with 5 additions and 1 deletions

1
TODO
View File

@ -47,7 +47,6 @@ Hiding scrollbars
:bind
Ctrl+A/X to increase/decrease last number in URL
position remembering
multiple commands with ;
Other stuff
===========

View File

@ -155,6 +155,10 @@ class CommandParser(QObject):
arguments.
"""
if ';;' in text:
for sub in text.split(';;'):
self.run(sub, count, ignore_exc)
return
try:
self._parse(text)
self._check()

View File

@ -75,6 +75,7 @@ wiki = ${wikipedia}
# 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-"
# to match a key pressed with shift.
# You can bind multiple commands by separating them with ";;".
o = open
go = opencur
O = tabopen