[Conkeror] [PATCH] find-url with blank url reloads buffer.
John J Foerch
jjfoerch at earthlink.net
Wed Oct 29 17:54:22 PDT 2008
David Kettler <David.Kettler at dsto.defence.gov.au> writes:
>
> I'm not sure what you mean; is this close to what you had in mind? I
> agree that it makes more sense to do the selection in the browser
> object.
>
> I couldn't see a way to pass a parameter to the browser object handler
> to select whether or not the current url is presented for editing.
> Instead, I generate the handler for the two cases, but this seems a
> bit heavy handed.
>
> regards, David.
Hi David,
It is now possible to accomplish what you want as follows, in your rc,
with the new utility function `set_default_browser_object':
set_default_browser_object("find-url", browser_object_alternate_url);
Likewise for the commands find-url-new-buffer and find-url-new-window,
if you use those commands.
I agree with your observation that there is a troubling amount of code
duplication between browser_object_url and browser_object_alternate_url.
Things to think about. I hesitate to declare that following a blank url
automatically equates to reload, and I think the browser-object system
is the right place to deal with this.
--
John Foerch
More information about the Conkeror
mailing list