summary refs log tree commit diff stats
path: root/lib/posix
Commit message (Expand)AuthorAgeFilesLines
* The sockets module supports non-blocking sockets now. Many other fixes in soc...dom962011-04-301-3/+10
* docgen: module dependencies are now listedAraq2011-01-161-3/+3
* fixed pango/pangoutils new wrappersAndreas Rumpf2010-02-261-0/+0
* continued work on html/xmlparserrumpf_a@web.de2010-02-141-0/+0
* bugfix: fd_set mustn't be prefixed with structAndreas Rumpf2010-01-141-1/+1
* sockets module completeAndreas Rumpf2010-01-131-97/+186
* version 0.8.2rumpf_a@web.de2009-10-211-0/+2
* added tools and web dirsAndreas Rumpf2009-09-151-0/+0
* overload resolution for proc varsAndreas Rumpf2009-06-241-1839/+1840
* version0.7.10Andreas Rumpf2009-06-084-2090/+33
* some bugfixesAndreas Rumpf2009-05-141-12/+14
* version 0.7.6Andreas Rumpf2009-04-223-0/+2064
* version 0.7.6Andreas Rumpf2009-04-221-198/+795
* version 0.7.0Andreas Rumpf2008-11-161-135/+152
* too many changes to listAndreas Rumpf2008-08-231-40/+40
* first releaseRumpf2008-06-231-0/+0
* Initial importAndreas Rumpf2008-06-221-0/+1818
>
b39fcc5f ^
0128bee7 ^
eafe24e1 ^
0128bee7 ^
3a9e3382 ^
b39fcc5f ^
0128bee7 ^
f5e9c01e ^


9e09af36 ^

0a053bef ^
9e09af36 ^
bf391538 ^


e01ea652 ^


61006fdd ^
f4ad6457 ^

61006fdd ^
6a40e8e0 ^

083acade ^
f45f3c73 ^



59698d9d ^


083acade ^








0128bee7 ^
083acade ^

0128bee7 ^
b39fcc5f ^
0128bee7 ^
0128bee7 ^
b44906cd ^

0128bee7 ^

876e288a ^


0128bee7 ^
34c131ef ^


















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125














                                                                       

                                                 













                                                                     
   
 
                                
 

                                                              



                                                     


                                            


                                                                         
                       
 
                                        
                                                                       
                    
                          
                       
 


                                   

                              
                            
 


                                                                 


                           
                                                         

                                  
 

                             
 



                                                                  


                                                                 








                                                                           
                                                 

                                                             
                                                        
                         
 
                                 

                   

                                     


                             
 


















                                                                                  
# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

"""
This is the default configuration file of ranger.

There are two ways of customizing ranger.  The first and recommended
method is creating a file at ~/.ranger/options.py and adding
those lines you want to change.  It might look like this:

from ranger.api.options import *
preview_files = False  # I hate previews!
max_history_size = 2000  # I can afford it.

The other way is directly editing this file.  This will make upgrades
of ranger more complicated though.

Whatever you do, make sure the import-line stays intact and the type
of the values stay the same.
"""

from ranger.api.options import *

# Which files should be hidden?  Toggle this by typing `zh' or
# changing the setting `show_hidden'
hidden_filter = regexp(
	r'lost\+found|^\.|~$|\.(:?pyc|pyo|bak|swp)$')
show_hidden = False

# Show dotfiles in the bookmark preview box?
show_hidden_bookmarks = True

# Which colorscheme to use?  These colorschemes are available by default:
# default, default88, texas, jungle, snow
# Snow is monochrome, texas and default88 use 88 colors.
colorscheme = 'default'

# Preview files on the rightmost column?
# And collapse (shrink) the last column if there is nothing to preview?
preview_files = True
preview_directories = True
collapse_preview = True

# Save the console history on exit?
save_console_history = True

# Draw borders around columns?
draw_borders = False
draw_bookmark_borders = True

# How many columns are there, and what are their relative widths?
column_ratios = (1, 1, 4, 3)

# Enable the mouse support?
mouse_enabled = True

# Display the file size in the main column or status bar?
display_size_in_main_column = True
display_size_in_status_bar = False

# Set a title for the window?
update_title = True

# Shorten the title if it gets long?  The number defines how many
# directories are displayed at once, False turns off this feature.
shorten_title = 3

# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
tilde_in_titlebar = True

# How many directory-changes or console-commands should be kept in history?
max_history_size = 20

# Try to keep so much space between the top/bottom border when scrolling:
scroll_offset = 2

# Flush the input after each key hit?  (Noticable when ranger lags)
flushinput = True

# Save bookmarks (used with mX and `X) instantly?
# This helps to synchronize bookmarks between multiple ranger
# instances but leads to *slight* performance loss.
# When false, bookmarks are saved when ranger is exited.
autosave_bookmarks = True

# Makes sense for screen readers:
show_cursor = False

# One of: size, basename, mtime, type
sort = 'basename'
sort_reverse = False
sort_case_insensitive = False
sort_directories_first = True


# Apply an overlay function to the colorscheme.  It will be called with
# 4 arguments: the context and the 3 values (fg, bg, attr) returned by
# the original use() function of your colorscheme.  The return value
# must be a 3-tuple of (fg, bg, attr).
# Note: Here, the colors/attributes aren't directly imported into
# the namespace but have to be accessed with color.xyz.
def colorscheme_overlay(context, fg, bg, attr):
	if context.directory and attr & color.bold and \
			not any((context.marked, context.selected)):
		attr ^= color.bold  # I don't like bold directories!

	if context.main_column and context.selected:
		fg, bg = color.red, color.default  # To highlight the main column!

	return fg, bg, attr

# The above function was just an example, let's set it back to None
colorscheme_overlay = None