Gale Andrews wrote:Most text and word processors don't allow SHIFT + DELETE to do anything. Wouldn't it be more useful to have SHIFT + DELETE delete the label if open for editing?
It seems to be a developer decision to make "Delete+modifier" act the same as "Delete", but I don't know why and I don't know how, or if I'm allowed to change it. It may be for cross-platform compatibility - perhaps Edgar knows?
Gale Andrews wrote:Should not undo put the cursor back in the label?
I think that would be better, but I don't know if it's possible. It may be worth asking on -devel and if they say that it's possible, then logging it on bugzilla.
Gale Andrews wrote:What else did you think I was suggesting?

This is not an editing feature, as you point out. Track Control Panels have an [X] button to remove themselves.
Currently, all items in track control panels act on the entire track (pan, gain, mute, solo, [X] and all menu items). Adding an item (button) that "edits the track" (changes the selected part of the track) seems to me to be a radical departure, and even more radical if a track control panel button can also affect other tracks as well.
Gale Andrews wrote:I have suggested Edit Toolbar as a second-best alternative location for a button (and that would do exactly the same as your menu option).
If we are to be consistent with the other buttons, they all duplicate menu items. Cut/Copy/Paste/Trim/... are probably the most used functions when editing, and so justify their screen space (and screen space is high value). I'm not sure that a "Remove Label" button can justify the use of pixels, (unless the toolbar is editable).
Gale Andrews wrote:We should be thinking of ways to use that space.
IMHO, space in the track control panel is for items that affect the entire track. Allocating tracks to Sync-Locked Track Groups would fit with that definition, but removing selected labels would not.
Gale Andrews wrote:Good so we agree this is useful for nested labels but only if they don't get "too complex".
...
I bet a lot of people would rather have the [X] on the label stem. Intuitive, discoverable, and two steps less
I agree that we could also do with a quick and easy way to delete single labels - that would resolve your previous example of not deleting the "short" label.
Gale Andrews wrote:For example you could argue that it would be more useful from where we are now to make Labels Editor a fully functional editor for easy selection/removal of arbitrary multiple labels.
+1 for grater functionality of the label editor.
I'd also like a "Preview" button for each label in the editor that plays the labelled audio.
Gale Andrews wrote:I know we can always add on features later, but that hardly ever seems to happen.
Sadly that is often true, but I think a large part of that problem is a reluctance to add a new feature that enhances usability if there is already a workaround. The feature that I'm proposing could be seen as a case in point.
Gale Andrews wrote:Adding right-click will help discoverability to some extent, so thanks for looking at that. I'm not clear yet - are you going to add to the existing right-click menu that appears when right-clicking over label text?
What I'm currently looking at is:
- Right click in the label text adds "Remove Label" to the current menu. This will delete that one (and only one) label, even if it is nested, or nests other labels.
- Right click anywhere else in the label track brings up a menu that provides options* for acting on selected labels (* currently only "Remove Selected Labels", but hopefully can be expanded to provide options for Delete Selected Labels, Copy Selected Labels and Paste Labels). At the moment it looks a bit silly with just one menu item, but I've got a proof of concept working.
This will delete only label "456":

- Right Click in label text
- remove-label.png (21.43 KiB) Viewed 1516 times
This will delete labels "456" and "Z":

- Right Click in label track, not in label text
- remove-selected-labels.png (16.28 KiB) Viewed 1516 times
Anticipating a further question: I think we still need the Edit menu item because the context menu is bound to the track menu, so not available for the right click menu.