Fix and update docs

This commit is contained in:
Florian Bruhin 2018-05-08 15:22:49 +02:00
parent 20efaeff19
commit 48c44e1b4d
3 changed files with 4 additions and 2 deletions

View File

@ -530,7 +530,7 @@ Show help about a command or setting.
[[hint]] [[hint]]
=== hint === hint
Syntax: +:hint [*--mode* 'mode'] [*--add-history*] [*--rapid*] Syntax: +:hint [*--mode* 'mode'] [*--add-history*] [*--rapid*] [*--first*]
['group'] ['target'] ['args' ['args' ...]]+ ['group'] ['target'] ['args' ['args' ...]]+
Start hinting. Start hinting.
@ -600,6 +600,7 @@ Start hinting.
`tab` (with `tabs.background_tabs=true`), `tab-bg`, `tab` (with `tabs.background_tabs=true`), `tab-bg`,
`window`, `run`, `hover`, `userscript` and `spawn`. `window`, `run`, `hover`, `userscript` and `spawn`.
* +*-f*+, +*--first*+: Click the first hinted element without prompting.
==== note ==== note
* This command does not split arguments after the last argument and handles quotes literally. * This command does not split arguments after the last argument and handles quotes literally.

View File

@ -562,6 +562,7 @@ Default:
* +pass:[gd]+: +pass:[download]+ * +pass:[gd]+: +pass:[download]+
* +pass:[gf]+: +pass:[view-source]+ * +pass:[gf]+: +pass:[view-source]+
* +pass:[gg]+: +pass:[scroll-to-perc 0]+ * +pass:[gg]+: +pass:[scroll-to-perc 0]+
* +pass:[gi]+: +pass:[hint inputs --first]+
* +pass:[gl]+: +pass:[tab-move -]+ * +pass:[gl]+: +pass:[tab-move -]+
* +pass:[gm]+: +pass:[tab-move]+ * +pass:[gm]+: +pass:[tab-move]+
* +pass:[go]+: +pass:[set-cmd-text :open {url:pretty}]+ * +pass:[go]+: +pass:[set-cmd-text :open {url:pretty}]+

View File

@ -636,8 +636,8 @@ class HintManager(QObject):
`window`, `run`, `hover`, `userscript` and `spawn`. `window`, `run`, `hover`, `userscript` and `spawn`.
add_history: Whether to add the spawned or yanked link to the add_history: Whether to add the spawned or yanked link to the
browsing history. browsing history.
group: The element types to hint.
first: Click the first hinted element without prompting. first: Click the first hinted element without prompting.
group: The element types to hint.
- `all`: All clickable elements. - `all`: All clickable elements.
- `links`: Only links. - `links`: Only links.