mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
open empty files in text editor
This commit is contained in:
parent
6a00215df3
commit
dae47c7aeb
@ -18,6 +18,7 @@ cmd open ${{
|
||||
case $(file --mime-type $f -b) in
|
||||
image/vnd.djvu|application/pdf|application/octet-stream) setsid -f zathura $fx >/dev/null 2>&1 ;;
|
||||
text/*) $EDITOR $fx;;
|
||||
inode/x-empty) $EDITOR $fx;;
|
||||
image/x-xcf|image/svg+xml) setsid -f gimp $f >/dev/null 2>&1 ;;
|
||||
image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\)\(_large\)*$" | sxiv -aio 2>/dev/null | lf-select ;;
|
||||
audio/*) mpv --audio-display=no $f ;;
|
||||
|
||||
@ -13,7 +13,8 @@ application/pdf=pdf.desktop;
|
||||
image/png=img.desktop;
|
||||
image/jpeg=img.desktop;
|
||||
image/gif=img.desktop;
|
||||
application/rss+xml=rss.desktop
|
||||
video/x-matroska=video.desktop
|
||||
x-scheme-handler/lbry=lbry.desktop
|
||||
inode/directory=file.desktop
|
||||
application/rss+xml=rss.desktop;
|
||||
video/x-matroska=video.desktop;
|
||||
x-scheme-handler/lbry=lbry.desktop;
|
||||
inode/directory=file.desktop;
|
||||
inode/x-empty=text.desktop;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user