1
0

Allows lumen-search-content to Get a Path piped in

This commit is contained in:
Ole Klinck
2025-06-03 16:54:13 +02:00
parent 7b212c6037
commit e6d839432f

View File

@@ -23,6 +23,12 @@ $env.VISUAL = 'hx'
export def lumen-search-content [searchstr = string]: any -> table {
let $tmp = $in
mut $path = pwd
if ($tmp != null) {
$path = $tmp
}
cd $path
ls -a **/* | par-each {|i|
{file: $i.name,
content: (if (($i | get type) == file ) {