Rename scrollpercent{x,y}
This commit is contained in:
parent
981aab8e7d
commit
b83bf4e238
@ -121,22 +121,22 @@ class QuteBrowser(QApplication):
|
|||||||
args = argv[1:]
|
args = argv[1:]
|
||||||
|
|
||||||
handlers = {
|
handlers = {
|
||||||
'open': self.mainwindow.tabs.openurl,
|
'open': self.mainwindow.tabs.openurl,
|
||||||
'tabopen': self.mainwindow.tabs.tabopen,
|
'tabopen': self.mainwindow.tabs.tabopen,
|
||||||
'quit': self.quit,
|
'quit': self.quit,
|
||||||
'tabclose': self.mainwindow.tabs.cur_close,
|
'tabclose': self.mainwindow.tabs.cur_close,
|
||||||
'tabprev': self.mainwindow.tabs.switch_prev,
|
'tabprev': self.mainwindow.tabs.switch_prev,
|
||||||
'tabnext': self.mainwindow.tabs.switch_next,
|
'tabnext': self.mainwindow.tabs.switch_next,
|
||||||
'reload': self.mainwindow.tabs.cur_reload,
|
'reload': self.mainwindow.tabs.cur_reload,
|
||||||
'stop': self.mainwindow.tabs.cur_stop,
|
'stop': self.mainwindow.tabs.cur_stop,
|
||||||
'back': self.mainwindow.tabs.cur_back,
|
'back': self.mainwindow.tabs.cur_back,
|
||||||
'forward': self.mainwindow.tabs.cur_forward,
|
'forward': self.mainwindow.tabs.cur_forward,
|
||||||
'print': self.mainwindow.tabs.cur_print,
|
'print': self.mainwindow.tabs.cur_print,
|
||||||
'scroll': self.mainwindow.tabs.cur_scroll,
|
'scroll': self.mainwindow.tabs.cur_scroll,
|
||||||
'scrollpercentx': self.mainwindow.tabs.cur_scroll_percent_x,
|
'scroll_perc_y': self.mainwindow.tabs.cur_scroll_percent_x,
|
||||||
'scrollpercenty': self.mainwindow.tabs.cur_scroll_percent_y,
|
'scroll_perc_y': self.mainwindow.tabs.cur_scroll_percent_y,
|
||||||
'undo': self.mainwindow.tabs.undo_close,
|
'undo': self.mainwindow.tabs.undo_close,
|
||||||
'pyeval': self.pyeval,
|
'pyeval': self.pyeval,
|
||||||
}
|
}
|
||||||
|
|
||||||
handler = handlers[cmd]
|
handler = handlers[cmd]
|
||||||
|
@ -81,15 +81,17 @@ class Undo(Command):
|
|||||||
nargs = 0
|
nargs = 0
|
||||||
desc = 'Undo closing a tab'
|
desc = 'Undo closing a tab'
|
||||||
|
|
||||||
class ScrollPercentX(Command):
|
class ScrollPercX(Command):
|
||||||
nargs = '?'
|
nargs = '?'
|
||||||
count = True
|
count = True
|
||||||
hide = True
|
hide = True
|
||||||
|
name = 'scroll_perc_x'
|
||||||
|
|
||||||
class ScrollPercentY(Command):
|
class ScrollPercY(Command):
|
||||||
nargs = '?'
|
nargs = '?'
|
||||||
count = True
|
count = True
|
||||||
hide = True
|
hide = True
|
||||||
|
name = 'scroll_perc_y'
|
||||||
|
|
||||||
class PyEval(Command):
|
class PyEval(Command):
|
||||||
nargs = 1
|
nargs = 1
|
||||||
|
@ -19,8 +19,8 @@ default_config = {
|
|||||||
'k': 'scroll 0 -50',
|
'k': 'scroll 0 -50',
|
||||||
'l': 'scroll 50 0',
|
'l': 'scroll 50 0',
|
||||||
'u': 'undo',
|
'u': 'undo',
|
||||||
'gg': 'scrollpercenty 0',
|
'gg': 'scroll_perc_y 0',
|
||||||
'G': 'scrollpercenty',
|
'G': 'scroll_perc_y',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user