-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More completions #32
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
For |
Completion for |
Another one: Commands and their arguments with This is only a partial solution: diff --git i/qutebrowser/completion/models/miscmodels.py w/qutebrowser/completion/models/miscmodels.py
index 925f95bbb..4f44b88e6 100644
--- i/qutebrowser/completion/models/miscmodels.py
+++ w/qutebrowser/completion/models/miscmodels.py
@@ -28,7 +28,7 @@
from qutebrowser.browser import inspector
-def command(*, info):
+def command(*_args, info):
"""A CompletionModel filled with non-hidden commands and descriptions."""
model = completionmodel.CompletionModel(column_widths=(20, 60, 20))
cmdlist = util.get_cmd_completions(info, include_aliases=True,
diff --git i/qutebrowser/misc/utilcmds.py w/qutebrowser/misc/utilcmds.py
index 56138c798..d8d6b3a4a 100644
--- i/qutebrowser/misc/utilcmds.py
+++ w/qutebrowser/misc/utilcmds.py
@@ -36,11 +36,13 @@
from qutebrowser.api import cmdutils
from qutebrowser.misc import ( # pylint: disable=unused-import
consolewidget, debugcachestats, objects, miscwidgets)
+from qutebrowser.completion.models import miscmodels
from qutebrowser.utils.version import pastebin_version
from qutebrowser.qt import sip
@cmdutils.register(maxsplit=1, no_cmd_split=True, no_replace_variables=True)
+@cmdutils.argument('command', completion=miscmodels.command)
@cmdutils.argument('win_id', value=cmdutils.Value.win_id)
def later(ms: int, command: str, win_id: int) -> None:
"""Execute a command after some time.
@@ -70,6 +72,7 @@ def later(ms: int, command: str, win_id: int) -> None:
@cmdutils.register(maxsplit=1, no_cmd_split=True, no_replace_variables=True)
+@cmdutils.argument('command', completion=miscmodels.command)
@cmdutils.argument('win_id', value=cmdutils.Value.win_id)
@cmdutils.argument('count', value=cmdutils.Value.count)
def repeat(times: int, command: str, win_id: int, count: int = None) -> None:
@@ -91,6 +94,7 @@ def repeat(times: int, command: str, win_id: int, count: int = None) -> None:
@cmdutils.register(maxsplit=1, no_cmd_split=True, no_replace_variables=True)
+@cmdutils.argument('command', completion=miscmodels.command)
@cmdutils.argument('win_id', value=cmdutils.Value.win_id)
@cmdutils.argument('count', value=cmdutils.Value.count)
def run_with_count(count_arg: int, command: str, win_id: int,
as it continues to complete command names after a space is entered. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Whoops, that was the wrong button 😆 Since we now have quite a lot of discussion about one single point here, let's split this off to #6049 instead. I'll answer over there. |
Partially fixes qutebrowser#32.
Partially fixes qutebrowser#32.
Partially fixes qutebrowser#32.
More things should be supported for the completion, for example:
:spawn --userscript
(Complete userscript paths for spawn. #1543):bind
:unbind
:bind
, aliases, etc.:buffer
command):tab-focus
;;
:open
via Add local file paths to URL completion #6038):undo
:back
/:forward
(tab-history command feature #1561):open
(e.g. after:open -t gmaps new york
, the completion after:open -t gmaps
would suggest that).download-{open,delete,remove,retry}
:scroll-to-anchor
:later
/:repeat
/:run-with-count
(see comment below):hint
The text was updated successfully, but these errors were encountered: