summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorAbdo Roig-Maranges <abdo.roig@gmail.com>2013-02-13 11:25:11 +0100
committerhut <hut@lavabit.com>2013-02-15 22:40:19 +0100
commitc7abe0d4b4078adc1fff73cd19ffd6e3f8cd0c10 (patch)
tree03f4ba2ff1e396f01ec7664d48e007def2ee8960 /ranger
parentca93ee5a9c54e3802726d09becdab745a41cc4ba (diff)
downloadranger-c7abe0d4b4078adc1fff73cd19ffd6e3f8cd0c10.tar.gz
Added 'unknown' remote vcs status
Diffstat (limited to 'ranger')
-rw-r--r--ranger/colorschemes/default.py3
-rw-r--r--ranger/gui/widgets/__init__.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py
index 6f6040ba..a391f03c 100644
--- a/ranger/colorschemes/default.py
+++ b/ranger/colorschemes/default.py
@@ -145,6 +145,7 @@ class Default(ColorScheme):
                 fg = blue
             elif context.vcsdiverged:
                 fg = magenta
-
+            elif context.vcsunknown:
+                fg = red
 
         return fg, bg, attr
diff --git a/ranger/gui/widgets/__init__.py b/ranger/gui/widgets/__init__.py
index 3d0899bb..4a9ca599 100644
--- a/ranger/gui/widgets/__init__.py
+++ b/ranger/gui/widgets/__init__.py
@@ -21,4 +21,5 @@ class Widget(Displayable):
                 'sync':     ('=', ["vcssync"]),
                 'behind':   ('<', ["vcsbehind"]),
                 'ahead':    ('>', ["vcsahead"]),
-                'diverged': ('Y', ["vcsdiverged"])}
+                'diverged': ('Y', ["vcsdiverged"]),
+                'unknown':  ('?', ["vcsunknown"])}
ubx?h=main&id=dff67029adb1a27bff5937fa8e028fadbef521eb'>^
418ea7d3 ^
880464a7 ^
90538f23 ^
880464a7 ^
90538f23 ^
880464a7 ^
90538f23 ^
23fd294d ^

6488bfcf ^








880464a7 ^
6488bfcf ^
880464a7 ^
90538f23 ^
dff67029 ^
90538f23 ^
880464a7 ^
531f14c9 ^

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