An LSP-aware grep tool. lsp-grep
finds not only the line in which a query is contained but the entire construct in which it is used.
Given the following code:
def foo(
bar: str,
waz: int,
) -> str:
...
return
Using traditional grep
to search for waz
:
grep 'waz' example.py
Output:
waz: int,
Using lsp-grep
to search for waz
:
lsp-grep 'waz' example.py
Output:
def foo(
bar: str,
waz: int,
) -> str: