summary refs log tree commit diff stats
path: root/ranger/defaults/options.py
blob: 8711f737e2fc9cf13bfee0cc9c7b67dc5340fa47 (plain) (blame)
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
# 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.
If you do any changes, make sure the import-line stays
intact and the type of the value stays the same.
"""

from ranger.api.options import *

# Which colorscheme to use?  There are these by default:
# colorschemes.texas
# colorschemes.jungle
# colorschemes.default
# colorschemes.snow
# Texas uses 88 colors. If they are not supported, it will fall back
# to the default scheme.
colorscheme = colorschemes.texas

max_history_size = 20
scroll_offset = 2

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

# Preview files on the rightmost column?
# And collapse the last column if there is nothing to preview?
preview_files = True
max_filesize_for_preview = 300 * 1024  # 300kb
collapse_preview = 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

# Specify a title for the window? Some terminals don't support this:
update_title = False

# Makes sense for screen readers:
show_cursor = False

# One of: size, basename, mtime, type
sort = 'basename'
reverse = False
directories_first = True

# Which files are hidden if show_hidden is False?
hidden_filter = regexp(
	r'lost\+found|^\.|~$|\.(:?pyc|pyo|bak|swp)$')
show_hidden = False