Added golang filetype to ranger, Enter->CR in vimconfigs

This commit is contained in:
TuDatTr
2020-01-04 08:42:48 +01:00
parent 77e03694cb
commit 5c0c9da67a
8 changed files with 23 additions and 19 deletions

View File

@@ -37,8 +37,8 @@ ext x?html?, has w3m, terminal = w3m "$@"
# Define the "editor" for text files as first action
mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@"
mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs = ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go = ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go = "$PAGER" -- "$@"
ext 1 = man "$1"
ext s[wmf]c, has zsnes, X = zsnes "$1"
@@ -57,6 +57,7 @@ ext js = node -- "$1"
ext sh = sh -- "$1"
ext php = php -- "$1"
ext rs = rs -- "$1"
ext go = go -- "$1"
#--------------------------------------------
# Audio without X
@@ -199,9 +200,9 @@ label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1"
label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
# Define the editor for non-text files + pager as last action
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs = ask
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs = ${VISUAL:-$EDITOR} -- "$@"
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs = "$PAGER" -- "$@"
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go = ask
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go = ${VISUAL:-$EDITOR} -- "$@"
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go = "$PAGER" -- "$@"
# The very last action, so that it's never triggered accidentally, is to execute a program:
mime application/x-executable = "$1"

View File

@@ -5,7 +5,7 @@ m:/run/media/tuan
a:/home/tuan/Documents/Arbeit
l:/home/tuan/Local
c:/home/tuan/Documents/CTF/picoCTF
':/home/tuan/workspace_l/Projects/Python/Scrapers/missing_dex
':/home/tuan/.vim/ftplugin
t:/home/tuan/Templates
w:/home/tuan/workspace_l/Projects
k:/home/tuan/Documents/Fachschaft/Berufungskomission