"John J. Foerch" <[email protected]> writes:

> On Wed, Aug 18, 2010 at 11:58:53PM +0200, Vitaly S. wrote:
>> <SNIP>
>> 
>> And how can I open the link in a new buffer from chrome js, then?
>> 
>
>
> There are a few different ways... in the simplest case where you are just
> writing a command that opens a constant url in a new buffer:
>
> interactive("test", "blabla",
>             "follow-new-buffer",
>             $browser_object = "http://example.com/";);
>
Ah, that was it.
Now I see how it goes.

I found the "follow-new-buffer" function in the conkeror's
code before. But it's undocumented and I could not figure out how to work with 
it.
It uses browser_object_links as $browser_object but browser_object_links seems
not to be defined anywhere in the conkeror's code. A mystery, really.

Thanks.
>
> If on the other hand, you were writing a more complex command, your
> command handler would look something like this:
>
> function test_command (I) {
>     //other stuff here
>     browser_object_follow(I.buffer,
>                           OPEN_NEW_BUFFER,
>                           "http://example.com/";);
> }

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

Reply via email to