lf: open x-subrip files with nvim

This commit is contained in:
krolyxon 2023-05-27 22:33:17 +05:30
parent 90886f9982
commit 9af6aab3ca
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ cmd open ${{
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
text/*|application/json|inode/x-empty) $EDITOR $fx;;
text/*|application/x-subrip) $EDITOR $fx;;
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
image/svg+xml) display -- $f ;;
image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |