diff --git a/ranger/rc.conf b/ranger/rc.conf index 4d1a2c6..96943ef 100755 --- a/ranger/rc.conf +++ b/ranger/rc.conf @@ -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" 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 reset +map redraw_window +map abort +map change_mode normal +map ` set viewmode! + +map scroll_preview 5 +map 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 mark_files toggle=True map v mark_files all=True toggle=True +map toggle_visual_mode +map lv toggle_visual_mode reverse=True map 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 gg copymap G map E move down=5 map U move up=5 -copymap -copymap +#copymap +#copymap # 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 ` enter_bookmark %any -map ' enter_bookmark %any -map m set_bookmark %any -map dm unset_bookmark %any +#map ` enter_bookmark %any +#map ' enter_bookmark %any +#map m set_bookmark %any +#map dm unset_bookmark %any #map m draw_bookmarks #copymap m lm ` ' @@ -554,7 +583,6 @@ cmap redraw_window copycmap copycmap -map S shell $SHELL # Move around cmap eval fm.ui.console.history_move(-1) diff --git a/zsh/zshrc b/zsh/zshrc index 6caf3ff..1525403 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -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