[ranger] allow sml files to open in vim

This commit is contained in:
Julin S 2022-03-22 22:05:15 +05:30
parent eea9702d53
commit f5e942d39a

View File

@ -1,4 +1,14 @@
# Mention default applications to open files from ranger
# Generate at ~/.config/ranger/rifle.conf using: `ranger --copy-config=rifle`
#
#
# Define the "editor" for text files as first action
mime ^text, label editor = vim -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|sml|sig = vim -- "$@"
mime ^text, label pager = "less" -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "less" -- "$@"
# HTML/XHTML: open in terminal
ext x?html?, has w3m, terminal = w3m "$@"