diff options
author | hut <hut@hut.pm> | 2018-05-15 22:59:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-15 22:59:17 +0200 |
commit | 813fee2df7cad085dc0ed0ede745e64aec10a4c0 (patch) | |
tree | 4dd4e09c3db3cf06f1c72afc9533a874f6974777 /ranger | |
parent | 81bd1f8a2cf8f072227162922a64a0b6c6b2d932 (diff) | |
parent | 3f210e8eef8332d87e4060965a2790510546978f (diff) | |
download | ranger-813fee2df7cad085dc0ed0ede745e64aec10a4c0.tar.gz |
Merge pull request #1123 from chuanconggao/patch-1
Improve VCS symbols
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/colorschemes/default.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/__init__.py | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py index c88cdc7c..350c8359 100644 --- a/ranger/colorschemes/default.py +++ b/ranger/colorschemes/default.py @@ -138,6 +138,8 @@ class Default(ColorScheme): attr &= ~bold if context.vcsconflict: fg = magenta + elif context.vcsuntracked: + fg = cyan elif context.vcschanged: fg = red elif context.vcsunknown: diff --git a/ranger/gui/widgets/__init__.py b/ranger/gui/widgets/__init__.py index 36292103..c8f1262b 100644 --- a/ranger/gui/widgets/__init__.py +++ b/ranger/gui/widgets/__init__.py @@ -12,11 +12,11 @@ class Widget(Displayable): 'conflict': ( 'X', ['vcsconflict']), 'untracked': ( - '+', ['vcschanged']), + '?', ['vcsuntracked']), 'deleted': ( '-', ['vcschanged']), 'changed': ( - '*', ['vcschanged']), + '+', ['vcschanged']), 'staged': ( '*', ['vcsstaged']), 'ignored': ( @@ -26,7 +26,7 @@ class Widget(Displayable): 'none': ( ' ', []), 'unknown': ( - '?', ['vcsunknown']), + '!', ['vcsunknown']), } vcsremotestatus_symb = { @@ -41,7 +41,7 @@ class Widget(Displayable): 'none': ( '⌂', ['vcsnone']), 'unknown': ( - '?', ['vcsunknown']), + '!', ['vcsunknown']), } ellipsis = {False: '~', True: '…'} |