plugins/README.md | 2 +- plugins/fzopen | 8 ++++++++ plugins/imgur | 2 +- plugins/wallpaper | 2 +- diff --git a/plugins/README.md b/plugins/README.md index 03a23baa125988df8b1910f9200ccbd25bcb41ae..0acef1d7f826a70c7fe6b222a2d179694f6cc9db 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -32,7 +32,7 @@ | [fzplug](fzplug) | Fuzzy find, preview and run other plugins | sh | fzf | | [getplugs](getplugs) | Update plugins to installed `nnn` version | sh | curl | | [gpg\*](gpg\*) | Encrypt/decrypt files using GPG [✓] | sh | gpg | | [gutenread](gutenread) | Browse, download, read from Project Gutenberg | sh | curl, unzip, w3m
[epr](https://github.com/wustho/epr) (optional) | -| [imgresize](imgresize) | Resize images in dir to screen resolution | sh | [imgp](https://github.com/jarun/imgp) | +| [imgresize](imgresize) | Batch resize images in dir to screen resolution | sh | [imgp](https://github.com/jarun/imgp) | | [imgur](imgur) | Upload an image to imgur (from [imgur-screenshot](https://github.com/jomo/imgur-screenshot)) | bash | - | | [imgview](imgview) | View (thumbnail)images, set wallpaper, [rename](https://github.com/jarun/nnn/wiki/Basic-use-cases#browse-rename-images) and [more](https://wiki.archlinux.org/index.php/Sxiv#Assigning_keyboard_shortcuts)| sh | _see in-file docs_ | | [ipinfo](ipinfo) | Fetch external IP address and whois information | sh | curl, whois | diff --git a/plugins/fzopen b/plugins/fzopen index fa4121be4fcc531a914246a381a6a092a4e364af..52abc87d05450eaa8ef2bd71ba0744481e349e5c 100755 --- a/plugins/fzopen +++ b/plugins/fzopen @@ -17,6 +17,9 @@ # # Shell: POSIX compliant # Author: Arun Prakash Jana +NUKE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins/nuke" +USE_NUKE=0 + . "$(dirname "$0")"/.nnn-plugin-helper if type fzf >/dev/null 2>&1; then @@ -48,6 +51,11 @@ # Tell `nnn` to clear its internal selection printf "%s" "0p" > "$NNN_PIPE" fi + exit 0 +fi + +if [ "$USE_NUKE" -ne 0 ]; then + "$NUKE" "$entry" exit 0 fi diff --git a/plugins/imgur b/plugins/imgur index 4aa7a65ee9076f7ab24eedac5ce4f4131a211e53..373de0551609414c7ee78e311e6ef301973c1c30 100755 --- a/plugins/imgur +++ b/plugins/imgur @@ -28,7 +28,7 @@ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ########################################################################## # https://github.com/jomo/imgur-screenshot -# https://imgur.com/tools +# https://help.imgur.com/hc/en-us/articles/209592766-Tools-for-Imgur # # Slightly modified for `nnn` integration # diff --git a/plugins/wallpaper b/plugins/wallpaper index deea19a6f2bb075b2247084b4532e140cf16a133..5940df1906d387c2a75998c40ef2e65e03a496cb 100755 --- a/plugins/wallpaper +++ b/plugins/wallpaper @@ -14,7 +14,7 @@ nitrogen --set-zoom-fill --save "$1" elif type wal >/dev/null 2>&1; then wal -i "$1" else - printf "nitrogen ir pywal missing" + printf "nitrogen or pywal missing" read -r _ fi