diff --git a/README.md b/README.md index a831049..c858042 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ Remove shell completion scripts: prompt keys: 1-N open the Nth search result in web browser - Enter exit buku + double Enter exit buku ## Operational notes diff --git a/buku b/buku index 8834c7b..eb4d149 100755 --- a/buku +++ b/buku @@ -895,6 +895,11 @@ def prompt(results): while True: try: nav = input("Result number to open: ") + if not nav: + nav = input("Result number to open: ") + if not nav: + # Quit on double enter + break except EOFError: return @@ -1235,7 +1240,7 @@ class ExtendedArgumentParser(argparse.ArgumentParser): file.write(''' prompt keys: 1-N open the Nth search result in web browser - Enter exit buku + double Enter exit buku Version %s Copyright (C) 2015-2016 Arun Prakash Jana diff --git a/buku.1 b/buku.1 index 880c5d6..0d73506 100644 --- a/buku.1 +++ b/buku.1 @@ -157,7 +157,7 @@ Open .I Nth search result in browser. .TP -.BI "Enter" +.BI "double Enter" Exit buku. .SH ENVIRONMENT .TP