diff --git a/markdownrunner.py b/markdownrunner.py index 9a0d835..64f7c47 100755 --- a/markdownrunner.py +++ b/markdownrunner.py @@ -122,7 +122,10 @@ def user_action(hunk: Sequence[Command], context=None) -> Sequence[Command]: print(stringify_hunk(hunk)) # TODO: Print prompt in color (green?) - answer = input("What to do: edit(e), run(y), skip(n)?") + answer = input("What to do: edit(e), run(y, default), skip(n)?") + if answer is None: + # Default is run, for convenience + answer = 'Y' if answer.startswith(('e', 'E')): import tempfile with tempfile.NamedTemporaryFile(mode='r+') as tmpfile: