]> Sergey Matveev's repositories - nnn.git/commitdiff
Plugin treeview to show tree o/p with perms and size
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Nov 2019 05:52:34 +0000 (11:22 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Nov 2019 05:52:34 +0000 (11:22 +0530)
plugins/README.md
plugins/treeview [new file with mode: 0755]

index 95e2321ea376f334cda8865fb0561fac903c2e98..b3a3a3ce6fb963df4c7a77551100b8f6e1e8b4a5 100644 (file)
@@ -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
new file mode 100755 (executable)
index 0000000..c8f8784
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+
+# Description: Show tree output in $EDITOR
+#
+# Shell: POSIX compliant
+# Author: Arun Prakash Jana
+
+tree -ps | $EDITOR -