yes (don't apply this to server)

This commit is contained in:
LinlyBoi
2023-02-14 22:58:07 +02:00
parent 5436946455
commit 70df5dd16d
3 changed files with 7 additions and 2 deletions

View File

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