aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/fzy-open
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-17 13:08:26 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-17 13:08:26 +0530
commit7d0be597ad2791ef223cca732b9e4223879e3dbb (patch)
tree61f36359234955819453b2c7c1f0bc35060f50e9 /plugins/fzy-open
parent5b8b9eaa922022011df690f6da079d64ff7dcb19 (diff)
downloadnnn-7d0be597ad2791ef223cca732b9e4223879e3dbb.tar.gz
Rename fzy-open to fzopen
Diffstat (limited to 'plugins/fzy-open')
-rwxr-xr-xplugins/fzy-open17
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/fzy-open b/plugins/fzy-open
deleted file mode 100755
index 97da456..0000000
--- a/plugins/fzy-open
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Fuzzy find a file in directory subtree with fzy
-# Opens in $VISUAL or $EDITOR if text
-# Opens other type of files with xdg-open
-#
-# Shell: POSIX compliant
-# Author: Arun Prakash Jana
-
-entry="$(find -type f 2>/dev/null | fzy)"
-
-case "$(file -biL "$entry")" in
- *text*)
- "${VISUAL:-$EDITOR}" "$entry" ;;
- *)
- xdg-open "$entry" >/dev/null 2>&1 ;;
-esac