plugins/README.md | 5 +++++ diff --git a/plugins/README.md b/plugins/README.md index a54cb9c5952c2e33b8453decfbd943f22e951f6c..e8abf17a0ad526f4cc6a22bd551d6e4ce7ff5a66 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -246,6 +246,7 @@ #### Show the git log of changes to the particular file along with the code for a quick and easy review. ```sh #!/usr/bin/env sh + git log -p -- "$1" ``` @@ -253,6 +254,7 @@ #### Change to directory in clipboard using helper script ```sh #!/usr/bin/env sh + . $(dirname $0)/.nnn-plugin-helper nnn_cd "$(xsel -ob)" @@ -262,6 +264,7 @@ #### Change directory to the location of a link using helper script with specific context (current) ```sh #!/usr/bin/env sh + . $(dirname $0)/.nnn-plugin-helper nnn_cd "$(dirname $(readlink -fn $1))" 0 @@ -271,6 +274,7 @@ #### Change to arbitrary directory without helper script ```sh #!/usr/bin/env sh + printf "cd to: " read -r dir @@ -281,6 +285,7 @@ #### Send every hovered file to X selection ```sh #!/usr/bin/env sh + if [ -z "$NNN_FIFO" ] ; then exit 1 fi