From: Arun Prakash Jana Date: Fri, 17 Nov 2023 19:29:09 +0000 (+0530) Subject: Add example: run cmd as plugin to change directory X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9259170afd82943180b58cd0e645a54cb3a614be;p=nnn.git Add example: run cmd as plugin to change directory --- diff --git a/plugins/README.md b/plugins/README.md index e20d1bb2..caff819e 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -370,6 +370,10 @@ if [ -n "$pattern" ]; then fi ``` +#### Change directory + + NNN_PLUG='c:!read -r to && [ -n "$to" ] && printf "0c%s" "${to}" > "$NNN_PIPE"*' + ## Contributing plugins 1. Add informative sections like _Description_, _Notes_, _Dependencies_, _Shell_, _Author_ etc. in the plugin.