mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Merge pull request #1224 from KlzXS/nmv_list_current
Updated .nmv to support current when NNN_LIST
This commit is contained in:
commit
1508874b5a
|
@ -51,7 +51,11 @@ else
|
||||||
findcmd="$findcmd ! -name \".*\""
|
findcmd="$findcmd ! -name \".*\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$NNN_LIST" ]; then
|
||||||
findcmd="$findcmd -print"
|
findcmd="$findcmd -print"
|
||||||
|
else
|
||||||
|
findcmd="$findcmd -printf "'"'"$NNN_LIST/%P\n"'"'
|
||||||
|
fi
|
||||||
|
|
||||||
arr=$(eval "$findcmd" | sort)
|
arr=$(eval "$findcmd" | sort)
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -7267,9 +7267,7 @@ nochange:
|
||||||
case SEL_RENAMEMUL:
|
case SEL_RENAMEMUL:
|
||||||
endselection(TRUE);
|
endselection(TRUE);
|
||||||
setenv("INCLUDE_HIDDEN", xitoa(cfg.showhidden), 1);
|
setenv("INCLUDE_HIDDEN", xitoa(cfg.showhidden), 1);
|
||||||
setenv("NNN_LIST", listpath
|
setenv("NNN_LIST", listpath ? listroot : "", 1);
|
||||||
? xitoa(is_prefix(path, listpath, xstrlen(listpath)))
|
|
||||||
: "0", 1);
|
|
||||||
|
|
||||||
if (!(getutil(utils[UTIL_BASH])
|
if (!(getutil(utils[UTIL_BASH])
|
||||||
&& plugscript(utils[UTIL_NMV], F_CLI))
|
&& plugscript(utils[UTIL_NMV], F_CLI))
|
||||||
|
|
Loading…
Reference in a new issue