Allows lumen-search-content to Get a Path piped in
This commit is contained in:
@@ -23,6 +23,12 @@ $env.VISUAL = 'hx'
|
|||||||
|
|
||||||
|
|
||||||
export def lumen-search-content [searchstr = string]: any -> table {
|
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|
|
ls -a **/* | par-each {|i|
|
||||||
{file: $i.name,
|
{file: $i.name,
|
||||||
content: (if (($i | get type) == file ) {
|
content: (if (($i | get type) == file ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user