On Wed, Nov 02, 2011 at 05:33:16PM +0100, Jean-Baptiste Mestelan wrote:
> Hello.
>
>
> 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 ?
>
>
> Regards.
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.
--
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror