From ff72917e72a783081db4b73939d6d094c863eaf7 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 2 Jan 2020 04:15:17 +0530 Subject: Plugin rename --- plugins/README.md | 2 +- plugins/autojump | 19 +++++++++++++++++++ plugins/jump | 19 ------------------- 3 files changed, 20 insertions(+), 20 deletions(-) create mode 100755 plugins/autojump delete mode 100755 plugins/jump (limited to 'plugins') diff --git a/plugins/README.md b/plugins/README.md index 2dd02c2..6c8f0ee 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -14,6 +14,7 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina | Plugin (a-z) | Description | Lang | Deps | | --- | --- | --- | --- | +| autojump | Navigate to dir/path (**autojump stores navigation patterns**) | sh | autojump | | boom | Play random music from dir | sh | [moc](http://moc.daper.net/) | | dups | List non-empty duplicate files in current dir | sh | find, md5sum,
sort uniq xargs | | chksum | Create and verify checksums | sh | md5sum,
sha256sum | @@ -32,7 +33,6 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina | imgur | Upload an image to imgur (from [imgur-screenshot](https://github.com/jomo/imgur-screenshot)) | bash | - | | imgviu | View an image or images in dir in `$PAGER` | sh | [viu](https://github.com/atanunq/viu), less | | ipinfo | Fetch external IP address and whois information | sh | curl, whois | -| jump | Navigate to dir/path (**autojump stores navigation patterns**) | sh | autojump | | kdeconnect | Send selected files to an Android device | sh | kdeconnect-cli | | launch | GUI application launcher | sh | fzf/fzy | | mediainf | Show media information | sh | mediainfo | diff --git a/plugins/autojump b/plugins/autojump new file mode 100755 index 0000000..b30530f --- /dev/null +++ b/plugins/autojump @@ -0,0 +1,19 @@ +#!/usr/bin/env sh + +# Description: Navigate to directory using autojump +# +# Requires: autojump - https://github.com/wting/autojump +# +# Note: autojump STORES NAVIGATION PATTERNS +# +# Shell: POSIX compliant +# Author: Marty Buchaus + +if which autojump >/dev/null 2>&1; then + printf "jump to: " + read -r dir + odir="$(autojump "$dir")" + printf "%s" "0$odir" > "$NNN_PIPE" +else + exit 1 +fi diff --git a/plugins/jump b/plugins/jump deleted file mode 100755 index b30530f..0000000 --- a/plugins/jump +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env sh - -# Description: Navigate to directory using autojump -# -# Requires: autojump - https://github.com/wting/autojump -# -# Note: autojump STORES NAVIGATION PATTERNS -# -# Shell: POSIX compliant -# Author: Marty Buchaus - -if which autojump >/dev/null 2>&1; then - printf "jump to: " - read -r dir - odir="$(autojump "$dir")" - printf "%s" "0$odir" > "$NNN_PIPE" -else - exit 1 -fi -- cgit v1.2.3-70-g09d2