diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 722edb5..d2a0200 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -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):