From 982ac5150d1f0fb8b435243bd63aa75e24533122 Mon Sep 17 00:00:00 2001 From: evan Date: Thu, 14 Jan 2016 19:17:12 -0500 Subject: [PATCH] issue 1213: Display yanked link in statusbar copied string format from `yank()` in `commands.py` --- qutebrowser/browser/hints.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 8ba342db7..c1db0507e 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -468,8 +468,10 @@ class HintManager(QObject): mode = QClipboard.Selection if sel else QClipboard.Clipboard urlstr = url.toString(QUrl.FullyEncoded | QUrl.RemovePassword) QApplication.clipboard().setText(urlstr, mode) - message.info(self._win_id, "URL yanked to {}".format( - "primary selection" if sel else "clipboard")) + msg = "Yanked URL to {}: {}".format( + "primary selection" if sel else "clipboard", + urlstr) + message.info(self._win_id, msg) def _run_cmd(self, url, context): """Run the command based on a hint URL.