Re: change "timeformat_old" from 6 months to 1 year

2016-09-18 Thread Yury V. Zaytsev

On Mon, 19 Sep 2016, Mooffie wrote:


On 9/19/16, Mooffie  wrote:


One possibility is to modify MC's source code:

https://source.midnight-commander.org/S/lib--timefmt.c.html#L133

Change the "6L" (six months) to "12L".


Or you can edit the MC binary directly.

That expression (6 * 30 * 24 * 60 * 60) equals 0x00ed4e00. Use MC's
viewer to edit /usr/bin/mc: press  for hex view. Search for "00 4e
ed 00" (assuming little endian). But it turns out MC's hex search has
a bug: you should tick the "All charsets" and "Case sensitive"
checkboxes first.


... which reminds of how I learned the first pieces of knowledge about hex 
some 20 years ago: I set out to patch Dune 2 save files to get unlimited 
spice by replacing the actual value with FF FF (having overheard the 
conversation in the corridor). Of course, on the first attempt, I did it 
in ACSII mode and guess what, it didn't work! Later, I've got my hands on 
hiew, as nc at that time, I think, didn't have a hex editor inbuilt.


Are we seriously THAT old? Sigh...

--
Sincerely yours,
Yury V. Zaytsev
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: change "timeformat_old" from 6 months to 1 year

2016-09-18 Thread Mooffie
On 9/19/16, Mooffie  wrote:
>
> One possibility is to modify MC's source code:
>
> https://source.midnight-commander.org/S/lib--timefmt.c.html#L133
>
> Change the "6L" (six months) to "12L".

Or you can edit the MC binary directly.

That expression (6 * 30 * 24 * 60 * 60) equals 0x00ed4e00. Use MC's
viewer to edit /usr/bin/mc: press  for hex view. Search for "00 4e
ed 00" (assuming little endian). But it turns out MC's hex search has
a bug: you should tick the "All charsets" and "Case sensitive"
checkboxes first.
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: change "timeformat_old" from 6 months to 1 year

2016-09-18 Thread Mooffie
On 9/18/16, Fourhundred Thecat <400the...@gmx.ch> wrote:
> Hello,
>
> I am using different date formats for "timeformat_recent" and
> "timeformat_old":
>
>   [Misc]
>   timeformat_recent=%b %e  %H:%M
>   timeformat_old=%Y %b %e  %H:%M
>
> which gives me nice, clean dates, where new files are immediately
> distinguished from older ones:
>
>Sep  3  15:13
>   2016 Mar 10  19:57
>
> that works great, except that "timeformat_old" is used for files 6
> months or older.
>
> I would like to change it to 1 year or older, so that for newer files
> (less than one year), I don't see the year.
>
> How can I do it ?

One possibility is to modify MC's source code:

https://source.midnight-commander.org/S/lib--timefmt.c.html#L133

Change the "6L" (six months) to "12L".

(Another possibility is to use mc^2 and describe the logic with Lua.
This gives you more freedom than a fixed "1 year ago". For example,
here's a snippet that shows your timeformat_recent only for files
modified in 2016:
https://gist.github.com/mooffie/de41af651f9383c3bd38f0f6259522a0 )
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Desparately need mc for Win8.1 64bit?

2016-09-18 Thread chris glur
Imagine what a relief to be HOME with Mr.Norton [of the 70's]?
Thank you !!

After using RPi:linux:curl to fetch the misssing half of *.7z,
via the slow problematic connection and copying to Win8.1 by
USBstik, the cartoon-system's behavior couldn't be 'logged'
since MrNorton had not yet come-alive.
 So, I've lost the knowledge of what the installation problem
was. [BTW I've often wondered how much PeeCee is in non-Anglo
societies: eg. how "problem" morphed to "issue"].

Now let's see if/how FM can help paste this to that other hatefull
cartoon-based:Gmail to which my  access is locked.

OMG, FM also shows the line-len; like the superb mcedit.
Of course, the lameness of the mouse, compared to *nix, is not
caused by  -- nogmp.

Thanks to all contributors.

On 9/18/16, Yury V. Zaytsev  wrote:
> On Sun, 18 Sep 2016, chris glur wrote:
>
>> Win8.1 x64 sees the 10MB *.z7 on the USBstik as a known type. But
>> where's the documentation of how to expand and install it, without first
>> getting married to M$ ?!
>
> http://www.7-zip.org/download.html
>
> --
> Sincerely yours,
> Yury V. Zaytsev
>
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


change "timeformat_old" from 6 months to 1 year

2016-09-18 Thread Fourhundred Thecat
Hello,

I am using different date formats for "timeformat_recent" and
"timeformat_old":

  [Misc]
  timeformat_recent=%b %e  %H:%M
  timeformat_old=%Y %b %e  %H:%M

which gives me nice, clean dates, where new files are immediately
distinguished from older ones:

   Sep  3  15:13
  2016 Mar 10  19:57

that works great, except that "timeformat_old" is used for files 6
months or older.

I would like to change it to 1 year or older, so that for newer files
(less than one year), I don't see the year.

How can I do it ?

___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc