"Ævar Arnfjörð Bjarmason" <[EMAIL PROTECTED]> writes:
> Being able to do something like this would be nice:
>
> add_webjump(
>     "wikipedia",
>     function (...) {
>         ...
>     }
> );
>
> Then one could write a webjump that could change dynamically based on
> its argument as opposed to just replacing %s in the string which is
> the current functionality. As a simple example `wikipedia is:Forsíða'
> could be redirected to is.wikipedia.org and `wikipedia Main Page'
> would end up on en.wikipedia.org.
>
> What arguments should the function receive? The same ones as 
> webjump_build_url?

We had a conversation about this in the irc channel not long ago.  It is
a tempting thing to add, but there are some points to consider.

Webjumps are a system in exact parallel with the interactive system.
The only conceptual difference is being able to give both the command
name and arguments in the find-url prompt.  Webjumps are in conkeror
only for historical reasons.  They pre-date the interactive command
system.  It would add unnecessary and silly complexity to the program to
improve webjumps as an independent system from the interactive command
system.  The question really becomes whether the interactive command
system can be modified to allow webjump-like interactivity.  I don't
remember the rest of that conversation so maybe Jeremy can speak to
this.

Webjumps are convenient, but it's not clear that they are more
convenient than M-x.

--John

_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to