mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Cycle time, size, clear order at sort prompt with ^T
This commit is contained in:
parent
df264fa6cd
commit
2f61b0910d
10
src/nnn.c
10
src/nnn.c
|
@ -584,7 +584,7 @@ static const char * const messages[] = {
|
||||||
"plugin keys:",
|
"plugin keys:",
|
||||||
"bookmark keys:",
|
"bookmark keys:",
|
||||||
"invalid regex",
|
"invalid regex",
|
||||||
"'a'u / 'd'u / 'e'xtn / 'r'ev / 's'ize / 't'ime / 'v'er / 'c'lear?",
|
"'a'u / 'd'u / 'e'xtn / 'r'ev / 's'ize / 't'ime / 'v'er / 'c'lr / '^T' (cycle)?",
|
||||||
"unmount failed! try lazy?",
|
"unmount failed! try lazy?",
|
||||||
"first file (\')/char?",
|
"first file (\')/char?",
|
||||||
"remove tmp file?",
|
"remove tmp file?",
|
||||||
|
@ -5348,6 +5348,14 @@ static int set_sort_flags(int r)
|
||||||
|
|
||||||
if (cfg.reverse)
|
if (cfg.reverse)
|
||||||
entrycmpfn = &reventrycmp;
|
entrycmpfn = &reventrycmp;
|
||||||
|
} else if ( r == CONTROL('T')) {
|
||||||
|
/* Cycling order: clear -> size -> time -> clear */
|
||||||
|
if (cfg.timeorder)
|
||||||
|
r = 's';
|
||||||
|
else if (cfg.sizeorder)
|
||||||
|
r = 'c';
|
||||||
|
else
|
||||||
|
r = 't';
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (r) {
|
switch (r) {
|
||||||
|
|
Loading…
Reference in a new issue