|
@@ -314,6 +314,7 @@ typedef struct { |
|
|
uint selmode : 1; /* Set when selecting files */ |
|
|
uint selmode : 1; /* Set when selecting files */ |
|
|
uint oldcolor : 1; /* Show dirs in context colors */ |
|
|
uint oldcolor : 1; /* Show dirs in context colors */ |
|
|
uint reserved : 14; |
|
|
uint reserved : 14; |
|
|
|
|
|
uint stayonsel : 1; /* Disable auto-proceed on select */ |
|
|
} runstate; |
|
|
} runstate; |
|
|
|
|
|
|
|
|
/* Contexts or workspaces */ |
|
|
/* Contexts or workspaces */ |
|
@@ -6461,7 +6462,7 @@ nochange: |
|
|
else |
|
|
else |
|
|
#endif |
|
|
#endif |
|
|
/* move cursor to the next entry if this is not the last entry */ |
|
|
/* move cursor to the next entry if this is not the last entry */ |
|
|
if (!g_state.picker && cur != ndents - 1) |
|
|
|
|
|
|
|
|
if (!g_state.stayonsel && !g_state.picker && cur != ndents - 1) |
|
|
move_cursor((cur + 1) % ndents, 0); |
|
|
move_cursor((cur + 1) % ndents, 0); |
|
|
break; |
|
|
break; |
|
|
case SEL_SELMUL: |
|
|
case SEL_SELMUL: |
|
@@ -7256,6 +7257,7 @@ static void usage(void) |
|
|
" -F show fortune\n" |
|
|
" -F show fortune\n" |
|
|
" -g regex filters [default: string]\n" |
|
|
" -g regex filters [default: string]\n" |
|
|
" -H show hidden files\n" |
|
|
" -H show hidden files\n" |
|
|
|
|
|
" -J no auto-proceed on select\n" |
|
|
" -K detect key collision\n" |
|
|
" -K detect key collision\n" |
|
|
" -l val set scroll lines\n" |
|
|
" -l val set scroll lines\n" |
|
|
" -n type-to-nav mode\n" |
|
|
" -n type-to-nav mode\n" |
|
@@ -7417,7 +7419,7 @@ int main(int argc, char *argv[]) |
|
|
|
|
|
|
|
|
while ((opt = (env_opts_id > 0 |
|
|
while ((opt = (env_opts_id > 0 |
|
|
? env_opts[--env_opts_id] |
|
|
? env_opts[--env_opts_id] |
|
|
: getopt(argc, argv, "aAb:cCdeEfFgHKl:nop:P:QrRs:St:T:uVwxh"))) != -1) { |
|
|
|
|
|
|
|
|
: getopt(argc, argv, "aAb:cCdeEfFgHJKl:nop:P:QrRs:St:T:uVwxh"))) != -1) { |
|
|
switch (opt) { |
|
|
switch (opt) { |
|
|
#ifndef NOFIFO |
|
|
#ifndef NOFIFO |
|
|
case 'a': |
|
|
case 'a': |
|
@@ -7462,6 +7464,9 @@ int main(int argc, char *argv[]) |
|
|
case 'H': |
|
|
case 'H': |
|
|
cfg.showhidden = 1; |
|
|
cfg.showhidden = 1; |
|
|
break; |
|
|
break; |
|
|
|
|
|
case 'J': |
|
|
|
|
|
g_state.stayonsel = 1; |
|
|
|
|
|
break; |
|
|
case 'K': |
|
|
case 'K': |
|
|
check_key_collision(); |
|
|
check_key_collision(); |
|
|
return EXIT_SUCCESS; |
|
|
return EXIT_SUCCESS; |
|
|