/* Repopulate as directory content may have changed */
goto begin;
}
- case SEL_COPY:
+ case SEL_SEL:
if (!ndents)
goto nochange;
dents[cur].flags |= FILE_COPIED;
}
break;
- case SEL_COPYMUL:
+ case SEL_SELMUL:
cfg.copymode ^= 1;
if (cfg.copymode) {
if (copybufpos) {
} else
copyendid = cur;
} // fallthrough
- case SEL_COPYALL:
- if (sel == SEL_COPYALL) {
+ case SEL_SELALL:
+ if (sel == SEL_SELALL) {
if (!ndents)
goto nochange;
copyendid = ndents - 1;
}
- if ((!ncp && copystartid < copyendid) || sel == SEL_COPYALL) {
+ if ((!ncp && copystartid < copyendid) || sel == SEL_SELALL) {
for (r = copystartid; r <= copyendid; ++r) {
appendfpath(newpath, mkpath(path, dents[r].name, newpath));
dents[r].flags |= FILE_COPIED;
goto nochange;
}
continue;
- case SEL_COPYLIST:
+ case SEL_SELLST:
if (showcplist() || showcpfile()) {
if (cfg.filtermode)
presel = FILTER;
SEL_MTIME,
SEL_WILD,
SEL_REDRAW,
- SEL_COPY,
- SEL_COPYMUL,
- SEL_COPYALL,
- SEL_COPYLIST,
+ SEL_SEL,
+ SEL_SELMUL,
+ SEL_SELALL,
+ SEL_SELLST,
SEL_CP,
SEL_MV,
SEL_RMMUL,
/* Redraw window */
{ CONTROL('L'), SEL_REDRAW },
/* Copy currently selected file path */
- { CONTROL('K'), SEL_COPY },
- { ' ', SEL_COPY },
+ { CONTROL('K'), SEL_SEL },
+ { ' ', SEL_SEL },
/* Toggle copy multiple file paths */
- { 'K', SEL_COPYMUL },
- { CONTROL('Y'), SEL_COPYMUL },
+ { 'K', SEL_SELMUL },
+ { CONTROL('Y'), SEL_SELMUL },
/* Select all files in current dir */
- { 'Y', SEL_COPYALL },
+ { 'Y', SEL_SELALL },
/* Show list of copied files */
- { 'y', SEL_COPYLIST },
+ { 'y', SEL_SELLST },
/* Copy from copy buffer */
{ 'P', SEL_CP },
/* Move from copy buffer */