From d5107d28ac41201e764a168c43f2931b6d44854c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 19 Apr 2019 19:04:20 +0530 Subject: [PATCH] Plugin getplugs: update nnn plugins --- plugins/README.md | 9 +++++---- plugins/{edit => fzy-edit} | 0 plugins/{fzy => fzy-open} | 0 plugins/getplugs | 11 +++++++++++ plugins/{paste => pastebin} | 0 5 files changed, 16 insertions(+), 4 deletions(-) rename plugins/{edit => fzy-edit} (100%) rename plugins/{fzy => fzy-open} (100%) create mode 100755 plugins/getplugs rename plugins/{paste => pastebin} (100%) diff --git a/plugins/README.md b/plugins/README.md index 088496b7..f9a8fa2b 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -1,15 +1,16 @@ | Plugin (a-z) | Lang | Deps | Description | | --- | --- | --- | --- | -| edit | sh | fzy | Fuzzy find a file in directory subtree and edit in vim | -| fzy | sh | fzy | Fuzzy find a file in directory subtree and open using xdg-open | -| hexview | sh | xxd, `$PAGER` | view a file in hex | +| fzy-edit | sh | fzy | Fuzzy find a file in directory subtree and edit in vim | +| fzy-open | sh | fzy | Fuzzy find a file in directory subtree and open using xdg-open | +| getplugs | sh | wget | Update plugins | +| hexview | sh | xxd, `$PAGER` | View a file in hex | | imgresize | sh | [imgp](https://github.com/jarun/imgp) | Resize images in directory to screen resolution | | imgur | bash | - | Upload an image to imgur (from [imgur-screenshot](https://github.com/jomo/imgur-screenshot)) | | kdeconnect | sh | kdeconnect-cli | Send selected files to an Android device | | ndiff | sh | vimdiff | File and directory diff for selection | | nmount | sh | pmount | Toggle mount status of a device as normal user | | nwal | sh | nitrogen | Set the selected image as wallpaper using nitrogen | -| paste | sh | [pastebinit](https://launchpad.net/pastebinit) | Paste contents of current (text) file to paste.ubuntu.com | +| pastebin | sh | [pastebinit](https://launchpad.net/pastebinit) | Paste contents of current (text) file to paste.ubuntu.com | | picker | sh | nnn | Pick files and pipe the newline-separated list to another utility | | pywal | sh | pywal | Set selected image as wallpaper, change terminal color scheme | | sxiv | sh | sxiv | Browse images in a dir in sxiv, set wallpaper, copy path ([config](https://wiki.archlinux.org/index.php/Sxiv#Assigning_keyboard_shortcuts))| diff --git a/plugins/edit b/plugins/fzy-edit similarity index 100% rename from plugins/edit rename to plugins/fzy-edit diff --git a/plugins/fzy b/plugins/fzy-open similarity index 100% rename from plugins/fzy rename to plugins/fzy-open diff --git a/plugins/getplugs b/plugins/getplugs new file mode 100755 index 00000000..6c74336a --- /dev/null +++ b/plugins/getplugs @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +# Description: Update nnn plugins +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +wget -nv --show-progress https://github.com/jarun/nnn/archive/master.tar.gz +tar -xf master.tar.gz +cp -vf nnn-master/plugins/* . +rm -rf nnn-master/ master.tar.gz README.md diff --git a/plugins/paste b/plugins/pastebin similarity index 100% rename from plugins/paste rename to plugins/pastebin