/ Filter Ins, ^T Toggle nav-as-you-type
b Pin current dir ^W Go to pinned dir
Tab, ^I Next context d Toggle detail view
- `, ^/ Leader key LeaderN Go to/create context N
+ `, ^/ Leader key N, LeadN Go to/create context N
Esc Exit prompt ^L Redraw/clear prompt
^G Quit and cd q Quit context
Q, ^Q Quit ? Help, config
"e/ Filter Ins, ^T Toggle nav-as-you-type\n"
"eb Pin current dir ^W Go to pinned dir\n"
"8Tab, ^I Next context d Toggle detail view\n"
- "a`, ^/ Leader key LeaderN Go to/create context N\n"
+ "a`, ^/ Leader key N, LeadN Go to/create context N\n"
"cEsc Exit prompt ^L Redraw/clear prompt\n"
"d^G Quit and cd q Quit context\n"
"aQ, ^Q Quit ? Help, config\n"
setdirwatch();
goto begin;
case SEL_LEADER: // fallthrough
- case SEL_CYCLE:
+ case SEL_CYCLE: // fallthrough
+ case SEL_CTX1: // fallthrough
+ case SEL_CTX2: // fallthrough
+ case SEL_CTX3: // fallthrough
+ case SEL_CTX4:
if (sel == SEL_CYCLE)
fd = '>';
+ else if (sel >= SEL_CTX1 && sel <= SEL_CTX4)
+ fd = sel - SEL_CTX1 + '1';
else
fd = get_input(NULL);
case '&':
presel = fd;
goto nochange;
- case '>':
- case '.':
- case '<':
+ case '>': // fallthrough
+ case '.': // fallthrough
+ case '<': // fallthrough
case ',':
r = cfg.curctx;
if (fd == '>' || fd == '.')
SEL_CDLAST,
SEL_LEADER,
SEL_CYCLE,
+ SEL_CTX1,
+ SEL_CTX2,
+ SEL_CTX3,
+ SEL_CTX4,
SEL_PIN,
SEL_VISIT,
SEL_FLTR,
/* Cycle contexts in forward direction */
{ '\t', SEL_CYCLE },
{ CONTROL('I'), SEL_CYCLE },
+ /* Go to/create context N */
+ { '1', SEL_CTX1 },
+ { '2', SEL_CTX2 },
+ { '3', SEL_CTX3 },
+ { '4', SEL_CTX4 },
/* Mark a path to visit later */
{ 'b', SEL_PIN },
/* Visit marked directory */