Hi, I'm using prefixes to search using different websites, but noticed that this prefix cannot be 1 nor more than 2 characters long. For example, I configured Wikipedia in English and Spanish, the former with prefix "wien" and the latter just "wi". In my dillorc, the English version is first, so Dillo always uses this one to search, whether I type "wi hola" or "wien hola". I've also set a dictionary with prefix "d", but Dillo always searches on DuckDuckGo, which has the prefix "dd". I wonder if prefixes could be longer or shorter. On Firefox, I'm using from 1 to 4 characters, the longer ones mainly to differentiate the English from the Spanish version (Wikipedia; Wiktionary; WordReference Translate, Dictionaries, Synonim). Otherwise, I can live with the 2-character length, but it would be great if it was stated on the dillorc file, something like:
(the prefix serves to search from the Location Bar. e.g. "dd dillo image" and it must be 2 characters long)
Thank you! I've been using Dillo for six months and I like it very much :D
Hi, On Sun, Mar 01, 2026 at 06:47:12PM -0300, Juan M Sevilla wrote:
Hi, I'm using prefixes to search using different websites, but noticed that this prefix cannot be 1 nor more than 2 characters long.
For example, I configured Wikipedia in English and Spanish, the former with prefix "wien" and the latter just "wi". In my dillorc, the English version is first, so Dillo always uses this one to search, whether I type "wi hola" or "wien hola".
I've also set a dictionary with prefix "d", but Dillo always searches on DuckDuckGo, which has the prefix "dd".
I wonder if prefixes could be longer or shorter. On Firefox, I'm using from 1 to 4 characters, the longer ones mainly to differentiate the English from the Spanish version (Wikipedia; Wiktionary; WordReference Translate, Dictionaries, Synonim).
There is no character limit but Dillo matches the first search entry that starts with the prefix. So "wi" will match both "wi" and "wien". The first match is used. One option is to use prefixes that are not substrings of other prefixes (like wes and wen). I think it makes sense to change the behavior to match only the complete prefix, as the user can write the shortened version manually. So that "wi" won't match "wien", but only "wi". I uploaded the patch here: https://git.dillo-browser.org/dillo/log/?h=match-prefix-exactly Let me know if that works for your.
Otherwise, I can live with the 2-character length, but it would be great if it was stated on the dillorc file, something like:
(the prefix serves to search from the Location Bar. e.g. "dd dillo image" and it must be 2 characters long)
Thank you! I've been using Dillo for six months and I like it very much :D
Glad to read that :) Best, Rodrigo.
On Mon, 2 Mar 2026 20:25:54 +0100 Rodrigo Arias wrote:
There is no character limit but Dillo matches the first search entry that starts with the prefix. So "wi" will match both "wi" and "wien". The first match is used.
One option is to use prefixes that are not substrings of other prefixes (like wes and wen).
I think it makes sense to change the behavior to match only the complete prefix, as the user can write the shortened version manually. So that "wi" won't match "wien", but only "wi".
I uploaded the patch here:
https://git.dillo-browser.org/dillo/log/?h=match-prefix-exactly
Let me know if that works for your. Hi, apologies for the delay and thanks for the clarification. The patch works as expected! I tested with more than 20 search engines and everything behaves correctly. Thank you very much!
Luckily, I started learning more about using git last weekend, so learning to change branch to compile was like a good exercise :) Best regards
Hi Juan, On Mon, Mar 09, 2026 at 12:07:49AM -0300, Juan M Sevilla wrote:
Hi, apologies for the delay and thanks for the clarification. The patch works as expected! I tested with more than 20 search engines and everything behaves correctly. Thank you very much!
Luckily, I started learning more about using git last weekend, so learning to change branch to compile was like a good exercise :)
Thanks for the tests. Merged: https://git.dillo-browser.org/dillo/commit/?id=da1819ce6e2efb71f71c753cddf6b... Best, Rodrigo.
participants (2)
-
Juan M Sevilla -
Rodrigo Arias