Fix hint command arguments.
This commit is contained in:
parent
a3f722e151
commit
b9216bca15
@ -257,7 +257,7 @@ class CommandDispatcher:
|
|||||||
|
|
||||||
@cmdutils.register(instance='mainwindow.tabs.cmd')
|
@cmdutils.register(instance='mainwindow.tabs.cmd')
|
||||||
def hint(self, group=webelem.Group.all, target=hints.Target.normal,
|
def hint(self, group=webelem.Group.all, target=hints.Target.normal,
|
||||||
args=None):
|
*args : {'nargs': '*'}):
|
||||||
"""Start hinting.
|
"""Start hinting.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@ -282,7 +282,7 @@ class CommandDispatcher:
|
|||||||
link.
|
link.
|
||||||
- `spawn`: Spawn a command.
|
- `spawn`: Spawn a command.
|
||||||
|
|
||||||
args: Arguments for spawn/userscript/fill.
|
*args: Arguments for spawn/userscript/fill.
|
||||||
|
|
||||||
- With `spawn`: The executable and arguments to spawn.
|
- With `spawn`: The executable and arguments to spawn.
|
||||||
`{hint-url}` will get replaced by the selected
|
`{hint-url}` will get replaced by the selected
|
||||||
@ -297,7 +297,7 @@ class CommandDispatcher:
|
|||||||
if frame is None:
|
if frame is None:
|
||||||
raise cmdexc.CommandError("No frame focused!")
|
raise cmdexc.CommandError("No frame focused!")
|
||||||
widget.hintmanager.start(frame, self._tabs.current_url(), group,
|
widget.hintmanager.start(frame, self._tabs.current_url(), group,
|
||||||
target, args)
|
target, *args)
|
||||||
|
|
||||||
@cmdutils.register(instance='mainwindow.tabs.cmd', hide=True)
|
@cmdutils.register(instance='mainwindow.tabs.cmd', hide=True)
|
||||||
def follow_hint(self):
|
def follow_hint(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user