From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:41; helo=resqmta-ch2-09v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-09v.sys.comcast.net (resqmta-ch2-09v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:41]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 625747A586 for ; Sat, 13 Jan 2018 09:28:00 -0800 (PST) Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-09v.sys.comcast.net with ESMTP id aPd1epy26VFg8aPeLeKRZp; Sat, 13 Jan 2018 17:31:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1515864681; bh=3/basZsVCZ0KEbwxM+L6j5I8y4Cu2hwZZklV1Z1xBJM=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=elpX90KWSz1k5hRTsaxoqfOoMmfHnZnvdzU1UPy5TBdk9M5FqwamLdmsUiwqLV2y7 GPovzkQUbsXRiVd0+pQ8TevTNNv1wxICJduzW6oQxDEFqhJjozCZcqa85NP95sVXDc slZtwy6FTX2kKZW4xoG9vW+AoDnSmWdZ2CjnfhaiUWvEzNNFAjKPWnMSbM0wBR72Vb zQsla++U4t4lipsAX0leS4ZwD1xAkjEt3mO9DF5umsHVj5AIpocLap/GnF8RqD9Ngo qIphB93QdZUAexlCbCZ7XlT4f+COO7qJ+h7wpNI29fWf94R3ZqPFcgARi3cONdPeTt +xftr4ywlubeg== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-13v.sys.comcast.net with SMTP id aPeKeRvC079S0aPeLepevU; Sat, 13 Jan 2018 17:31:21 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.7.1 Date: Sat, 13 Jan 2018 12:31:20 -0500 Message-ID: <20180013123120.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-441952 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfFsV6r4WX9fYXByu4ydroPBMkSHLrt4G9uOgMB/6vrZE0Lb5cmhEoGb71GSy9Qq2KwVM88Z8ECoSfhdv0apNO6mHeiswj+1/vC0yQExZ/xmIIr9G0AQb OhnVxsm73IZp9avxlaHzGqH/MZAGn1STCgRvKlC8FzN7vt6xMZWbLxL+ Subject: [Edbrowse-dev] Directory Sort X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.24 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2018 17:28:00 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --nextpart-eb-441952 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I implemented this because I wanted it, but I didn't document it, = because I'm not sure if you like this interface, or if we might change = it. Pull the latest and play around. This is a way to sort your entries in directory mode in ways other than = alphabetical. It's only meaningful when reading in a directory. I hardly ever need it, but when I need it, I need it! Remember the various ls commands? lsl shows you the length of the file on the current line. lst time lss size lsy symbolic link lsp permissions lsi inode lsk link = count lsm major minor numbers. To put this on all the files in the scan, enter ls=3Dlt, or some such, = then read in the directory. The equals sign puts it on all files in the directory listing. All this was there before. I'm trying to keep a similar syntax with the new stuff. dsrt=3Da sort alphabetical. dsrt=3Dt sort by time. dsrt=3Ds sort by size. With help messages on you'll see the sort mode as you set it. You can also use + as in dsrt+a. This is intuitive, with dsrt-a for reverse sort alphabetical. dsrt-t reverse sort time, dsrt-s reverse sort size. They can be effective together. If you care about the times of your files, and you want them sorted = that way, dsrt-t ls=3Dt e some_directory If you are already in a directory and want to change the sort or = display, make the changes and then refresh with rf. so: did I break anything? Does the new sort work as expected? Would you change anything as to how it works, or the user interface? I use qsort so it should be fast even for huge directories, though it does have to stat each inode. Finally, when sorting by time or size, should I move all the = directories and special files to the end? They don't really have any meaning in terms of mod time or file size. I don't do that now but thinking maybe I should, what do you think? Karl Dahlke --nextpart-eb-441952--