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 698501 - file browser: should display files in same order as Nautilus
file browser: should display files in same order as Nautilus
Status: RESOLVED OBSOLETE
Product: gedit-plugins
Classification: Other
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Garrett Regier
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-21 12:15 UTC by Adam Dingle
Modified: 2020-11-24 10:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix sorting files in file browser (1.00 KB, patch)
2013-06-14 21:49 UTC, Garrett Regier
committed Details | Review
filebrowser: Sort files starting with a '.' like Nautilus (2.10 KB, patch)
2016-10-05 15:00 UTC, Garrett Regier
accepted-commit_now Details | Review

Description Adam Dingle 2013-04-21 12:15:31 UTC
When I view hidden files in the gedit file browser, they may be listed in a different order than Nautilus would use.  For example, the file browser lists these files in this order:

bar
foo
bar~
foo~

But Nautilus lists the same files in this order:

bar
bar~
foo
foo~

For consistency, these should be the same.
Comment 1 Garrett Regier 2013-06-14 21:49:43 UTC
Created attachment 246859 [details] [review]
Fix sorting files in file browser

Hidden files were always at the end which is not the expected
behavior and conflicts with the behavior of nautilus. If one does
not wish to see hidden files they should instead use the filter.
Comment 2 Ignacio Casal Quinteiro (nacho) 2013-06-15 09:42:07 UTC
Review of attachment 246859 [details] [review]:

Looks good.
Comment 3 Garrett Regier 2013-06-15 10:14:48 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 4 Adam Dingle 2013-12-15 18:47:28 UTC
It appears that the order is still not consistent with Nautilus.  I'm running gedit 3.10.1 (which includes Garrett's change above).  In the file browser files beginning with '.' come before files beginning with [A-Za-z]:

.cache/
.config/
.local/
bin/
Desktop/
Documents/
.bashrc
foobar

In Nautilus (in git master) these files appear in this order:

bin/
Desktop/
Documents/
.cache/
.config/
.local/
foobar
.bashrc

Reopening.
Comment 5 Garrett Regier 2016-10-05 15:00:43 UTC
Created attachment 336992 [details] [review]
filebrowser: Sort files starting with a '.' like Nautilus

Do the same behavior for '#' as well.

See:
https://git.gnome.org/browse/nautilus/tree/src/nautilus-file.c#n88
Comment 6 Garrett Regier 2017-01-15 16:51:21 UTC
ping, can I get a quick review for this patch?
Comment 7 George White 2018-01-03 12:27:07 UTC
Review of attachment 336992 [details] [review]:

Looks good to me.
Comment 8 Sébastien Wilmet 2020-11-24 10:17:55 UTC
Mass-closing of all gedit-plugins bugzilla tickets.

Special "code" to find again all those gedit-plugins bugzilla tickets that were open before the mass-closing:

2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3

By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements.

We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.