"John J. Foerch" <[email protected]> wrote:
> On Wed, Nov 02, 2011 at 05:33:16PM +0100, Jean-Baptiste Mestelan wrote:
>> Conkeror is very good, but I sometimes miss one functionality:
>> displaying the recent history of the buffer. In Firefox, this is
>> available through clicking the arrow near the back/forward buttons: it
>> is then possible to switch directly to one of these history items.
>> 
>> This would be similar to Conkeror's find-url-from-history, but
>> restrained to the URLs lately visited by the current buffer.
>> 
>> Does this functionality already exist in Conkeror ? If not, could some
>> kind hacker provide a guideline on how to implement it ?

> It would need to be written.  I might, if time permits.. but for now, let
> me just put a couple of notes out about how to access this information,
> should anybody else be interested in writing it up.
>
> The navigation history of a buffer is accessed via its
> web_navigation.sessionHistory:
>
>     var history = buffer.web_navigation.sessionHistory;
>
> That is an nsISHistory object:
>
>     https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsISHistory
>
> The property of most interest for this feature would be
> history.SHistoryEnumerator.  This is iterated via its methods
> hasMoreElements() and getNext(), and each entry returned should be
> QueryInterface'd as Ci.nsIHistoryEntry.
>
> The most straightforward UI would probably be a completing prompt, similar
> to the find-url prompt, but I'm open to other ideas as well.

Sounds sensible. It would be useful to go forward and backward, hence the
starting point can be in the middle of the list. Maybe it's possible to
prepend the number of the entry, so you don't loose track if you narrow
the list by typing something.

Bye, Jörg.
-- 
“Politics is for the moment, equations are forever”
            (Albert Einstein)
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to