Browse Source

follow symlinks when detecting filetype in lf (#1052)

fix bug in lf where symlinked files don't open in the expected program
pull/1053/head
Future is FOSS 2 months ago
committed by GitHub
parent
commit
ed9a67ed6d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .config/lf/lfrc

2
.config/lf/lfrc

@ -14,7 +14,7 @@ $lf -remote "send $id set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope"
# cmds/functions
cmd open ${{
case $(file --mime-type $f -b) in
case $(file --mime-type "$(readlink -f $f)" -b) in
image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
text/*) $EDITOR $fx;;
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;

Loading…
Cancel
Save