From ca89b11398147a37e74574c21eeda2fab4a42c4f Mon Sep 17 00:00:00 2001 From: Olmo Kramer Date: Sun, 22 Apr 2018 03:24:34 +0200 Subject: [PATCH] Use configured links selector for navigate command --- qutebrowser/browser/navigate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/navigate.py b/qutebrowser/browser/navigate.py index dbe2b5ed9..f3da0c18e 100644 --- a/qutebrowser/browser/navigate.py +++ b/qutebrowser/browser/navigate.py @@ -146,5 +146,6 @@ def prevnext(*, browsertab, win_id, baseurl, prev=False, else: browsertab.openurl(url) - link_selector = 'a[href], area[href], link[href], [role=link][href]' + selectors = config.instance.get('hints.selectors', baseurl) + link_selector = ','.join(selectors['links']) browsertab.elements.find_css(link_selector, _prevnext_cb)