[ranger] allow sml files to open in vim
This commit is contained in:
parent
eea9702d53
commit
f5e942d39a
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in New Issue
Block a user