aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-03-30 01:51:52 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-03-30 01:51:52 +0530
commit4bf17cb7bc64d6adb2fa09b48b294cc736c22fdd (patch)
tree04a461d892fad2e8ffb86ed70860f99941ec3848 /config.def.h
parentc64327b4a6d3af4e65b2a82b334b6a083082083c (diff)
downloadnnn-4bf17cb7bc64d6adb2fa09b48b294cc736c22fdd.tar.gz
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.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 6 insertions, 0 deletions
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 },