summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/options.py3
-rw-r--r--ranger/gui/widgets/browserview.py2
-rw-r--r--ranger/shared/settings.py1
3 files changed, 5 insertions, 1 deletions
diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py
index a9dd8bde..43129652 100644
--- a/ranger/defaults/options.py
+++ b/ranger/defaults/options.py
@@ -39,6 +39,9 @@ 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.
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py
index 7f2ea5fb..f586596e 100644
--- a/ranger/gui/widgets/browserview.py
+++ b/ranger/gui/widgets/browserview.py
@@ -121,7 +121,7 @@ class BrowserView(Widget, DisplayableContainer):
 		self.need_clear = True
 
 		sorted_bookmarks = sorted(item for item in self.fm.bookmarks \
-				if '/.' not in item[1].path)
+			if self.settings.show_hidden_bookmarks or '/.' not in item[1].path)
 
 		def generator():
 			return zip(range(self.hei-1), sorted_bookmarks)
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py
index 692d06d2..42e3502a 100644
--- a/ranger/shared/settings.py
+++ b/ranger/shared/settings.py
@@ -19,6 +19,7 @@ from ranger.ext.openstruct import OpenStruct
 
 ALLOWED_SETTINGS = {
 	'show_hidden': bool,
+	'show_hidden_bookmarks': bool,
 	'show_cursor': bool,
 	'autosave_bookmarks': bool,
 	'save_console_history': bool,
x?h=hlt&id=c6ec8fa3f77ba24e92ce8fda32b6919f0f67e496'>c6ec8fa3 ^
33352536 ^
6070c23e ^
c6ec8fa3 ^
33352536 ^
c6ec8fa3 ^
33352536 ^
c6ec8fa3 ^
33352536 ^
c6ec8fa3 ^


33352536 ^



7a583220 ^
33352536 ^

c6ec8fa3 ^


7a583220 ^
33352536 ^


c6ec8fa3 ^
33352536 ^

c6ec8fa3 ^

33352536 ^
c6ec8fa3 ^


33352536 ^
c6ec8fa3 ^
33352536 ^
c6ec8fa3 ^


33352536 ^
c6ec8fa3 ^


33352536 ^
7a583220 ^
33352536 ^

c6ec8fa3 ^


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