1
0
mirror of https://github.com/alrayyes/server-dotfiles synced 2023-11-14 15:56:25 +00:00

tweaked ranger config with shortcuts

This commit is contained in:
Ryan 2017-05-29 13:14:08 +02:00
parent a5175346fa
commit 61cb1c3776

View File

@ -30,7 +30,7 @@ set viewmode miller
set column_ratios 1,3,4
# Which files should be hidden? (regular expression)
set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$
set hidden_filter ^\.(?:pyc|pyo|bak|swp|bundle|cache)$|^lost\+found$|^__(py)?cache__$
# Show hidden files? You can toggle this by typing 'zh'
set show_hidden false
@ -56,7 +56,7 @@ set automatically_count_files true
set open_all_images true
# Be aware of version control systems and display information.
set vcs_aware false
set vcs_aware true
# State of the three backends git, hg, bzr. The possible states are
# disabled, local (only show local info), enabled (show local and remote
@ -97,7 +97,7 @@ set show_hidden_bookmarks true
# Which colorscheme to use? These colorschemes are available by default:
# default, jungle, snow, solarized
set colorscheme default
set colorscheme solarized
# Preview files on the rightmost column?
# And collapse (shrink) the last column if there is nothing to preview?
@ -610,3 +610,27 @@ tmap <delete> eval -q fm.ui.taskview.task_remove()
tmap <C-l> redraw_window
tmap <ESC> taskview_close
copytmap <ESC> q Q w <C-c>
# My movements
map gd cd ~/Documents
map td tab_new ~/Documents
map md shell mv %s ~/Documents
map Yd shell cp %s ~/Documents
map gww cd ~/Pictures/wallpaper
map tww tab_new ~/Pictures/wallpaper
map mww shell mv %s ~/Pictures/wallpaper
map Yww shell cp %s ~/Pictures/wallpaper
# Images
map bg shell cp %f ~/.config/wall.png && feh --bg-scale %f
# Config files
map cfm shell vim ~/.muttrc
map cfv shell vim ~/.vimrc.local
map cfz shell vim ~/.zshr
map cfi shell vim ~/config/i3/config
map cfr shell vim ~/.config/ranger/rc.conf
map cfx shell vim ~/.Xresources
# use devicons plugin (https://github.com/alexanderjeurissen/ranger_devicons)
default_linemode devicons