nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fabf9fd47b2aa78768a31fe184d8672fe2d8b84d
parent 6fb4338ffa795b9aebbcff942c7cdb826c95da42
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Mon, 15 Jul 2019 01:42:12 +0530

Compact notation for time/size sort order

Diffstat:
Msrc/nnn.c | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -3178,15 +3178,12 @@ static void redraw(char *path) if (cfg.showdetail) { if (ndents) { - char sort[] = "\0y time "; + char sort[] = "\0 "; if (cfg.mtimeorder) - sort[0] = 'b'; - else if (cfg.sizeorder) { - sort[0] = 'b'; - sort[3] = 's'; - sort[5] = 'z'; - } + sort[0] = 'T'; + else if (cfg.sizeorder) + sort[0] = 'S'; /* We need to show filename as it may be truncated in directory listing */ if (!cfg.blkorder)