Quit on double Enter.
This commit is contained in:
parent
eb5aa0b136
commit
9af6c01fd9
@ -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
|
||||
|
||||
|
7
buku
7
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 <engineerarun@gmail.com>
|
||||
|
Loading…
Reference in New Issue
Block a user