]> git.rmz.io Git - dotfiles.git/commitdiff
ranger: appearance settings
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 10 Dec 2014 02:31:41 +0000 (02:31 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 10 Dec 2014 06:33:39 +0000 (06:33 +0000)
ranger/colorschemes/__init__.py [new file with mode: 0644]
ranger/colorschemes/custom.py [new file with mode: 0644]
ranger/rc.conf

diff --git a/ranger/colorschemes/__init__.py b/ranger/colorschemes/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/ranger/colorschemes/custom.py b/ranger/colorschemes/custom.py
new file mode 100644 (file)
index 0000000..df34816
--- /dev/null
@@ -0,0 +1,15 @@
+# Copyright (C) 2009-2013  Roman Zimbelmann <hut@lavabit.com>
+# 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
index 687b23eb4a2feeaf96a3ad7beb093eedf2470b6e..6532db861401ddb3871fffaf31d24d74e7a50ed3 100644 (file)
@@ -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