]> Sergey Matveev's repositories - nnn.git/commitdiff
nuke: open log files in vi
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 19 Feb 2020 14:52:00 +0000 (20:22 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 19 Feb 2020 14:52:00 +0000 (20:22 +0530)
plugins/nuke

index f59edfcbe68e6aa7c0bab7976b6b093a613801a2..3287087b362d96fc1e620c1d216103cb9295e8f8 100755 (executable)
@@ -44,6 +44,7 @@
 #      pdf: zathura (GUI), pdftotext, mutool, exiftool
 #      audio: mocplay (nnn plugin using MOC), mpv, mediainfo, exiftool
 #      avi|mkv|mp4: smplayer, mpv (GUI), ffmpegthumbnailer, mediainfo, exiftool
+#      log: vi
 #      torrent: rtorrent, transmission-show
 #      odt|ods|odp|sxw: odt2txt
 #      md: glow (https://github.com/charmbracelet/glow)
@@ -178,6 +179,11 @@ handle_extension() {
             handle_video
             exit 1;;
 
+        ## Log files
+        log)
+            vi "${FPATH}"
+            exit 0;;
+
         ## BitTorrent
         torrent)
             if which rtorrent >/dev/null 2>&1; then
@@ -220,6 +226,7 @@ handle_extension() {
                 exit 0
             fi
             ;;
+
         ## JSON
         json)
             if which jq >/dev/null 2>&1; then