From: Samir Benmendil Date: Wed, 10 Dec 2014 02:31:41 +0000 (+0000) Subject: ranger: appearance settings X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/773dfc2f99384cf6597a9e7a6156e0e594c95462 ranger: appearance settings --- diff --git a/ranger/colorschemes/__init__.py b/ranger/colorschemes/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/ranger/colorschemes/custom.py b/ranger/colorschemes/custom.py new file mode 100644 index 0000000..df34816 --- /dev/null +++ b/ranger/colorschemes/custom.py @@ -0,0 +1,15 @@ +# Copyright (C) 2009-2013 Roman Zimbelmann +# This software is distributed under the terms of the GNU GPL version 3. + +from ranger.gui.color import * +from ranger.colorschemes.default import Default + +class Scheme(Default): + def use(self, context): + fg, bg, attr = Default.use(self, context) + + if context.in_browser: + if context.border: + fg = 237 + + return fg, bg, attr diff --git a/ranger/rc.conf b/ranger/rc.conf index 687b23e..6532db8 100644 --- a/ranger/rc.conf +++ b/ranger/rc.conf @@ -63,14 +63,14 @@ set vcs_aware true set preview_images true # Use a unicode "..." character to mark cut-off filenames? -set unicode_ellipsis false +set unicode_ellipsis true # Show dotfiles in the bookmark preview box? #set show_hidden_bookmarks true # Which colorscheme to use? These colorschemes are available by default: # default, jungle, snow -#set colorscheme jungle +set colorscheme custom # Preview files on the rightmost column? # And collapse (shrink) the last column if there is nothing to preview? @@ -89,10 +89,10 @@ set unicode_ellipsis false #set draw_progress_bar_in_status_bar true # Draw borders around columns? -#set draw_borders true +set draw_borders true # Display the directory name in tabs? -#set dirname_in_tabs false +set dirname_in_tabs true # Enable the mouse support? #set mouse_enabled true @@ -115,11 +115,11 @@ set update_title true #set shorten_title 3 # Abbreviate $HOME with ~ in the titlebar (first line) of ranger? -#set tilde_in_titlebar false +set tilde_in_titlebar true # How many directory-changes or console-commands should be kept in history? -set max_history_size 200 -set max_console_history_size 500 +set max_history_size 2000 +set max_console_history_size 5000 # Try to keep so much space between the top/bottom border when scrolling: #set scroll_offset 8 @@ -129,7 +129,7 @@ set max_console_history_size 500 # Padding on the right when there's no preview? # This allows you to click into the space to run the file. -#set padding_right true +set padding_right false # Save bookmarks (used with mX and `X) instantly? # This helps to synchronize bookmarks between multiple ranger @@ -164,7 +164,7 @@ set sort_directories_first false # You can set local options that only affect a single directory. # Examples: -# setlocal path=~/downloads sort mtime +setlocal path=~/downloads sort mtime # =================================================================== # == Command Aliases in the Console