Dedent even more. Thanks continue!
This commit is contained in:
parent
77481c169c
commit
2dc7e75414
1 changed files with 10 additions and 8 deletions
18
search.py
18
search.py
|
@ -162,6 +162,7 @@ def search(
|
||||||
else:
|
else:
|
||||||
search_text = search_object
|
search_text = search_object
|
||||||
result_text = search_object
|
result_text = search_object
|
||||||
|
|
||||||
if line_numbers:
|
if line_numbers:
|
||||||
result_text = f'{index+1:>4} | {result_text}'
|
result_text = f'{index+1:>4} | {result_text}'
|
||||||
|
|
||||||
|
@ -170,15 +171,16 @@ def search(
|
||||||
|
|
||||||
if not content_args:
|
if not content_args:
|
||||||
yield result_text
|
yield result_text
|
||||||
else:
|
continue
|
||||||
filepath = pathclass.Path(search_object)
|
|
||||||
if not filepath.is_file:
|
|
||||||
continue
|
|
||||||
|
|
||||||
if filepath.extension.lower() == 'lnk' and winshell:
|
filepath = pathclass.Path(search_object)
|
||||||
yield from search_contents_windows_lnk(filepath, content_args)
|
if not filepath.is_file:
|
||||||
else:
|
continue
|
||||||
yield from search_contents_generic(filepath, content_args)
|
|
||||||
|
if filepath.extension.lower() == 'lnk' and winshell:
|
||||||
|
yield from search_contents_windows_lnk(filepath, content_args)
|
||||||
|
else:
|
||||||
|
yield from search_contents_generic(filepath, content_args)
|
||||||
|
|
||||||
def argparse_to_dict(args):
|
def argparse_to_dict(args):
|
||||||
text = args.text
|
text = args.text
|
||||||
|
|
Loading…
Reference in a new issue