From d5107d28ac41201e764a168c43f2931b6d44854c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 19 Apr 2019 19:04:20 +0530 Subject: Plugin getplugs: update nnn plugins --- plugins/README.md | 9 +++++---- plugins/edit | 8 -------- plugins/fzy | 8 -------- plugins/fzy-edit | 8 ++++++++ plugins/fzy-open | 8 ++++++++ plugins/getplugs | 11 +++++++++++ plugins/paste | 13 ------------- plugins/pastebin | 13 +++++++++++++ 8 files changed, 45 insertions(+), 33 deletions(-) delete mode 100755 plugins/edit delete mode 100755 plugins/fzy create mode 100755 plugins/fzy-edit create mode 100755 plugins/fzy-open create mode 100755 plugins/getplugs delete mode 100755 plugins/paste create mode 100755 plugins/pastebin diff --git a/plugins/README.md b/plugins/README.md index 088496b..f9a8fa2 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/edit deleted file mode 100755 index 6155250..0000000 --- a/plugins/edit +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env sh - -# Description: Fuzzy find a file in directory subtree with fzy and edit in vim -# -# Shell: POSIX compliant -# Author: Arun Prakash Jana - -vim "$(find -type f | fzy)" diff --git a/plugins/fzy b/plugins/fzy deleted file mode 100755 index 0ddd229..0000000 --- a/plugins/fzy +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env sh - -# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open -# -# Shell: POSIX compliant -# Author: Arun Prakash Jana - -xdg-open "$(find -type f | fzy)" >/dev/null 2>&1 diff --git a/plugins/fzy-edit b/plugins/fzy-edit new file mode 100755 index 0000000..6155250 --- /dev/null +++ b/plugins/fzy-edit @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +# Description: Fuzzy find a file in directory subtree with fzy and edit in vim +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +vim "$(find -type f | fzy)" diff --git a/plugins/fzy-open b/plugins/fzy-open new file mode 100755 index 0000000..0ddd229 --- /dev/null +++ b/plugins/fzy-open @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +xdg-open "$(find -type f | fzy)" >/dev/null 2>&1 diff --git a/plugins/getplugs b/plugins/getplugs new file mode 100755 index 0000000..6c74336 --- /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/paste deleted file mode 100755 index de130e4..0000000 --- a/plugins/paste +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env sh - -# Description: Paste contents of a text a file to paste.ubuntu.com using pastebinit -# -# pastebinit: https://launchpad.net/pastebinit -# -# Shell: POSIX compliant -# Author: Arun Prakash Jana - -if ! [ -z "$1" ]; then - pastebinit "$1" - read input -fi diff --git a/plugins/pastebin b/plugins/pastebin new file mode 100755 index 0000000..de130e4 --- /dev/null +++ b/plugins/pastebin @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +# Description: Paste contents of a text a file to paste.ubuntu.com using pastebinit +# +# pastebinit: https://launchpad.net/pastebinit +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +if ! [ -z "$1" ]; then + pastebinit "$1" + read input +fi -- cgit v1.2.3-70-g09d2