commit 0a61e0ab200429b487a6c2babf46dbc0f12ff18d
parent 6bf4c8fbf5d29ca00cf61523924fe998a88a8f1e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 14 Nov 2019 12:04:38 +0100
Remove nnn plugins
Diffstat:
11 files changed, 0 insertions(+), 90 deletions(-)
diff --git a/.config/nnn/plugins/copy-selection-to-clipboard b/.config/nnn/plugins/copy-selection-to-clipboard
@@ -1,32 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Copy paths of selection to clipboard
-#
-# Shell: generic
-# Author: Arun Prakash Jana
-
-# Linux
-f="$(xargs -0 < ~/.nnncp)"
-#extension=$(echo "${f##*.}" | awk '{print tolower($0)')
-mimetype=$(file --mime-type -Lb "$f")
-
-case "$mimetype" in
- image/*)
- xclip -selection clipboard -t "$mimetype" < "$f"
- ;;
- *)
- # otherwise copy path to clipboard
- echo "$f" | xclip -i -selection clipboard
- ;;
-esac
-
-
-
-# macOS
-# cat ~/.nnncp | xargs -0 | pbcopy
-
-# Termux
-# cat /data/data/com.termux/files/home/.nnncp | xargs -0 | termux-clipboard-set
-
-# Cygwin
-# cat ~/.nnncp | xargs -0 | clip
diff --git a/.config/nnn/plugins/fzy-edit b/.config/nnn/plugins/fzy-edit
@@ -1,2 +0,0 @@
-#!/bin/sh
-$EDITOR "$(find . -type f | fzy)"
diff --git a/.config/nnn/plugins/fzy-open b/.config/nnn/plugins/fzy-open
@@ -1,2 +0,0 @@
-#!/bin/sh
-nohup xdg-open "$(find . -type f | fzy)" >/dev/null 2>&1 &
diff --git a/.config/nnn/plugins/hexview b/.config/nnn/plugins/hexview
@@ -1,11 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: View a file in hex
-# Requires: xxd and $PAGER
-#
-# Shell: POSIX compliant
-# Author: Arun Prakash Jana
-
-if ! [ -z "$1" ]; then
- xxd "$1" | "$PAGER"
-fi
diff --git a/.config/nnn/plugins/movie-info b/.config/nnn/plugins/movie-info
@@ -1,2 +0,0 @@
-#!/bin/sh
-mpv --frames=0 "$1" | less
diff --git a/.config/nnn/plugins/mpv-no-video b/.config/nnn/plugins/mpv-no-video
@@ -1,2 +0,0 @@
-#!/bin/sh
-mpv --no-video "$1"
diff --git a/.config/nnn/plugins/open-images b/.config/nnn/plugins/open-images
@@ -1,2 +0,0 @@
-#!/bin/sh
-sxiv -q -t ./* >/dev/null 2>&1 &
diff --git a/.config/nnn/plugins/print b/.config/nnn/plugins/print
@@ -1,4 +0,0 @@
-#!/bin/sh
-if [ -n "$1" ]; then
- lp "$1"
-fi
diff --git a/.config/nnn/plugins/unpack b/.config/nnn/plugins/unpack
@@ -1,25 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Unpack files in selection
-#
-# Shell: generic
-
-files="$(xargs -0 < ~/.nnncp)"
-for f in $files; do
- extension=$(echo "${f##*.}" | awk '{print tolower($0)')
- #mimetype=$(file --mime-type -Lb "$f")
- case "$extension" in
- tar.gz)
- tar xvfz "$f"
- ;;
- tar.bz2)
- tar xvfj "$f"
- ;;
- zip)
- unzip "$f"
- ;;
- *)
- echo "Unknown file type '$extension' of file $f"
- ;;
- esac
-done
diff --git a/.config/nnn/plugins/upload b/.config/nnn/plugins/upload
@@ -1,4 +0,0 @@
-#!/bin/sh
-if [ -n "$1" ]; then
- upload --notify "$1"
-fi
diff --git a/.config/nnn/plugins/upload-resize-image b/.config/nnn/plugins/upload-resize-image
@@ -1,4 +0,0 @@
-#!/bin/sh
-if [ -n "$1" ]; then
- upload --notify --border --resize --sharpen "$1"
-fi