mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Update nuke to use mocq
This commit is contained in:
parent
db240eeeda
commit
79cbcc18e1
10
plugins/nuke
10
plugins/nuke
|
@ -13,7 +13,7 @@
|
||||||
# 2. Run nnn with the program option to indicate a CLI opener
|
# 2. Run nnn with the program option to indicate a CLI opener
|
||||||
# nnn -c
|
# nnn -c
|
||||||
# # The -c program option overrides option -e
|
# # The -c program option overrides option -e
|
||||||
# 3. nuke can use nnn plugins (e.g. mocplay is used for audio), $PATH is updated.
|
# 3. nuke can use nnn plugins (e.g. mocq is used for audio), $PATH is updated.
|
||||||
#
|
#
|
||||||
# Details:
|
# Details:
|
||||||
# Inspired by ranger's scope.sh, modified for usage with nnn.
|
# Inspired by ranger's scope.sh, modified for usage with nnn.
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
# rar: list with unrar
|
# rar: list with unrar
|
||||||
# 7-zip: list with 7z
|
# 7-zip: list with 7z
|
||||||
# pdf: zathura (GUI), pdftotext, mutool, exiftool
|
# pdf: zathura (GUI), pdftotext, mutool, exiftool
|
||||||
# audio: mocplay (nnn plugin using MOC), mpv, media_client (Haiku), mediainfo, exiftool
|
# audio: mocq (nnn plugin using MOC), mpv, media_client (Haiku), mediainfo, exiftool
|
||||||
# avi|mkv|mp4: smplayer, mpv (GUI), ffmpegthumbnailer, mediainfo, exiftool
|
# avi|mkv|mp4: smplayer, mpv (GUI), ffmpegthumbnailer, mediainfo, exiftool
|
||||||
# log: vi
|
# log: vi
|
||||||
# torrent: rtorrent, transmission-show
|
# torrent: rtorrent, transmission-show
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
# Multimedia by mime:
|
# Multimedia by mime:
|
||||||
# image/*: imv/sxiv (GUI), viu (https://github.com/atanunq/viu), img2txt, exiftool
|
# image/*: imv/sxiv (GUI), viu (https://github.com/atanunq/viu), img2txt, exiftool
|
||||||
# video/*: smplayer, mpv (GUI), ffmpegthumbnailer, mediainfo, exiftool
|
# video/*: smplayer, mpv (GUI), ffmpegthumbnailer, mediainfo, exiftool
|
||||||
# audio/*: mocplay (nnn plugin using MOC), mpv, media_client (Haiku), mediainfo, exiftool
|
# audio/*: mocq (nnn plugin using MOC), mpv, media_client (Haiku), mediainfo, exiftool
|
||||||
# application/pdf: zathura (GUI), pdftotext, mutool, exiftool
|
# application/pdf: zathura (GUI), pdftotext, mutool, exiftool
|
||||||
# Other mimes:
|
# Other mimes:
|
||||||
# text/troff: man -l
|
# text/troff: man -l
|
||||||
|
@ -106,8 +106,8 @@ handle_pdf() {
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_audio() {
|
handle_audio() {
|
||||||
if type mocp >/dev/null 2>&1 && type mocplay >/dev/null 2>&1; then
|
if type mocp >/dev/null 2>&1 && type mocq >/dev/null 2>&1; then
|
||||||
mocplay "${FPATH}" "opener" >/dev/null 2>&1
|
mocq "${FPATH}" "opener" >/dev/null 2>&1
|
||||||
exit 0
|
exit 0
|
||||||
elif type mpv >/dev/null 2>&1; then
|
elif type mpv >/dev/null 2>&1; then
|
||||||
mpv "${FPATH}" >/dev/null 2>&1 &
|
mpv "${FPATH}" >/dev/null 2>&1 &
|
||||||
|
|
Loading…
Reference in a new issue