2016-08-25 19:35:01 (UTC-03:00)
Marcel Rodrigues <marcelgmr@gmail.com>
Add config option to change default listing view flags.
diff --git a/config.h b/config.h index d49d284..c2b644c 100644 --- a/config.h +++ b/config.h @@ -66,6 +66,10 @@ /* Number of entries to jump on RVK_JUMP_DOWN and RVK_JUMP_UP. */ #define RV_JUMP 10 +/* Default listing view flags. + May include SHOW_FILES, SHOW_DIRS and SHOW_HIDDEN. */ +#define RV_FLAGS SHOW_FILES | SHOW_DIRS + /* Optional macro to be executed when a batch operation finishes. */ #define RV_ALERT() beep() diff --git a/rover.c b/rover.c index 6b53196..ad2afe4 100644 --- a/rover.c +++ b/rover.c @@ -1024,7 +1024,7 @@ main(int argc, char *argv[]) rover.nfiles = 0; for (i = 0; i < 10; i++) { rover.tabs[i].esel = rover.tabs[i].scroll = 0; - rover.tabs[i].flags = SHOW_FILES | SHOW_DIRS; + rover.tabs[i].flags = RV_FLAGS; } strcpy(rover.tabs[0].cwd, getenv("HOME")); for (i = 1; i < argc && i < 10; i++) {