update ranger and zshrc

This commit is contained in:
ksyasuda
2022-07-23 14:06:10 -07:00
parent 93411a86c5
commit bb361c8aa2
6 changed files with 144 additions and 269 deletions

View File

Submodule ranger/plugins/ranger_devicons added at 11941619b8

View File

@@ -448,21 +448,25 @@ map } traverse
map { traverse_backwards
map ) jump_non
map ga cd ~/Projects/Scripts/aniwrapper
map gb cd /boxshare
map g. cd ~/.config
map gh cd ~
map ge cd /etc
map gu cd /usr
map gd cd /dev
map gj cd /jellyfin
map gl cd -r .
map gL cd -r %f
map go cd /opt
map gv cd /var
map gm cd /media
map gv edit ~/.config/nvim/init.vim
map gm cd /jellyfin/music
map gi eval fm.cd('/run/media/' + os.getenv('USER'))
map gM cd /mnt
map gs cd /srv
map gp cd /tmp
map gr cd /
map gR eval fm.cd(ranger.RANGERDIR)
map gP cd ~/Pictures
map gp cd ~/Projects
map gr eval fm.cd(os.getenv('XDG_CONFIG_HOME') + '/ranger')
map g/ cd /
map g? cd /usr/share/doc/ranger

View File

@@ -85,10 +85,11 @@ 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 = vim "$@"
mime ^text, label editor = nvim "$@"
mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|sql = ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php|sql = "$PAGER" -- "$@"
ext 1 = man "$1"
ext s[wmf]c, has zsnes, X = zsnes "$1"
@@ -140,7 +141,7 @@ mime ^video, terminal, !X, has mplayer = mplayer -- "$@"
#-------------------------------------------
# Documents
#-------------------------------------------
ext pdf, has llpp, X, flag f = llpp "$@"
ext pdf, has llpp, X, flag f = okular "$@"
ext pdf, has zathura, X, flag f = zathura -- "$@"
ext pdf, has mupdf, X, flag f = mupdf "$@"
ext pdf, has mupdf-x11,X, flag f = mupdf-x11 "$@"
@@ -183,6 +184,7 @@ mime ^image/svg, has display, X, flag f = display -- "$@"
mime ^image, has imv, X, flag f = imv -- "$@"
mime ^image, has pqiv, X, flag f = pqiv -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
mime ^image, has gthumb, X, flag f = gthumb -- "$@"
mime ^image, has feh, X, flag f = feh -- "$@"
mime ^image, has mirage, X, flag f = mirage -- "$@"
mime ^image, has ristretto, X, flag f = ristretto "$@"