X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=blobdiff_plain;f=lightcards%2Fdisplay.py;h=e91fed1a302db23d1626464d44c869df0c0194b9;hp=049a0167ef847afa526f06f25994a852716212ac;hb=1dacbc89d337361486116644a0ea9b3e1a76bac6;hpb=6324d97077fd9afd0d97de8eb0d0641c1598b461 diff --git a/lightcards/display.py b/lightcards/display.py index 049a016..e91fed1 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -132,6 +132,7 @@ class Menu: curses.color_pair(1) + curses.A_BOLD, ) self.win.hline(2, 1, curses.ACS_HLINE, mcols) + env = os.environ.get("EDITOR", "$EDITOR")[:15] text = [ "[y]: reset stack to original state", "[a]: alphabetize stack", @@ -140,8 +141,7 @@ class Menu: "[u]: unstar all", "[d]: star all", "[s]: update stack to include starred only", - "[e]: open the input file in $EDITOR", - "", + f"[e]: open the input file in {env}" "", "[r]: restart", "[m]: close menu", ]