From a772e8a2c3607fafd700bad7de8dac5025e2d232 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 1 Aug 2016 12:20:14 +0200 Subject: [PATCH] Mark :set-mark/:jump-mark as hidden Fixes #1708. --- doc/help/commands.asciidoc | 40 ++++++++++++++++----------------- qutebrowser/browser/commands.py | 4 ++-- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index fd37f3adc..5f4e9da03 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -30,7 +30,6 @@ |<>|Open main startpage in current tab. |<>|Toggle the web inspector. |<>|Evaluate a JavaScript string. -|<>|Jump to the mark named by `key`. |<>|Execute a command after some time. |<>|Show a log of past messages. |<>|Open typical prev/next links or navigate using the URL path. @@ -53,7 +52,6 @@ |<>|Save a session. |<>|Set an option. |<>|Preset the statusbar to some text. -|<>|Set a mark at the current scroll position in the current tab. |<>|Spawn a command in a shell. |<>|Stop loading in the current/[count]th tab. |<>|Duplicate the current tab. @@ -401,15 +399,6 @@ Evaluate a JavaScript string. * This command does not split arguments after the last argument and handles quotes literally. * With this command, +;;+ is interpreted literally instead of splitting off a second command. -[[jump-mark]] -=== jump-mark -Syntax: +:jump-mark 'key'+ - -Jump to the mark named by `key`. - -==== positional arguments -* +'key'+: mark identifier; capital indicates a global mark - [[later]] === later Syntax: +:later 'ms' 'command'+ @@ -700,15 +689,6 @@ You can use the `{url}` and `{url:pretty}` variables here which will get replace ==== note * This command does not split arguments after the last argument and handles quotes literally. -[[set-mark]] -=== set-mark -Syntax: +:set-mark 'key'+ - -Set a mark at the current scroll position in the current tab. - -==== positional arguments -* +'key'+: mark identifier; capital indicates a global mark - [[spawn]] === spawn Syntax: +:spawn [*--userscript*] [*--verbose*] [*--detach*] 'cmdline'+ @@ -918,6 +898,7 @@ How many steps to zoom out. |<>|Enter a key mode. |<>|Follow a hint. |<>|Follow the selected text. +|<>|Jump to the mark named by `key`. |<>|Leave the mode we're currently in. |<>|Show an error message in the statusbar. |<>|Show an info message in the statusbar. @@ -965,6 +946,7 @@ How many steps to zoom out. |<>|Scroll the current tab by 'count * dx/dy' pixels. |<>|Continue the search to the ([count]th) next term. |<>|Continue the search to the ([count]th) previous term. +|<>|Set a mark at the current scroll position in the current tab. |<>|Toggle caret selection mode. |============== [[clear-keychain]] @@ -1026,6 +1008,15 @@ Follow the selected text. ==== optional arguments * +*-t*+, +*--tab*+: Load the selected link in a new tab. +[[jump-mark]] +=== jump-mark +Syntax: +:jump-mark 'key'+ + +Jump to the mark named by `key`. + +==== positional arguments +* +'key'+: mark identifier; capital indicates a global mark + [[leave-mode]] === leave-mode Leave the mode we're currently in. @@ -1349,6 +1340,15 @@ Continue the search to the ([count]th) previous term. ==== count How many elements to ignore. +[[set-mark]] +=== set-mark +Syntax: +:set-mark 'key'+ + +Set a mark at the current scroll position in the current tab. + +==== positional arguments +* +'key'+: mark identifier; capital indicates a global mark + [[toggle-selection]] === toggle-selection Toggle caret selection mode. diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 31ed521c2..62d073b06 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1932,7 +1932,7 @@ class CommandDispatcher: ed.edit(url or old_url) - @cmdutils.register(instance='command-dispatcher', scope='window') + @cmdutils.register(instance='command-dispatcher', scope='window', hide=True) def set_mark(self, key): """Set a mark at the current scroll position in the current tab. @@ -1941,7 +1941,7 @@ class CommandDispatcher: """ self._tabbed_browser.set_mark(key) - @cmdutils.register(instance='command-dispatcher', scope='window') + @cmdutils.register(instance='command-dispatcher', scope='window', hide=True) def jump_mark(self, key): """Jump to the mark named by `key`.