Quit on double Enter.
This commit is contained in:
parent
eb5aa0b136
commit
9af6c01fd9
@ -174,7 +174,7 @@ Remove shell completion scripts:
|
|||||||
|
|
||||||
prompt keys:
|
prompt keys:
|
||||||
1-N open the Nth search result in web browser
|
1-N open the Nth search result in web browser
|
||||||
Enter exit buku
|
double Enter exit buku
|
||||||
|
|
||||||
## Operational notes
|
## Operational notes
|
||||||
|
|
||||||
|
7
buku
7
buku
@ -895,6 +895,11 @@ def prompt(results):
|
|||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
nav = input("Result number to open: ")
|
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:
|
except EOFError:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -1235,7 +1240,7 @@ class ExtendedArgumentParser(argparse.ArgumentParser):
|
|||||||
file.write('''
|
file.write('''
|
||||||
prompt keys:
|
prompt keys:
|
||||||
1-N open the Nth search result in web browser
|
1-N open the Nth search result in web browser
|
||||||
Enter exit buku
|
double Enter exit buku
|
||||||
|
|
||||||
Version %s
|
Version %s
|
||||||
Copyright (C) 2015-2016 Arun Prakash Jana <engineerarun@gmail.com>
|
Copyright (C) 2015-2016 Arun Prakash Jana <engineerarun@gmail.com>
|
||||||
|
Loading…
Reference in New Issue
Block a user