File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Search terms in the specified files and/or folders based on the glob pattern provided.
2
2
def "find in" [
3
- glob : glob , # the glob expression
4
- ... rest : any # terms to search
3
+ glob : glob , # The glob expression
4
+ -- exclude (- e ): list <string > # Patterns to exclude from the search: `find in` will not walk the inside of directories matching the excluded patterns.
5
+ ... rest : any # Terms to find
5
6
]: nothing -> table <path : string , line : int , data : string > {
6
- glob -- no-dir $glob
7
+ glob -- exclude $exclude -- no-dir $glob
7
8
| par-each {|e |
8
- open $e | lines | enumerate | rename line data |
9
+ open -- raw $e | lines | enumerate | rename line data |
9
10
find -- columns [data ] ... $rest |
10
11
each {|match | {path : ($e | path relative-to $env .PWD ), ... $match }}
11
12
} | flatten
You can’t perform that action at this time.
0 commit comments