From 6324d97077fd9afd0d97de8eb0d0641c1598b461 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 13 Feb 2021 14:27:56 -0500 Subject: [PATCH] Pickle before opening in $EDITOR --- lightcards/display.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lightcards/display.py b/lightcards/display.py index f93b0fa..049a016 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -193,6 +193,7 @@ class Menu: shuffle(self.outer.stack) self.menu_print("Stack shuffled!") elif key == "e": + progress.dump(self.outer.stack, runner.get_orig()[1]) curses.endwin() os.system(f"$EDITOR {self.outer.input_file}"), (self.outer.headers, self.outer.stack) = parse.parse_html( -- 2.39.2