ranger updates

This commit is contained in:
David Chen 2019-12-03 14:04:51 -08:00
parent f6aff6b309
commit ebe92a3ddf
2 changed files with 41 additions and 12 deletions

View file

@ -157,7 +157,7 @@ set hostname_in_titlebar true
set tilde_in_titlebar true
# How many directory-changes or console-commands should be kept in history?
set max_history_size 20
set max_history_size 2000
set max_console_history_size 50
# Try to keep so much space between the top/bottom border when scrolling:
@ -210,7 +210,7 @@ set cd_tab_case insensitive
# Use fuzzy tab completion with the "cd" command. For example,
# ":cd /u/lo/b<tab>" expands to ":cd /usr/local/bin".
set cd_tab_fuzzy false
set cd_tab_fuzzy true
# Avoid previewing files larger than this size, in bytes. Use a value of 0 to
# disable this feature.
@ -234,7 +234,7 @@ set idle_delay 2000
set metadata_deep_search false
# Clear all existing filters when leaving a directory
set clear_filters_on_dir_change false
set clear_filters_on_dir_change true
# Disable displaying line numbers in main column.
# Possible values: false, absolute, relative.
@ -305,14 +305,41 @@ map V console shell nvim%space
map T console shell touch%space
map r chain draw_possible_programs; console open_with%%space
map R reload_cwd
map F set freeze_files!
map <C-r> reset
map <C-l> redraw_window
map <C-c> abort
map <esc> change_mode normal
map ` set viewmode!
map <c-e> scroll_preview 5
map <c-u> scroll_preview -5
#map ? help
map W display_log
map w taskview_open
map S shell $SHELL
# Change the line mode
map mf linemode filename
map mi linemode fileinfo
map mm linemode mtime
map mh linemode humanreadablemtime
map mp linemode permissions
map ms linemode sizemtime
map mH linemode sizehumanreadablemtime
map mt linemode metatitle
map <Space> mark_files toggle=True
map v mark_files all=True toggle=True
map <c-v> toggle_visual_mode
map lv toggle_visual_mode reverse=True
map <C-c> abort
map w taskview_open
# Jumping around
map cd console cd%space
map to console cd%space
map H history_go -1
map L history_go 1
@ -324,6 +351,7 @@ map [ move_parent -1
# Open lazygit
map lg shell lazygit
# locations
map gh cd ~
map gi cd ~/Github
map gd cd ~/Desktop
@ -379,12 +407,11 @@ copymap <HOME> gg
copymap <END> G
map E move down=5
map U move up=5
copymap <PAGEDOWN> <C-E>
copymap <PAGEUP> <C-U>
#copymap <PAGEDOWN> <C-E>
#copymap <PAGEUP> <C-U>
# External Programs
map I open_with
map du shell -p du --max-depth=1 -h --apparent-size
map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
map yp yank path
@ -437,6 +464,8 @@ map cp shell pandoc %f -o %f.pdf
map ytv console shell youtube-dl -ic%space
map yta console shell youtube-dl -xic%space
# Filesystem Operations
map mo chmod
# Searching
map / console search%space
@ -496,10 +525,10 @@ map zf console filter%space
# Bookmarks
map `<any> enter_bookmark %any
map '<any> enter_bookmark %any
map m<any> set_bookmark %any
map dm<any> unset_bookmark %any
#map `<any> enter_bookmark %any
#map '<any> enter_bookmark %any
#map m<any> set_bookmark %any
#map dm<any> unset_bookmark %any
#map m<bg> draw_bookmarks
#copymap m<bg> lm<bg> `<bg> '<bg>
@ -554,7 +583,6 @@ cmap <C-l> redraw_window
copycmap <ESC> <C-c>
copycmap <CR> <C-j>
map S shell $SHELL
# Move around
cmap <up> eval fm.ui.console.history_move(-1)

View file

@ -1,6 +1,7 @@
export GOPATH=$HOME/go
export PATH=$PATH:$HOME/go/bin
export TERM=xterm-256color
export RANGER_LOAD_DEFAULT_RC="false"
#export TERM=screen-256color
#autoload edit-command-line; zle -N edit-command-line