NNN_LIST now should pass listroo
findcmd="$findcmd ! -name \".*\""
fi
- findcmd="$findcmd -print"
+ if [ -z "$NNN_LIST" ]; then
+ findcmd="$findcmd -print"
+ else
+ findcmd="$findcmd -printf "'"'"$NNN_LIST/%P\n"'"'
+ fi
arr=$(eval "$findcmd" | sort)
fi
case SEL_RENAMEMUL:
endselection(TRUE);
setenv("INCLUDE_HIDDEN", xitoa(cfg.showhidden), 1);
- setenv("NNN_LIST", listpath
- ? xitoa(is_prefix(path, listpath, xstrlen(listpath)))
- : "0", 1);
+ setenv("NNN_LIST", listpath ? listroot : "", 1);
if (!(getutil(utils[UTIL_BASH])
&& plugscript(utils[UTIL_NMV], F_CLI))