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