From 3bf7e4ab417bd8b88a7c21b36083049316370fb1 Mon Sep 17 00:00:00 2001 From: Eugene Date: Wed, 3 Nov 2021 07:49:58 +0200 Subject: [PATCH] Fix the `f` and `F` hints on DDG in the sample `.tridactylrc` The fix is to use the [`~=` attribute selector][selector] to match the result class instead of `=`; it works on DuckDuckGo now. [selector]: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#syntax --- .tridactylrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.tridactylrc b/.tridactylrc index 93a022b5..d9afd617 100644 --- a/.tridactylrc +++ b/.tridactylrc @@ -71,9 +71,8 @@ " bindurl www.google.com F hint -Jbc #search div:not(.action-menu) > a " " -" " DDG binds are broken as of May 2021 -" " bindurl ^https://duckduckgo.com f hint -Jc [class=result__a] -" " bindurl ^https://duckduckgo.com F hint -Jbc [class=result__a] +" bindurl ^https://duckduckgo.com f hint -Jc [class~=result__a] +" bindurl ^https://duckduckgo.com F hint -Jbc [class~=result__a] " " " Allow Ctrl-a to select all in the commandline " unbind --mode=ex