
Konqueror "natural" file sorting (idea)
Various KDE 1.-4. Improvements
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
In the screenshot you can see how konqueror sorts files (very annoying).
If for example I have the files file1, file2, file9 and file10 konqueror will sort them this way: file1, file10, file2, file9 instead of file10 being the last one.
I think konqueror needs natural like sorting.
Maybe some people (don't know why they would) need the "computer-like" sorting, so "natural sorting" should be as an option (and turned on by default).
UPDATE: you can vote for this bug here:
http://bugs.kde.org/show_bug.cgi?id=87286
s4ncho
13 years ago
download link refers to png file
Report
premierSullivan
13 years ago
Report
kammine
14 years ago
The link below could help to have an idea on the algorithm to use:
http://sourcefrog.net/projects/natsort/
Report
kammine
14 years ago
The link below could help to have an idea on the algorithm to use:
http://sourcefrog.net/projects/natsort/
Report
sabin
14 years ago
Have a file called "abc123" or "__abc123", that won't make a difference. Same with [abc123]. Or !abc123.
I feel the windows way of doing this (punctuation terms are placed before letters or numbers) should be imported into linux sorting -- at rare times, windows makes things better ;)
I wish such rules for files sorting could be configurable.
Report
bsander
14 years ago
Report
lenooh
14 years ago
Report
hagabaka
14 years ago
But I'm not sure if this has general enough use to be implemented. After all, "numbered" file names are only a minority, and among those, not all of them are supposed to be sorted. Also, many people already name files with padded zeroes so that they will be sorted correctly without special treatment.
Report
lenooh
14 years ago
Not really. Think about photos. I often make photo galleries for other people: I get photos named with numbers, without leading zeros cause they use another OS (yes windows has this easy mass rename thingy), which sorts files the natural way. So when I copy those files to my computer they get messed up...
Also, many people already name files with padded zeroes so that they will be sorted correctly without special treatment.
read my answer to Rede
Report
Rede
14 years ago
Report
lenooh
14 years ago
Report
CaCO3
14 years ago
Report
per
14 years ago
Report
lenooh
14 years ago
Report
leinir
14 years ago
Report
striderstrahan
14 years ago
rename "s/\([0-9][0-9]\)/0$1/" *
puts a 0 in front of all two digit numbers in filenames.
Report
nightwing
14 years ago
Report
lenooh
14 years ago
Report
DaBlade
14 years ago
Report