Lazy commit on yancy.
This commit is contained in:
parent
754d07fc32
commit
8388783947
@ -50,16 +50,16 @@ def indicators(props, ind = "tl"):
|
|||||||
unstaged = "\U0001F4DD"
|
unstaged = "\U0001F4DD"
|
||||||
up_keycap = "\U0001F53C" # "\u2B06\uFE0F"
|
up_keycap = "\U0001F53C" # "\u2B06\uFE0F"
|
||||||
down_keycap = "\U0001F53D" # "\u2B07\uFE0F"
|
down_keycap = "\U0001F53D" # "\u2B07\uFE0F"
|
||||||
status_digit = "#" if props["n"] > 9 else str(props["n"] % 10)
|
status_digit = "##" if props["n"] > 99 else str(props["n"] % 100)
|
||||||
status_indicator = f"{to_keycap(status_digit)}{unstaged}"
|
status_indicator = f"{to_keycap(status_digit)}{unstaged}"
|
||||||
push_digit = "?"
|
push_digit = "?"
|
||||||
push_indicator = f" {up_keycap}"
|
push_indicator = f" {up_keycap}"
|
||||||
pull_digit = "?"
|
pull_digit = "?"
|
||||||
pull_indicator = f" {down_keycap}"
|
pull_indicator = f" {down_keycap}"
|
||||||
if "ab" in props.keys():
|
if "ab" in props.keys():
|
||||||
push_digit = "#" if props["ab"]["push"] > 9 else str(props["ab"]["push"] % 10)
|
push_digit = "##" if props["ab"]["push"] > 99 else f"{props["ab"]["push"] % 100:2d}"
|
||||||
push_indicator = f"{to_keycap(push_digit)}{up_keycap}"
|
push_indicator = f"{to_keycap(push_digit)}{up_keycap}"
|
||||||
pull_digit = "#" if props["ab"]["pull"] > 9 else str(props["ab"]["pull"] % 10)
|
pull_digit = "##" if props["ab"]["pull"] > 99 else f"{props["ab"]["pull"] % 100:2d}"
|
||||||
pull_indicator = f"{to_keycap(pull_digit)}{down_keycap}"
|
pull_indicator = f"{to_keycap(pull_digit)}{down_keycap}"
|
||||||
ret = "?"
|
ret = "?"
|
||||||
if ind == "tl":
|
if ind == "tl":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user