mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
commit
b49cc28d80
|
@ -40,6 +40,7 @@ exit_status=0
|
|||
dst_file=$(mktemp "$TMPDIR/.nnnXXXXXX")
|
||||
|
||||
if nnn_use_selection "Rename"; then
|
||||
# shellcheck disable=SC2154
|
||||
arr=$(tr '\0' '\n' < "$selection")
|
||||
else
|
||||
findcmd="find . ! -name ."
|
||||
|
|
|
@ -48,7 +48,7 @@ nnn_use_selection() {
|
|||
if [ "$NNN_PREFER_SELECTION" -eq 1 ]; then
|
||||
return 0
|
||||
else
|
||||
[ -n "$1" ] && printf "$1 "
|
||||
[ -n "$1" ] && printf "%s " "$1"
|
||||
printf "(s)election/(c)urrent? [default=c] "
|
||||
read -r resp__
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ if [ "$symmetry" = "s" ]; then
|
|||
else
|
||||
if nnn_use_selection; then
|
||||
clear_sel=1
|
||||
# shellcheck disable=SC2154
|
||||
files=$(tr '\0' '\n' < "$selection")
|
||||
else
|
||||
clear_sel=0
|
||||
|
|
Loading…
Reference in a new issue