nuke: open log files in vi

This commit is contained in:
Arun Prakash Jana 2020-02-19 20:22:00 +05:30
parent c5d122e299
commit f6e814e364
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

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