1
0

Moved Modules into their own files

This commit is contained in:
Ole Klinck
2025-06-05 14:43:58 +02:00
parent eb35a68b9a
commit 704ce76284
3 changed files with 56 additions and 59 deletions

View File

@@ -0,0 +1,15 @@
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 ) {
try {open $i.name --raw | find $searchstr} catch {|err| {}}
})
}
} | compact content -e
}