| Plugin (a-z) | Description | Lang | Deps |
| --- | --- | --- | --- |
| autojump | Navigate to dir/path | sh | autojump |
-| batchrename | Batch rename selection or dir entries | sh | mktemp |
| boom | Play random music from dir | sh | [moc](http://moc.daper.net/) |
| dups | List non-empty duplicate files in current dir | sh | find, md5sum,<br>sort uniq xargs |
| chksum | Create and verify checksums | sh | md5sum,<br>sha256sum |
#define UTIL_FZY 16
#define UTIL_NTFY 17
#define UTIL_CBCP 18
-#define UTIL_BATCHRENAME 19
+#define UTIL_NMV 19
/* Utilities to open files, run actions */
static char * const utils[] = {
"fzy",
".ntfy",
".cbcp",
- "batchrename",
+ ".nmv",
};
/* Common strings */
{
int r = get_input(messages[MSG_ORDER]);
- if ((r == 'a' || r == 'd' || r == 'e' || r == 's' || r == 't') && (entrycmpfn == &reventrycmp))
- entrycmpfn = &entrycmp;
-
switch (r) {
case 'a': /* Apparent du */
cfg.apparentsz ^= 1;
cfg.mtimeorder = 0;
cfg.sizeorder = 0;
cfg.extnorder = 0;
+ entrycmpfn = &entrycmp;
clearfilter(); /* Reload directory */
endselection(); /* We are going to reload dir */
break;
cfg.mtimeorder = 0;
cfg.apparentsz = 0;
cfg.blkorder = 0;
+ entrycmpfn = &entrycmp;
break;
case 'r': /* Reverse sort */
entrycmpfn = (entrycmpfn == &entrycmp) ? &reventrycmp : &entrycmp;
cfg.apparentsz = 0;
cfg.blkorder = 0;
cfg.extnorder = 0;
+ entrycmpfn = &entrycmp;
break;
case 't': /* Modification or access time */
cfg.mtimeorder ^= 1;
cfg.apparentsz = 0;
cfg.blkorder = 0;
cfg.extnorder = 0;
+ entrycmpfn = &entrycmp;
break;
case 'v': /* Version */
namecmpfn = (namecmpfn == &xstrverscasecmp) ? &xstricmp : &xstrverscasecmp;
case SEL_RENAMEMUL:
endselection();
- if (!plugscript(utils[UTIL_BATCHRENAME], newpath, path, F_CLI)
+ if (!plugscript(utils[UTIL_NMV], newpath, path, F_CLI)
&& !batch_rename(path)) {
printwait(messages[MSG_FAILED], &presel);
goto nochange;