nnn

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

commit 9259170afd82943180b58cd0e645a54cb3a614be
parent 2f22afcacc43594121c5214efec6d8bf692ba8c5
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat, 18 Nov 2023 00:59:09 +0530

Add example: run cmd as plugin to change directory

Diffstat:
Mplugins/README.md | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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.