Re: [Issue]: Web search prefix lenght

Rodrigo Arias <[email protected]> Mon, 2 Mar 2026 20:25:54 +0100
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
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.
_______________________________________________
Dillo-dev mailing list -- dillo-dev-lx9mn2B4QYRWk0Htik3J/[email protected]
To unsubscribe send an email to dillo-dev-leave-lx9mn2B4QYRWk0Htik3J/[email protected]