From 4703c6c492f45d2564260cdd2e8fca624552302e Mon Sep 17 00:00:00 2001 From: Luminiferous Date: Tue, 10 Jun 2025 11:30:43 +0200 Subject: [PATCH] Allows lumen-search-content to Get a Path piped in --- config.nu | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.nu b/config.nu index bfad929..9140f7f 100644 --- a/config.nu +++ b/config.nu @@ -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 ) {