Re: [gentoo-user] showing files in numerical order

2016-11-02 Thread Daniel Campbell
On 10/29/2016 04:59 AM, Emanuele Rusconi wrote: > Have a look at renamexm from sys-apps/rename (it's actually called > rename > but for Gentoo is was renamed to avoid a collision). It has a lot more > options than rename and defaults to prompting you if you try to > rename to >

Re: [gentoo-user] showing files in numerical order

2016-10-29 Thread Emanuele Rusconi
> > Have a look at renamexm from sys-apps/rename (it's actually called rename > but for Gentoo is was renamed to avoid a collision). It has a lot more > options than rename and defaults to prompting you if you try to rename to > an existing file. I use vidir from sys-apps/moreutils. All the

Re: [gentoo-user] showing files in numerical order

2016-10-27 Thread Neil Bothwick
On Thu, 27 Oct 2016 18:18:36 -0400, Philip Webb wrote: > > I know it is a smart-arse answer, but it's better for sore eyes > > if you rename your files to unique-width numbers. > > $ for f in image* ; do mv $f image_`printf %03d ${f##image}` ; done > > This works for zsh and may need slight

Re: [gentoo-user] showing files in numerical order

2016-10-27 Thread Philip Webb
161020 Bertram Scharpf wrote: > On Thursday, 20. Oct 2016, 08:25:22 -0400, Philip Webb wrote: >> Using Gwenview with KDE 4, the thumbnail view showed images >> in correct numerical order : image1 image2 ... image9 image10 ... . >> With KDE 5, it's gone stupid : image1 image11 image12 ... >> image

Re: [gentoo-user] showing files in numerical order

2016-10-21 Thread Andy Mender
>All digits are taken into account, but not as digits. This is a lexical >sort based on characters, not numbers. I think Neil Bothwick is right. Also, sorry for the joke earlier. I just found it ironic that the file sorting in KDE 5 suddenly borked itself and resembled file sorting in Windows in

Re: [gentoo-user] showing files in numerical order

2016-10-20 Thread J. Roeleveld
On Thursday, October 20, 2016 08:25:22 AM Philip Webb wrote: > Using Gwenview with KDE 4, the thumbnail view showed images > in correct numerical order : image1 image2 ... image9 image10 ... . > With KDE 5, it's gone stupid : image1 image11 image12 ... > image 19 image2 image20 image21 ... > > Is

Re: [gentoo-user] showing files in numerical order

2016-10-20 Thread Bertram Scharpf
On Thursday, 20. Oct 2016, 08:25:22 -0400, Philip Webb wrote: > Using Gwenview with KDE 4, the thumbnail view showed images > in correct numerical order : image1 image2 ... image9 image10 ... . > With KDE 5, it's gone stupid : image1 image11 image12 ... > image 19 image2 image20 image21 ... > >

Re: [gentoo-user] showing files in numerical order

2016-10-20 Thread Neil Bothwick
On Thu, 20 Oct 2016 15:27:34 +0200, Andy Mender wrote: > You may be surprised, but this is the proper numerical order - the way > Windows Explorer normally does it. Ah well, it must be right then! > Only the 1st digit is taken into account as you noticed. All digits are taken into account, but

Re: [gentoo-user] showing files in numerical order

2016-10-20 Thread Philip Webb
161020 Michael Mol wrote: > On 20 October 2016 at 14:25, Philip Webb wrote: >> Using Gwenview with KDE 4, the thumbnail view showed images >> in correct numerical order : image1 image2 ... image9 image10 ... . >> With KDE 5, it's gone stupid : image1 image11 image12 ... >>

Re: [gentoo-user] showing files in numerical order

2016-10-20 Thread Michael Mol
No, it's not the proper numerical order. Yes, it's the proper sort for a sorting algorithm unaware that it's sorting strings with numeric components, such as a one examining input on a strictly codepoint-by-codepoint or character-by-character basis, but that's not the only way to sort. I'd

Re: [gentoo-user] showing files in numerical order

2016-10-20 Thread Andy Mender
You may be surprised, but this is the proper numerical order - the way Windows Explorer normally does it. Only the 1st digit is taken into account as you noticed. Care to try renaming the images to "image_xxx"? Perhaps that helps. Best regards, Andy On 20 October 2016 at 14:25, Philip Webb