summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-01-27 18:14:24 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-01-27 19:24:18 +0100
commitbedfd47f055860776bf81e6a5b52bd698252f957 (patch)
tree9377e29f21b18b78d2f69423e3d0e7fe0c37db8f
parent98fea7e10a672787590cd9ca58194cb5a6c33a82 (diff)
downloadqutebrowser-bedfd47f055860776bf81e6a5b52bd698252f957.tar.gz
qutebrowser-bedfd47f055860776bf81e6a5b52bd698252f957.zip
Use commands for 'S.' bindings
-rw-r--r--doc/help/commands.asciidoc3
-rw-r--r--doc/help/settings.asciidoc10
-rw-r--r--qutebrowser/browser/commands.py5
-rw-r--r--qutebrowser/config/configdata.yml10
4 files changed, 16 insertions, 12 deletions
diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc
index 18ff44553..014dab2df 100644
--- a/doc/help/commands.asciidoc
+++ b/doc/help/commands.asciidoc
@@ -214,11 +214,12 @@ Delete a bookmark.
[[bookmark-list]]
=== bookmark-list
-Syntax: +:bookmark-list [*--tab*] [*--bg*] [*--window*]+
+Syntax: +:bookmark-list [*--jump*] [*--tab*] [*--bg*] [*--window*]+
Show all bookmarks/quickmarks.
==== optional arguments
+* +*-j*+, +*--jump*+: Jump to the "bookmarks" header.
* +*-t*+, +*--tab*+: Open in a new tab.
* +*-b*+, +*--bg*+: Open in a background tab.
* +*-w*+, +*--window*+: Open in a new window.
diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc
index d0b1579d7..ccfc6f6ed 100644
--- a/doc/help/settings.asciidoc
+++ b/doc/help/settings.asciidoc
@@ -616,10 +616,10 @@ Default:
* +pass:[PP]+: +pass:[open -t -- {primary}]+
* +pass:[Pp]+: +pass:[open -t -- {clipboard}]+
* +pass:[R]+: +pass:[reload -f]+
-* +pass:[Sb]+: +pass:[open qute://bookmarks#bookmarks]+
-* +pass:[Sh]+: +pass:[open qute://history]+
-* +pass:[Sq]+: +pass:[open qute://bookmarks]+
-* +pass:[Ss]+: +pass:[open qute://settings]+
+* +pass:[Sb]+: +pass:[bookmark-list --jump]+
+* +pass:[Sh]+: +pass:[history]+
+* +pass:[Sq]+: +pass:[bookmark-list]+
+* +pass:[Ss]+: +pass:[set]+
* +pass:[T]+: +pass:[tab-focus]+
* +pass:[U]+: +pass:[undo -w]+
* +pass:[V]+: +pass:[mode-enter caret ;; selection-toggle --line]+
@@ -1891,7 +1891,7 @@ Default: +pass:[false]+
[[completion.web_history.exclude]]
=== completion.web_history.exclude
A list of patterns which should not be shown in the history.
-This only affects the completion. Matching URLs are still saved in the history (and visible on the qute://history page), but hidden in the completion.
+This only affects the completion. Matching URLs are still saved in the history (and visible on the `:history` page), but hidden in the completion.
Changing this setting will cause the completion history to be regenerated on the next start, which will take a short while.
This setting requires a restart.
diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py
index 8779e4cf3..dc0664238 100644
--- a/qutebrowser/browser/commands.py
+++ b/qutebrowser/browser/commands.py
@@ -1283,15 +1283,18 @@ class CommandDispatcher:
message.info("Removed bookmark {}".format(url))
@cmdutils.register(instance='command-dispatcher', scope='window')
- def bookmark_list(self, tab=True, bg=False, window=False):
+ def bookmark_list(self, jump=False, tab=True, bg=False, window=False):
"""Show all bookmarks/quickmarks.
Args:
tab: Open in a new tab.
bg: Open in a background tab.
window: Open in a new window.
+ jump: Jump to the "bookmarks" header.
"""
url = QUrl('qute://bookmarks/')
+ if jump:
+ url.setFragment('bookmarks')
self._open(url, tab, bg, window)
@cmdutils.register(instance='command-dispatcher', scope='window')
diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml
index b0c9462e5..0b84292a3 100644
--- a/qutebrowser/config/configdata.yml
+++ b/qutebrowser/config/configdata.yml
@@ -1088,7 +1088,7 @@ completion.web_history.exclude:
A list of patterns which should not be shown in the history.
This only affects the completion. Matching URLs are still saved in the
- history (and visible on the qute://history page), but hidden in the
+ history (and visible on the `:history` page), but hidden in the
completion.
Changing this setting will cause the completion history to be regenerated
@@ -3369,10 +3369,10 @@ bindings.default:
<Ctrl-h>: home
<Ctrl-s>: stop
<Ctrl-Alt-p>: print
- Ss: open qute://settings
- Sb: open qute://bookmarks#bookmarks
- Sq: open qute://bookmarks
- Sh: open qute://history
+ Ss: set
+ Sb: bookmark-list --jump
+ Sq: bookmark-list
+ Sh: history
<Return>: selection-follow
<Ctrl-Return>: selection-follow -t
.: repeat-command