Convert lf from stow to chezmoi

This commit is contained in:
Buddy Sandidge 2023-05-25 15:13:03 -07:00
parent 30b064c9ed
commit cb98b24161
3 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,5 @@
/go/
/hellotech/
/i3/
/install-scripts/
/lf/
/node/
/old-scripts/
/ripgrep/

View File

@ -1,3 +1,4 @@
{{ if lookPath "lf" -}}
set drawbox true
set hidden true
set icons true
@ -23,10 +24,11 @@ map , # find-prev (default ',')
map o open
cmd open ${{
cmd open ${{ "{{" }}
case $(file --mime-type "$f" --brief --dereference) in
text/*|application/json) $EDITOR "$f";;
video/*|image/*|application/pdf) xdg-open "$f";;
*) xdg-open "$f";;
esac
}}
{{ "}}" }}
{{- end }}

View File