Rename scrollpercent{x,y}
This commit is contained in:
parent
981aab8e7d
commit
b83bf4e238
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user