mirror of
https://github.com/jarun/nnn.git
synced 2025-01-09 17:39:38 +00:00
plugin autojump: on jump - read entire line (#1155)
This commit is contained in:
parent
51829c8027
commit
7de52ff890
|
@ -21,8 +21,8 @@ fi
|
||||||
|
|
||||||
if type jump >/dev/null 2>&1; then
|
if type jump >/dev/null 2>&1; then
|
||||||
printf "jump to : "
|
printf "jump to : "
|
||||||
read -r dir
|
IFS= read -r line
|
||||||
odir="$(jump cd "$dir")"
|
odir="$(jump cd "${line}")"
|
||||||
printf "%s" "0c$odir" > "$NNN_PIPE"
|
printf "%s" "0c$odir" > "$NNN_PIPE"
|
||||||
elif type autojump >/dev/null 2>&1; then
|
elif type autojump >/dev/null 2>&1; then
|
||||||
printf "jump to : "
|
printf "jump to : "
|
||||||
|
|
Loading…
Reference in a new issue