mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Minor plugin indentation update
This commit is contained in:
parent
1ac4b9bd5a
commit
fc3a247c31
|
@ -58,4 +58,3 @@ cddir="$(get_links "$BOOKMARKS_DIR")"
|
||||||
# https://github.com/jarun/nnn/tree/master/plugins#send-data-to-nnn
|
# https://github.com/jarun/nnn/tree/master/plugins#send-data-to-nnn
|
||||||
context=0
|
context=0
|
||||||
printf "%s" "${context}c$(readlink -f "$cddir")" > "$NNN_PIPE"
|
printf "%s" "${context}c$(readlink -f "$cddir")" > "$NNN_PIPE"
|
||||||
|
|
||||||
|
|
|
@ -19,4 +19,3 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%s" "$files" | xargs -n1 -I{} gpg --decrypt --output "{}.dec" {}
|
printf "%s" "$files" | xargs -n1 -I{} gpg --decrypt --output "{}.dec" {}
|
||||||
|
|
||||||
|
|
|
@ -35,4 +35,3 @@ else
|
||||||
|
|
||||||
printf "%s" "$files" | xargs -n1 gpg --encrypt --recipient "$recipient"
|
printf "%s" "$files" | xargs -n1 gpg --encrypt --recipient "$recipient"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,9 @@ selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
|
||||||
id=$(kdeconnect-cli -a --id-only | awk '{print $1}')
|
id=$(kdeconnect-cli -a --id-only | awk '{print $1}')
|
||||||
if [ "$(find "$selection")" ]; then
|
if [ "$(find "$selection")" ]; then
|
||||||
kdeconnect-cli -d "$id" --share "$(cat "$selection")"
|
kdeconnect-cli -d "$id" --share "$(cat "$selection")"
|
||||||
# If you want a system notification, uncomment the next 3 lines.
|
|
||||||
# notify-send -a "Kdeconnect" "Sending $(cat "$selection")"
|
# If you want a system notification, uncomment the next 3 lines.
|
||||||
|
#notify-send -a "Kdeconnect" "Sending $(cat "$selection")"
|
||||||
#else
|
#else
|
||||||
# notify-send -a "Kdeconnect" "No file selected"
|
#notify-send -a "Kdeconnect" "No file selected"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -38,4 +38,3 @@ elif [ ! "$(LC_ALL=C ls -a)" = ".
|
||||||
# On older systems that don't have ls -A
|
# On older systems that don't have ls -A
|
||||||
$batchrename
|
$batchrename
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue