X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=lightcards%2Fdisplay.py;h=aa331b107ad12b7a7afb2cbd40d94b1c67953a25;hb=8d942ddfc5edc0e388206ca489fa386dd80a2ce2;hp=a4d6f2b9237e97c1b30b4bfb8708fa4c2d437212;hpb=90fb4e0e5bf9ff317484ce1f2a385db19500c368;p=lightcards.git diff --git a/lightcards/display.py b/lightcards/display.py index a4d6f2b..aa331b1 100755 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -98,3 +98,9 @@ def get_key(stdscr, stack, headers, idx): elif key in ["i", "/"]: stack[idx.getIdx()].toggleStar() disp_card(stdscr, stack, headers, idx) + elif key in ["0", "^", "KEY_HOME"]: + idx.setIdx(0) + disp_card(stdscr, stack, headers, idx) + elif key in ["$", "KEY_END"]: + idx.setIdx(len(stack) - 1) + disp_card(stdscr, stack, headers, idx)