Gentoo Archives: gentoo-user

From: Philip Webb <purslow@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] showing files in numerical order
Date: Thu, 27 Oct 2016 22:18:45
Message-Id: 20161027221836.GD1733@ca.inter.net
In Reply to: Re: [gentoo-user] showing files in numerical order by Bertram Scharpf
1 161020 Bertram Scharpf wrote:
2 > On Thursday, 20. Oct 2016, 08:25:22 -0400, Philip Webb wrote:
3 >> Using Gwenview with KDE 4, the thumbnail view showed images
4 >> in correct numerical order : image1 image2 ... image9 image10 ... .
5 >> With KDE 5, it's gone stupid : image1 image11 image12 ...
6 >> image 19 image2 image20 image21 ...
7 >> Is there a setting anywhere
8 >> to tell it to list files in the proper numerical order ?
9 > I know it is a smart-arse answer, but it's better for sore eyes
10 > if you rename your files to unique-width numbers.
11 > $ for f in image* ; do mv $f image_`printf %03d ${f##image}` ; done
12 > This works for zsh and may need slight changes for bash.
13
14 That's what I ended up doing, a job for a very rainy today.
15 I did it with 'rename', which is fairly powerful,
16 but dangerous if you don't concentrate, as it will overwrite files.
17
18 I've sent bugs to KDE in the past with no result,
19 so I probably won't bother this time
20 & anyway it doesn't solve the immediate problem, which I've fixed otherwise.
21
22 --
23 ========================,,============================================
24 SUPPORT ___________//___, Philip Webb
25 ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
26 TRANSIT `-O----------O---' purslowatchassdotutorontodotca

Replies

Subject Author
Re: [gentoo-user] showing files in numerical order Neil Bothwick <neil@××××××××××.uk>