From 9259170afd82943180b58cd0e645a54cb3a614be Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 18 Nov 2023 00:59:09 +0530 Subject: [PATCH] Add example: run cmd as plugin to change directory --- plugins/README.md | 4 ++++ 1 file changed, 4 insertions(+) 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.