This commit is contained in:
Salim Zaidi 2023-06-30 11:06:56 +01:00
parent 320d80fbe0
commit 626d55a2fa
45 changed files with 182 additions and 64 deletions

View file

@ -85,9 +85,9 @@ ext x?html?, has w3m, terminal = w3m "$@"
# Misc
#-------------------------------------------
# Define the "editor" for text files as first action
mime ^text, label editor = ${VISUAL:-vim} -- "$@"
mime ^text, label editor = ${VISUAL:-nvim} -- "$@"
mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-vim} -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-nvim} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext 1 = man "$1"