From 4bf17cb7bc64d6adb2fa09b48b294cc736c22fdd Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 30 Mar 2017 01:51:52 +0530 Subject: Switches to toggle detail view, file size sort 1. The detailed view shows file type and size using keybind 'd'. Disabled by default. 2. Option 's' sorts dir entries by descending order of size. --- config.def.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index bffc69d..9c6ae7e 100644 --- a/config.def.h +++ b/config.def.h @@ -4,8 +4,10 @@ #define EMPTY " " int mtimeorder = 0; /* Set to 1 to sort by time modified */ +int sizeorder = 0; /* Set to 1 to sort by file size */ int idletimeout = 0; /* Screensaver timeout in seconds, 0 to disable */ int showhidden = 0; /* Set to 1 to show hidden files by default */ +int showdetail = 0; /* Set to show additional file info */ char *idlecmd = "rain"; /* The screensaver program */ struct assoc assocs[] = { @@ -62,6 +64,10 @@ struct key bindings[] = { { '~', SEL_CDHOME }, /* Toggle hide .dot files */ { '.', SEL_TOGGLEDOT }, + /* Detailed listing */ + { 'd', SEL_DETAIL }, + /* Toggle sort by size */ + { 's', SEL_FSIZE }, /* Toggle sort by time */ { 't', SEL_MTIME }, { CONTROL('L'), SEL_REDRAW }, -- cgit v1.2.3-70-g09d2