summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/options.py1
-rw-r--r--ranger/gui/widgets/filelistcontainer.py2
-rw-r--r--ranger/shared/settings.py1
3 files changed, 3 insertions, 1 deletions
diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py
index f78d0a81..3bd4ad02 100644
--- a/ranger/defaults/options.py
+++ b/ranger/defaults/options.py
@@ -4,6 +4,7 @@ from ranger import colorschemes
 colorscheme = colorschemes.default
 
 show_hidden = False
+collapse_preview = True
 
 scroll_offset = 2
 directories_first = True
diff --git a/ranger/gui/widgets/filelistcontainer.py b/ranger/gui/widgets/filelistcontainer.py
index 594d0530..fa4ec989 100644
--- a/ranger/gui/widgets/filelistcontainer.py
+++ b/ranger/gui/widgets/filelistcontainer.py
@@ -58,7 +58,7 @@ class FileListContainer(Widget, DisplayableContainer):
 	
 	def poke(self):
 		DisplayableContainer.poke(self)
-		if self.preview:
+		if self.settings.collapse_preview and self.preview:
 			has_preview = self.container[-1].has_preview()
 			if self.preview_available != has_preview:
 				self.preview_available = has_preview
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py
index 820e81b0..46dc77e8 100644
--- a/ranger/shared/settings.py
+++ b/ranger/shared/settings.py
@@ -1,6 +1,7 @@
 ALLOWED_SETTINGS = """
 show_hidden scroll_offset directories_first
 preview_files max_history_size colorscheme
+collapse_preview
 apps keys
 """.split()
 
@cmpwn.com> 2019-01-13 13:33:43 -0500 committer Drew DeVault <sir@cmpwn.com> 2019-01-13 13:33:43 -0500 Move ex line into account' href='/akspecs/aerc/commit/widgets/account.go?h=0.4.0&id=c286d3da6ba8636412db5c3b72fda739a06e7f6c'>c286d3d ^
648ca98 ^
c286d3d ^

0911cd5 ^
648ca98 ^

c286d3d ^

0911cd5 ^
c286d3d ^


648ca98 ^







648ca98 ^
c286d3d ^
b76deea ^


b76deea ^
c286d3d ^





b76deea ^
0911cd5 ^
2349b7d ^


0911cd5 ^
c286d3d ^
2349b7d ^
c286d3d ^




0911cd5 ^













b76deea ^
0911cd5 ^

648ca98 ^
b76deea ^


648ca98 ^








c286d3d ^























2349b7d ^




















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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141