From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) by hurricane.the-brannons.com (Postfix) with ESMTPS id E0680789EC for ; Fri, 25 Sep 2015 15:28:49 -0700 (PDT) Received: by wicfx3 with SMTP id fx3so39194379wic.1 for ; Fri, 25 Sep 2015 15:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=16HB8YArJ06nXO3QBo1UVrGe3VtHeK1UvRq9KuLmFzQ=; b=Gh0+bUX5qWbrqSlAJsUOLcnwFkEdgX6B2f51ZJU858aW1NijQfQVUhQ3FB9vME+QV5 S7yniIDIB+T3PXjwI6qR82AcZXbFfD2GlUwF/T5WLMO2Wxg14o8CNygDijJJySWvDp1R B99LRYHbNg2ObhGfDv6F4YerkMkrMFD25c4APCDk7t1Yu6ZLQrNBnlsywRnIUqxnxlco OgtJbX/Ke126/p6tvwfianC0mFWijBzcWQ4SfXJvw3kSpUrJtD9xwvzJ0Ga7bnqAHLod OAEQAGh/oKjauDwbSxcF4MmzmupM2r/Yuuyu9Wo6PgjCXGsbg1qDDzW9G8I6O5mEfR1E w+iA== X-Received: by 10.194.117.133 with SMTP id ke5mr8806579wjb.116.1443220321371; Fri, 25 Sep 2015 15:32:01 -0700 (PDT) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by smtp.gmail.com with ESMTPSA id gc19sm5316709wic.19.2015.09.25.15.32.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2015 15:32:00 -0700 (PDT) Date: Fri, 25 Sep 2015 23:31:59 +0100 From: Adam Thompson To: Karl Dahlke Cc: Edbrowse-dev@lists.the-brannons.com Message-ID: <20150925223159.GL2254@toaster.adamthompson.me.uk> References: <20150824134301.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Jbyekxk18hnEXT0m" Content-Disposition: inline In-Reply-To: <20150824134301.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [Edbrowse-dev] file attributes on directory scan. X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2015 22:28:50 -0000 --Jbyekxk18hnEXT0m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 24, 2015 at 01:43:01PM -0400, Karl Dahlke wrote: > Ok, lsl lists the length of the file on the current line > in directory mode, but ls=l fetches the length of every file > in subsequent directory scans. > See the documentation for more details. > Browsed usersguide line 1072. Sounds interesting. > As mentioned earlier, I had to muck with the code in many places. > reading or writing a file, a directory, what was a directory into a file, > or into another session, or reading another session into this one, > maybe it was a directory listing maybe not, > and so on. > After a day or so of work I thought I had it all working, > I made one tiny change to buffers.c, and wrote the file, and file write failed. > I had broken something, badly! > buffers.c was now 13 bytes long, and all my work was lost. > It's amazing how we rely on this program, > and how frightening when it doesn't work. Definitely. > So I had lost all that effort, or had I? > All the new software was still in the buffer, I just couldn't write it anywhere. > But I could print it, and I have a linear adapter. > My linear "screen" is smaller than buffers.c, so I printed the first 2000 lines, > then saved the screen to a temp file, > then the next 2000, and so on, > and then I put the files together and reproduced buffers.c. > Holy crap! > Course printing turned tabs into spaces, so I had to run it through indent again. > My file was back! Points for much creativitiy here... > Always keep backups of your work or important files, > even just a few hours work, copy the file to /tmp or something just to be safe. Definitely, and save often when working (I always forget that one). > Anyways, try setting > ls=st > or some such and edit a directory. > Honestly I probably won't use this full scan feature very often, > too much clutter for me, > but sometimes I just want to know the size or time of one of the files in my listing, > and I can use lss or lst for that, and that meets my needs. Will have to play with this. Cheers, Adam. --Jbyekxk18hnEXT0m Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWBctfAAoJELZ22lNQBzHO6qgH/j2dEzKHg+7UCESwSW2wW3b1 MjqzPrGPNO31EL8nI5kDQGy6hqj1EIyiGiLxB0b8zGrBspQHeyM/LhmlBWjtOMif 3vxsCUnsxtTJX5gt9x9rIwDYJw1OUahE2VCDmLWqC2txsA9jDBV2QR+Txalml/qb 3tU4t1L9RmWENuYYhepe1aWTidG7pAdBdSaIxXLH7or8ntWyhf8Gsvbyd0Xmj3uv Lvu536Hz3trFhJ0uyBUvYcDifpLlz0oRf4S3r6xYHqMMwNdGkU5VlvizUOwk2jPx yDLrMeDpTBX+iGW0T3p6zv74aeL5Od7bmB7nHA2rerPMAd95GQtwPECcOHJev+U= =HiUE -----END PGP SIGNATURE----- --Jbyekxk18hnEXT0m--