[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ranger-users] MC user really wanting to become a Ranger user
From: |
Wojciech Siewierski |
Subject: |
Re: [Ranger-users] MC user really wanting to become a Ranger user |
Date: |
Fri, 16 Jun 2017 10:11:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 15.06.2017 04:18, Russell Urquhart wrote:
> I wanted to thank everyone again for all their input.
>
> For the budding MC user going to ranger, let me suggest how I am configuring
> my ranger space.
>
> I type:
>
> gn
> ~
> zh
> Ms
>
>
> I'll be adding more as i go along.
>
> QUESTION: is there a way that i can get the Ms linemode to show the
> file/diretory sizes as full sizes and not 1K or 2B, etc.?
>
> Thanks again to everyone!
You will need to create a new linemode based on SizeMtimeLinemode
<https://github.com/ranger/ranger/blob/1029cfdd32f37264103662dee2bdb46ebc3ed319/ranger/core/linemode.py#L123>.
See examples/plugin_linemode.py for an example how to do so. It'd look
almost the same as SizeMtimeLinemode but wouldn't call human_readable().
Cheers
--
Wojciech 'vifon' Siewierski
signature.asc
Description: OpenPGP digital signature