On Thu, 11 Apr 2024 13:26:50 +0200 Rodrigo Arias <rodarima@gmail.com> wrote:
Here is a patch to add a new tab page to dillo. You can define any url in dillorc preference 'new_tab_page', and it will be automatically opened in new tabs. Setting the value "about:blank" will retain the default blank page behavior. I tried to make it work with an empty value of "", but for some reason dillo prepends 'http:' to the value.
I would be nice to have an exception for "" so it is kept as-is.
I'm looking at lines 401-411 in url.c, and almost have it working as you suggest. My code is undoubtedly ugly and incorrect, so I might need some help with this one. Will keep trying.
Hopefully this won't be a problem, because now the about:blank is pre-selected and you can just start typing over it.
It only works well with about:blank. As soon as you load another page (like dpi:/bm/) it deselects the location bar.
Right, the pre-selection doesn't seem to work with other urls. I still haven't figured out how to fix that, but am guessing that as soon as content starts to load, it deselects the text. I think the feature is still useful given that caveat, but surely there must be some solution. Regards, Alex