After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 132515 - 'Delete' should have a shortcut key
'Delete' should have a shortcut key
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: User Interface
0.6.4
Other Linux
: Normal enhancement
: ---
Assigned To: Sean Harshbarger
Sean Harshbarger
: 312000 374362 420733 440484 497004 533843 617656 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-01-26 02:44 UTC by Toby Woodwark
Modified: 2018-05-24 10:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add 'Delete' key binding for 'remove from playlist' menu item. (896 bytes, patch)
2010-07-10 17:28 UTC, Kirill Lashuk
none Details | Review

Description Toby Woodwark 2004-01-26 02:44:19 UTC
I thought 'Delete' (remove from library) was supposed to have a shortcut
key, i.e. the Delete key.  0.6.5 doesn't have this.  Please add.

('Cut' works in playlists, but not in the library.)
Comment 1 Sean Harshbarger 2004-02-11 03:27:36 UTC
Will have a look into the issue. Assigning to myself.
Comment 2 Alex 2004-12-02 01:18:57 UTC
I would second the delete key to remove the track from Rhythmbox (ie: from a
playlist if your are in one, from the library if viewing the library).
Comment 3 James "Doc" Livingston 2005-07-30 04:31:54 UTC
*** Bug 312000 has been marked as a duplicate of this bug. ***
Comment 4 Amadeus 2006-02-19 16:25:04 UTC
I guess this bug could be marked as resolved?
Comment 5 Loïc Minier 2006-02-19 17:39:46 UTC
With CVS, I can't press "Delete" or "Backspace" to delete songs from the library.
Comment 6 Amadeus 2006-02-19 17:59:41 UTC
You can use ctrl+t to delete, which is the Nautilus keybinding.

I asked a similar question on the mailinglist, and the reply was, that Rhythmbox wants to follow the Nautilus keybindings.
Comment 7 Loïc Minier 2006-02-19 18:04:37 UTC
(nautilus permits Delete here)
Comment 8 Calum Benson 2006-02-23 16:39:01 UTC
My take:  Ctrl+T means "move to Trash", not "Delete".  If rhythmbox moves deleted songs to the trash, then Ctrl+T is correct, otherwise it should be the Delete key.
Comment 9 Joseph Hill 2006-03-26 23:06:38 UTC
I second the call for a shortcut key to remove from playlist/library/current context, preferably the "Delete" key.  I don't like making the mouse or menu-lists mandatory, which seems to be the current situation.  Ctrl-T actually deletes the song from the disk, not from a list (I tried this and, unfortunately, it didn't even send it to the trash--it simply erased it, but that's another bug).
Comment 10 Calum Benson 2006-04-26 17:15:37 UTC
Apologies for spam... ensuring Sun a11y folks are cc'ed on all current accessibility bugs.
Comment 11 Sebastien Bacher 2006-05-08 10:10:20 UTC
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/rhythmbox/+bug/43499

"At present, if you want to delete a song from the queued songs list, you would have to left click it, right click, then press remove.

It would be a lot easier to click it then press delete on your keyboard."
Comment 12 Jonathan Matthew 2006-11-12 21:33:31 UTC
*** Bug 374362 has been marked as a duplicate of this bug. ***
Comment 13 Andrew Conkling 2007-01-14 20:14:57 UTC
You can set the shortcut on the menus with GTK+'s editable menu accelerators, but for me (YMMV) the accelerators are not remembered the next time I start Rhythmbox.
Comment 14 Jonathan Matthew 2007-05-22 22:58:29 UTC
*** Bug 440484 has been marked as a duplicate of this bug. ***
Comment 15 Yanis Kekatos 2007-12-11 21:01:12 UTC
This is a usability bug. I don't get why it can't be fixed. It's three years old. Please Jonathan fix it. It shouldn't take more than five minutes.
Thanks and regards
Comment 16 Jonathan Matthew 2008-05-19 22:24:55 UTC
*** Bug 497004 has been marked as a duplicate of this bug. ***
Comment 17 Jonathan Matthew 2008-05-19 22:25:08 UTC
*** Bug 533843 has been marked as a duplicate of this bug. ***
Comment 18 Marc Arens 2008-07-25 12:51:41 UTC
Bug:
- 4.5 years old
- 6 duplicates (including the one from ubuntu)
- No workaround because you can't assign shortcut via menu accelerators (at least i couldn't)

Could the users get some feedback? Do the developers have no time to implement it, are you still unsure how to implement it the right way or have you just decided to leave it as it is?

Comment 19 Mårten Woxberg 2009-09-25 18:21:03 UTC
5.5 Year old bug and it still bugs me...
Why can't I use 'Delete' in the queue? It's the one button on the keyboard that means to remove something. I want to remove the song from the queue but I can't use the assigned key to do that. Instead I have to reach for my mouse and right click and select Remove.
Comment 20 Kirill Lashuk 2010-07-10 17:28:48 UTC
Created attachment 165636 [details] [review]
Add 'Delete' key binding for 'remove from playlist' menu item.

It seems that this key binding was removed to prevent accidental removing tracks with pressing delete key in search box. Another problem is that if you have selected songs both in the library and in the side bar queue than selecting 'Remove' from edit menu will selected tracks from queue and from the library. So I made a small patch that gives back 'Delete' shortcut to the 'Remove from playlist' menu item.
Comment 21 Kirill Lashuk 2010-07-11 15:17:26 UTC
I was wrong. With this patch and queue in sidebar rhythmbox doesn't remove selected songs both from library and playlist. It removes only from library and if some of the deleted songs are in queue they are deleted from there too. It's OK.

But there is still a problem. When you switch from any playlist to the library 'Remove from playlist' menu item is removed from the edit menu but corresponding action is not disabled. So if you add 'Delete' key binding to this action pressing 'Delete' triggers this action even in library (not only in playlist or queue) and calls remove_from_playlist_cmd (that is in rb-playlist-source.c). As the result with this patch pressing 'Delete' removes song from the library that is really unexpected. 

I think the problem is that remove_from_playlist_cmd works in the same way for any source type. Should I add source type check to this function to perform deletion only for playlists, but not for library? 

And about usability. This key binding was removed by commit 3baff08252c01cc697d4ba3a6dc926248787f007. I think it'll be OK if rhythmbox don't have key binding for removing file from library, because you rarely remove tracks from library. On the other hand managing playlists and play queue is often action and removing tracks from them via menu is awful. And I think it'll be nice to add 'Delete' key binding just for playlists and play queue, but there some problems and I'll be grateful if someone helps to solve them.
Comment 22 Mårten Woxberg 2010-07-13 10:16:57 UTC
Kirill: I think this will be great.

Can it be made to work like this;

If the library is in focus and Delete is pressed, a pop-up notification will ask "Do you really want to remove this item from the library?" (DO NOT remove this from the disk under any circumstances). Just remove it from the library and let rhythmbox detect it  again on next restart.

If the queue is focused, delete should remove the selected song and select the next one in the list. No questions asked.
Comment 23 Kirill Lashuk 2010-07-14 05:39:11 UTC
Yeah, sounds good. But I'm still not very familiar with rhythmbox infrastructure and remove_from_playlist_cmd function seems a little bit strange to me. It should work only for playlists, but works for any source type. And this circumstance  makes some troubles for me. 

So I'm afraid that I'm not able to perform a good enough patch that implements your idea right now. The problem (for me, as for junior rhythmbox developer =))is to detect the active source (library/playlist/queue).
Comment 24 Mårten Woxberg 2010-09-17 06:15:33 UTC
Kirill: I hope you didn't stop working on the patch?
I'm sure you could get some help of the rhythmbox dev-list, no?
Comment 25 axx 2011-05-05 16:59:18 UTC
I see this bug has (quite obviously) already been reported.

I'm surprised it still isn't possible to use the delete key to remove a song (or several) from the playlist.

Please, pretty please, fix this. It just makes sense that del would remove a song from the playlist.

For the music library, the expected behaviour is more debatable.

Thanks to everyone working on Rhythmbox! :)
Comment 26 Adam Dingle 2011-05-23 21:22:38 UTC
I agree: it's time to fix this bug.  I'd suggest that the shortcut be Ctrl+Delete, since that's the shortcut used for deleting files in Nautilus in GNOME 3 (and is unlikely to be typed by mistake, unlike Delete).
Comment 27 Jonathan Matthew 2011-07-05 17:13:53 UTC
*** Bug 420733 has been marked as a duplicate of this bug. ***
Comment 28 Jonathan Matthew 2011-07-05 17:14:05 UTC
*** Bug 617656 has been marked as a duplicate of this bug. ***
Comment 29 Craig Harding 2013-02-17 01:05:44 UTC
Has there been any more thought on this?
Comment 30 GNOME Infrastructure Team 2018-05-24 10:29:28 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/26.