Rename scrollpercent{x,y}

This commit is contained in:
Florian Bruhin 2014-01-28 06:52:59 +01:00
parent 981aab8e7d
commit b83bf4e238
3 changed files with 22 additions and 20 deletions

View File

@ -121,22 +121,22 @@ class QuteBrowser(QApplication):
args = argv[1:]
handlers = {
'open': self.mainwindow.tabs.openurl,
'tabopen': self.mainwindow.tabs.tabopen,
'quit': self.quit,
'tabclose': self.mainwindow.tabs.cur_close,
'tabprev': self.mainwindow.tabs.switch_prev,
'tabnext': self.mainwindow.tabs.switch_next,
'reload': self.mainwindow.tabs.cur_reload,
'stop': self.mainwindow.tabs.cur_stop,
'back': self.mainwindow.tabs.cur_back,
'forward': self.mainwindow.tabs.cur_forward,
'print': self.mainwindow.tabs.cur_print,
'scroll': self.mainwindow.tabs.cur_scroll,
'scrollpercentx': self.mainwindow.tabs.cur_scroll_percent_x,
'scrollpercenty': self.mainwindow.tabs.cur_scroll_percent_y,
'undo': self.mainwindow.tabs.undo_close,
'pyeval': self.pyeval,
'open': self.mainwindow.tabs.openurl,
'tabopen': self.mainwindow.tabs.tabopen,
'quit': self.quit,
'tabclose': self.mainwindow.tabs.cur_close,
'tabprev': self.mainwindow.tabs.switch_prev,
'tabnext': self.mainwindow.tabs.switch_next,
'reload': self.mainwindow.tabs.cur_reload,
'stop': self.mainwindow.tabs.cur_stop,
'back': self.mainwindow.tabs.cur_back,
'forward': self.mainwindow.tabs.cur_forward,
'print': self.mainwindow.tabs.cur_print,
'scroll': self.mainwindow.tabs.cur_scroll,
'scroll_perc_y': self.mainwindow.tabs.cur_scroll_percent_x,
'scroll_perc_y': self.mainwindow.tabs.cur_scroll_percent_y,
'undo': self.mainwindow.tabs.undo_close,
'pyeval': self.pyeval,
}
handler = handlers[cmd]

View File

@ -81,15 +81,17 @@ class Undo(Command):
nargs = 0
desc = 'Undo closing a tab'
class ScrollPercentX(Command):
class ScrollPercX(Command):
nargs = '?'
count = True
hide = True
name = 'scroll_perc_x'
class ScrollPercentY(Command):
class ScrollPercY(Command):
nargs = '?'
count = True
hide = True
name = 'scroll_perc_y'
class PyEval(Command):
nargs = 1

View File

@ -19,8 +19,8 @@ default_config = {
'k': 'scroll 0 -50',
'l': 'scroll 50 0',
'u': 'undo',
'gg': 'scrollpercenty 0',
'G': 'scrollpercenty',
'gg': 'scroll_perc_y 0',
'G': 'scroll_perc_y',
}
}