[bugfix] unable to render full vsc-clean icon

This commit is contained in:
Klesh Wong 2020-10-20 16:49:49 +08:00
parent ccf2412098
commit 470ae2c7cd

View File

@ -1,6 +1,43 @@
import os
from ranger.core.loader import CommandLoader
from ranger.api.commands import Command
from ranger.gui.widgets import Widget
Widget.vcsstatus_symb = {
'conflict': (
'X ', ['vcsconflict']),
'untracked': (
'? ', ['vcsuntracked']),
'deleted': (
'- ', ['vcschanged']),
'changed': (
'+ ', ['vcschanged']),
'staged': (
'* ', ['vcsstaged']),
'ignored': (
'· ', ['vcsignored']),
'sync': (
'', ['vcssync']),
'none': (
' ', []),
'unknown': (
'! ', ['vcsunknown']),
}
Widget.vcsremotestatus_symb = {
'diverged': (
' Y', ['vcsdiverged']),
'ahead': (
' >', ['vcsahead']),
'behind': (
' <', ['vcsbehind']),
'sync': (
' =', ['vcssync']),
'none': (
'', ['vcsnone']),
'unknown': (
' !', ['vcsunknown']),
}
class extracthere(Command):
def execute(self):