On Thu, Sep 18, 2003 at 09:17:30PM +0300, Martin Vermeer wrote:
> On Thu, Sep 18, 2003 at 05:29:39PM +0200, Andre Poenitz spake thusly:
>  
> > On Thu, Sep 18, 2003 at 05:04:32PM +0200, Pascal Francq wrote:
> > > Hi, I have a request that could perhaps be a future feature of LyX
> > > concerning the references.  When the user inserts a label in a
> > > document, LyX automatically adds a prefix (for example "cha:" for a
> > > chapter). This means that there exists a sort of hierarchy between the
> > > labels. When you have a big document with many labels, it could be
> > > interesting to present the list of the references during a insertion
> > > not as a "flat list", but as a tree. In fact, when there are a lot of
> > > references, it would be easier to manipulate them.
> > 
> > Indeed. The label stuff is what annoys me most currently as well.
> > Far toi much scrolling to find the proper one and no clue whether some
> > label really referes to the wanted item...
> 
> The irritatingly self-righteous response to this would be 'name them
> better'.

Short cuts to 'classes' of labels, i.e. M-i R s would bring up a list of
all section labels, M-i R e of all equations etc.

M-i R S could bring up a list of _all_ sections, and selecting one
without a label would automatically insert a label 'sec:5.1.1' in the
section header as well as the reference 'as usual'.

> A solution could be (but how hard implementation-wise?) to show some
> context in the label list. Many labels are at the start of a header or
> caption.
> 
> Actually this shows again why we should have multiple views of one
> buffer. One view can show the label while the other shows the
> reference. A poor man's version of this is being able to jump from one
> to the other. (Actually we have this -- sort of.)

Jumping around in the document is a real pain. My favourite method to do
so in 'less' or 'vi' is to search for a 'unique' piece of text of which
I know it is located near the target. Due to the annoyances of LyX's S&R
this is near impossible (The three most annoying things: No wrap around at
top/bottom of doc, the dialog window hides part of the main text, and
Find does not find strings in labels etc. So this is close to useless
for this purpose).

> > > Another idea (but I don't know if anyone else find it usefull)
> > > would be that, when you insert a reference, the dialog box put the
> > > user not at the top of the list (=the first reference of the
> > > document), but to the closest reference to the current position in
> > > the document.  -- 
> > 
> > This is only useful if the 'sort' checkbox is unchecked, isn't it?
> 
> I think it would be useful always. Acroread does this for headers.

Ok, so implement this. But I think the improvement is marginal compared
to e.g. tripling the size of the label list box in the reference dialog.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to