pseek 2.3.1__tar.gz → 2.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pseek-2.3.1 → pseek-2.3.2}/PKG-INFO +1 -1
- {pseek-2.3.1 → pseek-2.3.2}/pseek/searcher.py +4 -1
- {pseek-2.3.1 → pseek-2.3.2}/pseek.egg-info/PKG-INFO +1 -1
- {pseek-2.3.1 → pseek-2.3.2}/pyproject.toml +1 -1
- {pseek-2.3.1 → pseek-2.3.2}/LICENSE +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/README.md +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/pseek/__init__.py +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/pseek/cli.py +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/pseek/parser.py +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/pseek/utils.py +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/pseek.egg-info/SOURCES.txt +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/pseek.egg-info/dependency_links.txt +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/pseek.egg-info/entry_points.txt +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/pseek.egg-info/requires.txt +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/pseek.egg-info/top_level.txt +0 -0
- {pseek-2.3.1 → pseek-2.3.2}/setup.cfg +0 -0
|
@@ -133,7 +133,7 @@ class Search:
|
|
|
133
133
|
file_label = str(file_path.resolve()) if self.full_path else str(file_path)
|
|
134
134
|
|
|
135
135
|
# Avoid searching through the entire file content if the fast-content flag is True
|
|
136
|
-
if self.no_content:
|
|
136
|
+
if self.no_content and not self.expr:
|
|
137
137
|
matches.add(click.style(file_label, fg='cyan'))
|
|
138
138
|
return
|
|
139
139
|
|
|
@@ -151,6 +151,9 @@ class Search:
|
|
|
151
151
|
|
|
152
152
|
# If the pattern matches in the decoded line
|
|
153
153
|
if pattern.evaluate(line_decoded):
|
|
154
|
+
if self.no_content and self.expr:
|
|
155
|
+
matches.add(click.style(file_label, fg='cyan'))
|
|
156
|
+
return
|
|
154
157
|
count = pattern.count_matches(line_decoded) if isinstance(pattern, TermNode) else 0
|
|
155
158
|
# Highlight the matching parts in green
|
|
156
159
|
highlighted = highlight_text_safe(pattern, line_decoded)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|