|
@ -1,103 +1,37 @@ |
|
|
# =================================================================== |
|
|
|
|
|
# This file contains the default startup commands for ranger. |
|
|
|
|
|
# To change them, it is recommended to create the file |
|
|
|
|
|
# ~/.config/ranger/rc.conf and add your custom commands there. |
|
|
|
|
|
# |
|
|
|
|
|
# If you copy this whole file there, you may want to set the environment |
|
|
|
|
|
# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice. |
|
|
|
|
|
# |
|
|
|
|
|
# The purpose of this file is mainly to define keybindings and settings. |
|
|
|
|
|
# For running more complex python code, please create a plugin in "plugins/" or |
|
|
|
|
|
# a command in "commands.py". |
|
|
|
|
|
# |
|
|
|
|
|
# Each line is a command that will be run before the user interface |
|
|
|
|
|
# is initialized. As a result, you can not use commands which rely |
|
|
|
|
|
# on the UI such as :delete or :mark. |
|
|
|
|
|
# =================================================================== |
|
|
|
|
|
|
|
|
|
|
|
# =================================================================== |
|
|
|
|
|
# == Options |
|
|
|
|
|
# =================================================================== |
|
|
|
|
|
|
|
|
|
|
|
# Which viewmode should be used? Possible values are: |
|
|
|
|
|
# miller: Use miller columns which show multiple levels of the hierarchy |
|
|
|
|
|
# multipane: Midnight-commander like multipane view showing all tabs next |
|
|
|
|
|
# to each other |
|
|
|
|
|
set viewmode miller |
|
|
set viewmode miller |
|
|
#set viewmode multipane |
|
|
|
|
|
|
|
|
|
|
|
# How many columns are there, and what are their relative widths? |
|
|
|
|
|
set column_ratios 2,2,4 |
|
|
set column_ratios 2,2,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)$|^lost\+found$|^__(py)?cache__$ |
|
|
|
|
|
|
|
|
# Show hidden files? You can toggle this by typing 'zh' |
|
|
|
|
|
set show_hidden false |
|
|
set show_hidden false |
|
|
|
|
|
|
|
|
# Ask for a confirmation when running the "delete" command? |
|
|
|
|
|
# Valid values are "always", "never", "multiple" (default) |
|
|
|
|
|
# With "multiple", ranger will ask only if you delete multiple files at once. |
|
|
|
|
|
|
|
|
# only confirm when deleting multiple files |
|
|
set confirm_on_delete multiple |
|
|
set confirm_on_delete multiple |
|
|
|
|
|
|
|
|
# Which script is used to generate file previews? |
|
|
|
|
|
# ranger ships with scope.sh, a script that calls external programs (see |
|
|
|
|
|
# README.md for dependencies) to preview images, archives, etc. |
|
|
|
|
|
set preview_script ~/.config/ranger/scope.sh |
|
|
set preview_script ~/.config/ranger/scope.sh |
|
|
|
|
|
|
|
|
# Use the external preview script or display simple plain text or image previews? |
|
|
|
|
|
set use_preview_script true |
|
|
set use_preview_script true |
|
|
|
|
|
|
|
|
# Automatically count files in the directory, even before entering them? |
|
|
|
|
|
set automatically_count_files true |
|
|
set automatically_count_files true |
|
|
|
|
|
|
|
|
# Open all images in this directory when running certain image viewers |
|
|
|
|
|
# like feh or sxiv? You can still open selected files by marking them. |
|
|
|
|
|
set open_all_images true |
|
|
set open_all_images true |
|
|
|
|
|
|
|
|
# Be aware of version control systems and display information. |
|
|
# Be aware of version control systems and display information. |
|
|
set vcs_aware true |
|
|
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 |
|
|
|
|
|
# information). |
|
|
|
|
|
set vcs_backend_git enabled |
|
|
set vcs_backend_git enabled |
|
|
set vcs_backend_hg disabled |
|
|
set vcs_backend_hg disabled |
|
|
set vcs_backend_bzr disabled |
|
|
set vcs_backend_bzr disabled |
|
|
|
|
|
|
|
|
# Use one of the supported image preview protocols |
|
|
# Use one of the supported image preview protocols |
|
|
set preview_images true |
|
|
set preview_images true |
|
|
|
|
|
|
|
|
# Set the preview image method. Supported methods: |
|
|
|
|
|
# |
|
|
|
|
|
# * w3m (default): |
|
|
|
|
|
# Preview images in full color with the external command "w3mimgpreview"? |
|
|
|
|
|
# This requires the console web browser "w3m" and a supported terminal. |
|
|
|
|
|
# It has been successfully tested with "xterm" and "urxvt" without tmux. |
|
|
|
|
|
# |
|
|
|
|
|
# * iterm2: |
|
|
|
|
|
# Preview images in full color using iTerm2 image previews |
|
|
|
|
|
# (http://iterm2.com/images.html). This requires using iTerm2 compiled |
|
|
|
|
|
# with image preview support. |
|
|
|
|
|
# |
|
|
|
|
|
# * urxvt: |
|
|
|
|
|
# Preview images in full color using urxvt image backgrounds. This |
|
|
|
|
|
# requires using urxvt compiled with pixbuf support. |
|
|
|
|
|
# |
|
|
|
|
|
# * urxvt-full: |
|
|
|
|
|
# The same as urxvt but utilizing not only the preview pane but the |
|
|
|
|
|
# whole terminal window. |
|
|
|
|
|
set preview_images_method ueberzug |
|
|
set preview_images_method ueberzug |
|
|
|
|
|
|
|
|
# Use a unicode "..." character to mark cut-off filenames? |
|
|
# Use a unicode "..." character to mark cut-off filenames? |
|
|
set unicode_ellipsis false |
|
|
|
|
|
|
|
|
set unicode_ellipsis true |
|
|
|
|
|
|
|
|
# Show dotfiles in the bookmark preview box? |
|
|
# Show dotfiles in the bookmark preview box? |
|
|
set show_hidden_bookmarks true |
|
|
set show_hidden_bookmarks true |
|
|
|
|
|
|
|
|
# Which colorscheme to use? These colorschemes are available by default: |
|
|
|
|
|
# default, jungle, snow, solarized |
|
|
|
|
|
set colorscheme solarized |
|
|
|
|
|
|
|
|
set colorscheme material-ocean |
|
|
|
|
|
|
|
|
# Preview files on the rightmost column? |
|
|
# Preview files on the rightmost column? |
|
|
# And collapse (shrink) the last column if there is nothing to preview? |
|
|
# And collapse (shrink) the last column if there is nothing to preview? |
|
@ -106,7 +40,7 @@ set preview_directories true |
|
|
set collapse_preview false |
|
|
set collapse_preview false |
|
|
|
|
|
|
|
|
# Save the console history on exit? |
|
|
# Save the console history on exit? |
|
|
set save_console_history false |
|
|
|
|
|
|
|
|
set save_console_history true |
|
|
|
|
|
|
|
|
# Draw the status bar on top of the browser window (default: bottom) |
|
|
# Draw the status bar on top of the browser window (default: bottom) |
|
|
set status_bar_on_top false |
|
|
set status_bar_on_top false |
|
@ -119,7 +53,7 @@ set draw_progress_bar_in_status_bar true |
|
|
set draw_borders true |
|
|
set draw_borders true |
|
|
|
|
|
|
|
|
# Display the directory name in tabs? |
|
|
# Display the directory name in tabs? |
|
|
set dirname_in_tabs false |
|
|
|
|
|
|
|
|
set dirname_in_tabs true |
|
|
|
|
|
|
|
|
# Enable the mouse support? |
|
|
# Enable the mouse support? |
|
|
set mouse_enabled true |
|
|
set mouse_enabled true |
|
@ -135,7 +69,7 @@ set display_tags_in_all_columns true |
|
|
set update_title true |
|
|
set update_title true |
|
|
|
|
|
|
|
|
# Set the title to "ranger" in the tmux program? |
|
|
# Set the title to "ranger" in the tmux program? |
|
|
set update_tmux_title false |
|
|
|
|
|
|
|
|
set update_tmux_title true |
|
|
|
|
|
|
|
|
# Shorten the title if it gets long? The number defines how many |
|
|
# Shorten the title if it gets long? The number defines how many |
|
|
# directories are displayed at once, 0 turns off this feature. |
|
|
# directories are displayed at once, 0 turns off this feature. |
|
@ -162,7 +96,8 @@ set padding_right true |
|
|
# This helps to synchronize bookmarks between multiple ranger |
|
|
# This helps to synchronize bookmarks between multiple ranger |
|
|
# instances but leads to *slight* performance loss. |
|
|
# instances but leads to *slight* performance loss. |
|
|
# When false, bookmarks are saved when ranger is exited. |
|
|
# When false, bookmarks are saved when ranger is exited. |
|
|
set autosave_bookmarks true |
|
|
|
|
|
|
|
|
set autosave_bookmarks false |
|
|
|
|
|
default_linemode devicons2 |
|
|
|
|
|
|
|
|
# You can display the "real" cumulative size of directories by using the |
|
|
# You can display the "real" cumulative size of directories by using the |
|
|
# command :get_cumulative_size or typing "dc". The size is expensive to |
|
|
# command :get_cumulative_size or typing "dc". The size is expensive to |
|
@ -275,6 +210,7 @@ map cd console cd%space |
|
|
map Mf linemode filename |
|
|
map Mf linemode filename |
|
|
map Mi linemode fileinfo |
|
|
map Mi linemode fileinfo |
|
|
map Mm linemode mtime |
|
|
map Mm linemode mtime |
|
|
|
|
|
map Md linemode devicons2 |
|
|
map Mp linemode permissions |
|
|
map Mp linemode permissions |
|
|
map Ms linemode sizemtime |
|
|
map Ms linemode sizemtime |
|
|
map Mt linemode metatitle |
|
|
map Mt linemode metatitle |
|
@ -404,11 +340,13 @@ map / console search%space |
|
|
map n search_next |
|
|
map n search_next |
|
|
map N search_next forward=False |
|
|
map N search_next forward=False |
|
|
map ct search_next order=tag |
|
|
map ct search_next order=tag |
|
|
|
|
|
map cz console z%space |
|
|
map cs search_next order=size |
|
|
map cs search_next order=size |
|
|
map ci search_next order=mimetype |
|
|
map ci search_next order=mimetype |
|
|
map cc search_next order=ctime |
|
|
map cc search_next order=ctime |
|
|
map cm search_next order=mtime |
|
|
map cm search_next order=mtime |
|
|
map ca search_next order=atime |
|
|
map ca search_next order=atime |
|
|
|
|
|
map cf fzf_select |
|
|
|
|
|
|
|
|
# Tabs |
|
|
# Tabs |
|
|
map <C-n> tab_new ~ |
|
|
map <C-n> tab_new ~ |
|
@ -460,6 +398,7 @@ map zc set collapse_preview! |
|
|
map zd set sort_directories_first! |
|
|
map zd set sort_directories_first! |
|
|
map zh set show_hidden! |
|
|
map zh set show_hidden! |
|
|
map <C-h> set show_hidden! |
|
|
map <C-h> set show_hidden! |
|
|
|
|
|
map <C-f> toggle_flat |
|
|
map zI set flushinput! |
|
|
map zI set flushinput! |
|
|
map zi set preview_images! |
|
|
map zi set preview_images! |
|
|
map zm set mouse_enabled! |
|
|
map zm set mouse_enabled! |
|
|