stevethefiddle wrote:
What I am suggesting would be consistent behaviour is that double clicking on a non-empty part of a label track would produce the same result as clicking on a non-empty part of an audio track.
In terns of what is selected, I find the behaviour of clicking on label text is a bit strange, though it works well enough.
This whole "between labels" thing has expanded my understanding of Audacity! I had never used "labeled regions" (I think what you call "clips"). After I had my "between labels" code "finished" (ha ha--to my needs at least--no error checking etc.) someone (I won't mention names) brought up labeled regions. I went back into my code and added error checking to exclude labelled regions. Now I see that I would need to extend the code to include them if I were ever to offer the code as a "feature". I will look at that the next rainy day (here in the Pacific Northwest the forecast is light rain out as far as the forecasts go!)
So given this color coded chart, let me see if I understand your desires:

- dc regions.png (7.33 KiB) Viewed 1616 times
Right now, let us limit the discussion to a single mono or stereo wave track and one label track. For the sake of discussion, let's say I have six colors (green, blue, red, yellow, lavender and purple -- left-to-right). The somewhat rectangular areas are in the label track, the ellipses are in the wave track (I am not limiting the wave track double-click region to the ellipses just using the area as an example).
The current behavior is dependent on linking (just talking about labeled regions).
If linking is ON and I double click on any of the colored rectangles or ellipses all the audio is selected and the entire wave track is selected. (Note that you may place labels beyond the end of the audio.) This may not alway be true--it also seems to depend on the first aside below.
If linking is OFF (see aside) double clicking in an ellipse always selects all audio but no label. Double clicking a rectangle
usually results in all audio from the start to the end of the last labeled region being selected (however on rare occasions all audio from the beginning of the first labeled region to the end is selected--I cannot get it to do this reliably but it happens and may have something to do with the aside).
[aside--I see a bug here, some state variable is not always being kept up-to-date. I can reliably get some inconsistent behavior based on the order in which I toggle the "link" icon--if it is ON when Audacity launches and I turn it OFF to test double-clicking I get one behavior, If it is OFF when I launch and I turn it ON I get different when I turn it back ON. I will post a Bugzilla if I can boil the exact steps down.]
Now, what I think should happen (all selections are INCLUSIVE--they include the sample at the label start and label end point):
Linking ON or OFF exhibits the same behavior.
double click (DC) in wave track anywhere--all audio selected no label area selected (as it is now)
DC in LT inside label region--blue rect--audio between the labels is selected
DC in LT between audio start and first label--green rect (could be discrete or region)--audio from start to 1st label track is selected
DC in LT between audio end and end of last label--lavender rect (discrete or region)--audio from end of last label to end is selected
DC in LT between 2 labels (discrete or region) audio between labels is selected (may be a case for EXCLUSION here)
DC in LT after end of audio--purple rect--tough one, select all audio or select from end of last label to end of audio (last is my preference)
Did I miss any cases? Have I got reasonable logic?
Now, what happens with multiple audio and label tracks?
[aside 2 I see another bug--the draw refresh rectangle is not calculated correctly all the time when linking is on:]

- link ghosts.png (40.4 KiB) Viewed 1616 times