From 5c76187b61295d2cc7b4d026e294536c6e410636 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 16 Dec 2019 05:55:15 +0530 Subject: Update docs --- plugins/README.md | 2 +- plugins/autojump | 17 ----------------- plugins/jump | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 18 deletions(-) delete mode 100755 plugins/autojump create mode 100755 plugins/jump (limited to 'plugins') diff --git a/plugins/README.md b/plugins/README.md index 0f2165a..a9e928a 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -14,7 +14,6 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina | Plugin (a-z) | Description | Lang | Deps | | --- | --- | --- | --- | -| autojump | Navigate to dir/path | 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 | @@ -33,6 +32,7 @@ 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 deleted file mode 100755 index d158113..0000000 --- a/plugins/autojump +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env sh - -# Description: Navigate to directory using autojump -# -# Requires: autojump - https://github.com/wting/autojump -# -# 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 new file mode 100755 index 0000000..b30530f --- /dev/null +++ b/plugins/jump @@ -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 -- cgit v1.2.3-70-g09d2