On Wed, Mar 14, 2012 at 10:00:52PM +1030, David Kettler wrote:
> I like the new flexible positioning when opening new buffers.  The
> default setting of new_buffer_with_opener_position as
> buffer_position_after results in a hierarchical ordering of buffers,
> with descendants following their parent in right-to-left order.
> Contrariwise, the value buffer_position_end results in a right-to-left
> order, but buffers may be separated from their parents.
> 
> The function given below results in buffers ordered hierarchically in
> left-to-right order, which feels more natural to me.  An example of a
> similar ordering is in Firefox, where middle-clicked links are placed in
> sequence to the right of the current tab, but only until another tab is
> selected, when a new sequence is begun.
> 
> A left-to-right ordering cannot be strictly maintained; any of the
> buffers may be re-used for any purpose; a link may be followed or an
> unrelated URL opened.  The approximation used here is to place the new
> buffer to the right of all other descendants of the current buffer (or
> immediately to the right of the current buffer if it has no other
> descendants).
> 
> Furthermore, no attempt is made to strictly maintain the parent/child
> relationship; the referrer URL (with any #reference component trimmed
> off) is used as an approximation for the parent of a buffer.
> 
> Despite these drawbacks, I think this ordering works rather well in
> practise.  I intend to either submit this as a patch or perhaps to place
> it as a tip on the wiki.  Comments welcome.

Very cool.  Due to the sensitivity of the algorithm to environmental
conditions to work properly, this is probably best put on the wiki, either
on Tips, or as an example on a page about buffer ordering.

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

Reply via email to