Commit graph

17 commits

Author SHA1 Message Date
845eebf40f Add argument root_path to start a search from somewhere else. 2020-02-15 18:03:04 -08:00
dc48da8a27 main should return args.func(args) value. 2020-02-08 17:23:43 -08:00
a5c8887f47 Only perform plain in search if neither glob nor regex enabled. 2020-02-03 20:25:11 -08:00
09d3c576e6 Switch off breadth first because that's gone from spinal now.
See voussoirkit commit 3ff49e1.
2020-01-31 20:27:03 -08:00
17aabe961d Take advantage of pathclass.Extension comparison functionality. 2020-01-29 16:39:08 -08:00
6d17ed725f Use winglob.fnmatch instead of python fnmatch. 2020-01-28 17:43:47 -08:00
7e8e20d038 Also search .lnk arguments. 2020-01-25 18:27:55 -08:00
66c26fa31a Improve lnk searching by separating field names from content.
Previously, if you searched for the word target then every lnk
matched because "Target: xxx" was literally the text being searched.
Now we can use the existing separation between search_text and
result_text to show those headers separately.
2020-01-25 01:18:03 -08:00
d108670693 Allow passing a pre-formed list as text. 2020-01-25 01:11:11 -08:00
ea415b953c Rename these key, value variables to give better context. 2020-01-25 01:08:50 -08:00
2dc7e75414 Dedent even more. Thanks continue! 2020-01-25 00:58:06 -08:00
77481c169c Comment this whole if and not just the inner part. 2020-01-25 00:52:39 -08:00
1727be598a Switch this formatter to fstring. 2020-01-25 00:49:08 -08:00
91bf90862b Dedent this code by reversing condition and continue. 2020-01-25 00:46:52 -08:00
9d8c9fdf51 Support searching of windows .lnk file fields.
I'm currently migrating my shortcuts that point to Py 3.7 to 3.8
so this saves a lot of time!
2020-01-25 00:39:18 -08:00
08782fdaf9 Extract code to function search_contents_generic. 2020-01-25 00:36:50 -08:00
f44e46aab5 Initial commit. 2019-06-11 22:41:31 -07:00