nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e0ed6c827faa5c9bff230dfd7528003878b394a5
parent f04a88934e68f91734d85ac604a2460fa7ec48e9
Author: Markus Meier <markus.d.meier@gmail.com>
Date:   Sun,  9 Feb 2025 11:12:44 +0100

use small letters

Diffstat:
Mplugins/autojump | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/plugins/autojump b/plugins/autojump @@ -9,6 +9,7 @@ # - OR z - https://github.com/rupa/z (z requires fzf) # - OR z (fish) - https://github.com/jethrokuan/z (z requires fzf) # - OR z.lua - https://github.com/skywind3000/z.lua (z.lua can enhanced with fzf) +# # Note: The dependencies STORE NAVIGATION PATTERNS # # to make z.lua work, you need to set $NNN_ZLUA to the path of script z.lua @@ -23,13 +24,13 @@ if [ ! -p "$NNN_PIPE" ]; then fi if type jump >/dev/null 2>&1; then - printf "Jump to: " + printf "jump to: " IFS= read -r line # shellcheck disable=SC2086 odir="$(jump cd ${line})" printf "%s" "0c$odir" > "$NNN_PIPE" elif type autojump >/dev/null 2>&1; then - printf "Jump to: " + printf "jump to: " read -r dir odir="$(autojump "$dir")" printf "%s" "0c$odir" > "$NNN_PIPE" @@ -38,7 +39,7 @@ elif type zoxide >/dev/null 2>&1; then odir="$(zoxide query -i --)" printf "%s" "0c$odir" > "$NNN_PIPE" else - printf "Jump to: " + printf "jump to: " read -r dir odir="$(zoxide query -- "$dir")" printf "%s" "0c$odir" > "$NNN_PIPE" @@ -50,7 +51,7 @@ elif type lua >/dev/null 2>&1 && [ -n "$NNN_ZLUA" ]; then | fzf --nth -1 --delimiter=/ --reverse --inline-info --tac +s -e --height 35%)" printf "0c%s" "$odir" > "$NNN_PIPE" else - printf "Jump to: " + printf "jump to: " read -r line odir="$(lua "$NNN_ZLUA" -e "$line")" printf "%s" "0c$odir" > "$NNN_PIPE"