[misc] better git icons setup

This commit is contained in:
Klesh Wong 2020-12-01 11:36:45 +08:00
parent 59bb9d849b
commit 7b872eb266

View File

@ -7,39 +7,39 @@ from ranger.gui.widgets.browsercolumn import BrowserColumn
Widget.vcsstatus_symb = { Widget.vcsstatus_symb = {
'conflict': ( 'conflict': (
'X ', ['vcsconflict']), ' ', ['vcsconflict']),
'untracked': ( 'untracked': (
'? ', ['vcsuntracked']), ' ', ['vcsuntracked']),
'deleted': ( 'deleted': (
'- ', ['vcschanged']), ' ', ['vcschanged']),
'changed': ( 'changed': (
'+ ', ['vcschanged']), ' ', ['vcschanged']),
'staged': ( 'staged': (
'* ', ['vcsstaged']), ' ', ['vcsstaged']),
'ignored': ( 'ignored': (
'· ', ['vcsignored']), '· ', ['vcsignored']),
'sync': ( 'sync': (
' ', ['vcssync']), ' ', ['vcssync']),
'none': ( 'none': (
' ', []), ' ', []),
'unknown': ( 'unknown': (
'! ', ['vcsunknown']), ' ', ['vcsunknown']),
} }
Widget.vcsremotestatus_symb = { Widget.vcsremotestatus_symb = {
'diverged': ( 'diverged': (
' Y', ['vcsdiverged']), ' |', ['vcsdiverged']),
'ahead': ( 'ahead': (
' >', ['vcsahead']), ' |', ['vcsahead']),
'behind': ( 'behind': (
' <', ['vcsbehind']), ' |', ['vcsbehind']),
'sync': ( 'sync': (
' =', ['vcssync']), ' |', ['vcssync']),
'none': ( 'none': (
'', ['vcsnone']), ' |', ['vcsnone']),
'unknown': ( 'unknown': (
' !', ['vcsunknown']), ' |', ['vcsunknown']),
} }