mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-21 01:34:34 +05:30
change ranger editor
This commit is contained in:
parent
095b27da4a
commit
b6eecdf5d8
|
@ -213,6 +213,9 @@ label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
|
||||||
label open, has xdg-open = xdg-open -- "$@"
|
label open, has xdg-open = xdg-open -- "$@"
|
||||||
label open, has open = open -- "$@"
|
label open, has open = open -- "$@"
|
||||||
|
|
||||||
|
# default editor
|
||||||
|
mime ^text, label editor, = ${VISUAL:-$EDITOR} -- "$@"
|
||||||
|
|
||||||
# Define the editor for non-text files + pager as last action
|
# Define the editor for non-text files + pager as last action
|
||||||
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask
|
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask
|
||||||
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
|
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
|
||||||
|
|
Loading…
Reference in a new issue