summary refs log tree commit diff stats
path: root/lib/system/arithm.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-12-18 00:06:46 +0100
committerAraq <rumpf_a@web.de>2016-12-18 00:06:46 +0100
commita88a965c6d3f54086f2682dc98ee9e5930c2fa66 (patch)
tree37d7426a64460ec2c72c74cf2198312cce4994c5 /lib/system/arithm.nim
parentbda8a6c1b7dca04f3292afc853889ce678f9f1dc (diff)
downloadNim-a88a965c6d3f54086f2682dc98ee9e5930c2fa66.tar.gz
fixes nimsuggest issue #40
Diffstat (limited to 'lib/system/arithm.nim')
0 files changed, 0 insertions, 0 deletions
006a927408201e710d53'>49ae0dd1 ^
b68d28c1 ^
3d8af362 ^
3fe88d2b ^
51ec08da ^


703a9a20 ^
51ec08da ^


703a9a20 ^
51ec08da ^








703a9a20 ^
3fe88d2b ^
aa4d6a70 ^
3fe88d2b ^
51ec08da ^










703a9a20 ^
3fe88d2b ^
933c9eab ^
3fe88d2b ^
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
41
42
43
44
45
46
47

                       
                                                                  
 

                                              
 
                          
                                                
 
                      


                                  
                                   


                                 
                                 








                                  
                                 
     
 
                            










                                  
                                 
     
 
                                        
# -*- coding: utf-8 -*-

from __future__ import (absolute_import, division, print_function)

from ranger.gui.displayable import Displayable


class Widget(Displayable):
    """A class for classification of widgets."""

    vcsstatus_symb = {
        'conflict': (
            'X', ['vcsconflict']),
        'untracked': (
            '?', ['vcsuntracked']),
        'deleted': (
            '-', ['vcschanged']),
        'changed': (
            '+', ['vcschanged']),
        'staged': (
            '*', ['vcsstaged']),
        'ignored': (
            '·', ['vcsignored']),
        'sync': (
            '√', ['vcssync']),
        'none': (
            ' ', []),
        'unknown': (
            '!', ['vcsunknown']),
    }

    vcsremotestatus_symb = {
        'diverged': (
            'Y', ['vcsdiverged']),
        'ahead': (
            '>', ['vcsahead']),
        'behind': (
            '<', ['vcsbehind']),
        'sync': (
            '=', ['vcssync']),
        'none': (
            '⌂', ['vcsnone']),
        'unknown': (
            '!', ['vcsunknown']),
    }

    ellipsis = {False: '~', True: '…'}