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 305295 - Add support for "invert selection".
Add support for "invert selection".
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
2.21.x
Other All
: Normal normal
: 2.24.x
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-05-24 09:22 UTC by Pradeep MN
Modified: 2008-03-29 14:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
01_nautilus-invert-selection.patch (against 2.20.0) (11.90 KB, patch)
2007-10-24 19:46 UTC, Amos Brocco
none Details | Review
01_nautilus-invert-selection.patch (against 2.20.0) (13.05 KB, patch)
2007-10-27 20:02 UTC, Amos Brocco
needs-work Details | Review
invert selection patch v2 (11.97 KB, patch)
2008-03-14 19:06 UTC, Cosimo Cecchi
committed Details | Review

Description Pradeep MN 2005-05-24 09:22:33 UTC
Please describe the problem:
Previous versions of nautilus had invert selection but 2.10 is not having the 
feature

Steps to reproduce:
1. Go to nautilus
2. Go to view
3. see the option there is no invert selection.


Actual results:
we dont find any invert selection.

Expected results:
Its better to have as an enhancement as invert selection

Does this happen every time?
yes

Other information:
Comment 1 Christian Neumair 2005-07-12 19:25:46 UTC
Usability crew, this sounds like a nice feature for a file manager, i.e. you
could select all files except those matching a particular pattern.
Was this removed for usability concerns, or was there another motive behind the
removal?
Comment 2 Alan Horkan 2005-07-12 19:34:47 UTC
I have no idea why this was removed (when was it added?).  

For what it's worth I always thought it was more useful to have "Select All" and
"Select Invert" (Select Inverse?) than having "Select None".  
Comment 3 Christian Neumair 2005-07-20 11:20:45 UTC
FYI, I've already submitted [1] this but no review has happened yet.

[1] http://mail.gnome.org/archives/nautilus-list/2005-July/msg00179.html
Comment 4 Pradeep MN 2006-01-30 10:38:40 UTC
May be the Maintainer is busy for a while Christian.. Let us wait for a while to check any futher action takes place. Also I feel the maintainers have been change or what?
Comment 5 xerxas 2006-10-11 12:26:57 UTC
Something new on this ?
Comment 6 Nicolò Chieffo 2007-09-23 16:20:49 UTC
I hope that this feature is added again...
Comment 7 Amos Brocco 2007-10-24 19:46:09 UTC
Created attachment 97795 [details] [review]
01_nautilus-invert-selection.patch (against 2.20.0)

This patch adds an "Invert Selection" action in the Edit menu, just below Select Pattern, that inverts the current selection in both the icon and the tree view.
(patch against Nautilus 2.20.0)
Comment 8 Nicolò Chieffo 2007-10-24 19:48:35 UTC
Let's hope this will get included
Comment 9 David Liang 2007-10-25 03:17:03 UTC
I like the patch(97795), it works great.

Maybe the invert feature could be added to the gtk-tree widget. what do you think?
Comment 10 Amos Brocco 2007-10-27 20:02:55 UTC
Created attachment 97987 [details] [review]
01_nautilus-invert-selection.patch (against 2.20.0)

Small fix over the previous patch to disable the menu entry if there are no files /directories in the current folder (similar behavior as "select all" and "select pattern")
Comment 11 Cosimo Cecchi 2008-03-14 14:30:07 UTC
I think this is a good feature and we should try to get this in for 2.24!

Amos, as your patch does not apply anymore against SVN trunk, could you update it so that someone can review and test that properly? (should be easy, as there's no GnomeVFS involved in this patch). Thanks!
Comment 12 Cosimo Cecchi 2008-03-14 19:06:15 UTC
Created attachment 107312 [details] [review]
invert selection patch v2

I updated the patch to trunk myself, including some fixes to the previous Amos' version, works really fine in my testing.
Comment 13 Alexander Larsson 2008-03-17 10:59:39 UTC
Looks good to me, can go in after branch.
Comment 14 Cosimo Cecchi 2008-03-29 14:50:37 UTC
Nautilus has been branched, so I've committed this to trunk.
Closing as FIXED, thanks Amos for the patch!

2008-03-29  Cosimo Cecchi  <cosimoc@gnome.org>

	* libnautilus-private/nautilus-icon-container.c:
	(nautilus_icon_container_invert_selection):
	* libnautilus-private/nautilus-icon-container.h:
	* libnautilus-private/nautilus-view.c:
	(nautilus_view_invert_selection):
	* libnautilus-private/nautilus-view.h:
	* src/file-manager/fm-actions.h:
	* src/file-manager/fm-directory-view.c:
	(action_invert_selection_callback),
	(fm_directory_view_invert_selection), (real_update_menus),
	(fm_directory_view_class_init):
	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-icon-view.c: (fm_icon_view_invert_selection),
	(fm_icon_view_class_init):
	* src/file-manager/fm-list-view.c: (fm_list_view_invert_selection),
	(fm_list_view_class_init):
	* src/file-manager/nautilus-directory-view-ui.xml:
	Add support for "Invert Selection". Patch by Amos Brocco
	<amos.brocco@unifr.ch>. (#305295).