From bf44636a2421404f6eea9732a2094cc9adf45d5d Mon Sep 17 00:00:00 2001 From: Claire Cavanaugh Date: Thu, 28 Jul 2016 22:50:10 -0700 Subject: [PATCH] :open opens quickmark when given a quckmark name --- qutebrowser/browser/commands.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 3e5581ff3..c35a390a6 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -249,12 +249,15 @@ class CommandDispatcher: "set!") else: try: - url = urlutils.fuzzy_url(url) - except urlutils.InvalidUrlError as e: - # We don't use cmdexc.CommandError here as this can be called - # async from edit_url - message.error(self._win_id, str(e)) - return + url = objreg.get('quickmark-manager').get(url) + except urlmarks.Error: + try: + url = urlutils.fuzzy_url(url) + except urlutils.InvalidUrlError as e: + # We don't use cmdexc.CommandError here as this can be called + # async from edit_url + message.error(self._win_id, str(e)) + return if tab or bg or window: self._open(url, tab, bg, window) else: