diff options
-rwxr-xr-x | giti | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -60,7 +60,11 @@ def search_for_file(kind: str) -> str: print('[%s] %s' % (i, name)) try: - choice = int(input('Enter index: ')) + choice = input('Enter index [0]: ') + if choice == "": + choice = 0 + else: + choice = int(choice) except TypeError: return None except KeyboardInterrupt: |