From a90662ef83289351768e3d288ba04b3efc7b35ec Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sat, 6 Aug 2016 20:08:04 -0400 Subject: [PATCH] Fix combined yank documentation --- qutebrowser/browser/commands.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index ff1867389..914121310 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -627,8 +627,15 @@ class CommandDispatcher: Args: what: What to yank. + + - `url`: The current URL. + - `pretty-url`: The URL in pretty decoded form. + - `title`: The current page's title. + - `domain`: The current scheme, domain, and port number. + - `selection`: The selection under the cursor. + sel: Use the primary selection instead of the clipboard. - keep: If given, stay in visual mode after yanking. + keep: Stay in visual mode after yanking the selection. """ if what == 'title': s = self._tabbed_browser.page_title(self._current_index()) @@ -639,10 +646,10 @@ class CommandDispatcher: ':' + str(port) if port > -1 else '') elif what in ['url', 'pretty-url']: flags = QUrl.RemovePassword - if what == 'url': # Not pretty + if what == 'url': # Not pretty flags |= QUrl.FullyEncoded s = self._current_url().toString(flags) - what = 'URL' # For printing + what = 'URL' # For printing elif what == 'selection': caret = self._current_widget().caret s = caret.selection()