commit cf987fa9885127bccc5da0750584bca0f49d684e
parent e82f6d02cdbfda3afbc66997adf15c8b4a2a5317
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sat, 16 Nov 2019 11:22:34 +0530
Plugin treeview to show tree o/p with perms and size
Diffstat:
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/plugins/README.md b/plugins/README.md
@@ -44,6 +44,7 @@ The currently available plugins are listed below.
| sxiv | sh | sxiv | View images in dir, set wallpaper, copy path ([config](https://wiki.archlinux.org/index.php/Sxiv#Assigning_keyboard_shortcuts))|
| thumb | sh | [lsix](https://github.com/hackerb9/lsix) | View thumbnail of an image or dir of images |
| transfer | sh | curl | Upload file to transfer.sh |
+| treeview | sh | tree | Informative tree output in `$EDITOR` |
| uidgid | sh | ls, less | List user and group of all files in dir |
| upgrade | sh | curl | Upgrade nnn manually on Debian 9 Stretch |
| vidthumb | sh | [ffmpegthumbnailer](https://github.com/dirkvdb/ffmpegthumbnailer),<br>[lsix](https://github.com/hackerb9/lsix) | Show video thumbnails in terminal |
diff --git a/plugins/treeview b/plugins/treeview
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+
+# Description: Show tree output in $EDITOR
+#
+# Shell: POSIX compliant
+# Author: Arun Prakash Jana
+
+tree -ps | $EDITOR -