From 211564321766591f8b19329cf93eba8bb30536b3 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 26 Feb 2026 17:22:59 -0300 Subject: [PATCH] improved zig build completion - now it lists the step's descriptions alongside their names - allows `zig build` without arguments now --- custom-completions/zig/zig-completions.nu | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/custom-completions/zig/zig-completions.nu b/custom-completions/zig/zig-completions.nu index 04bba97f..b874f919 100644 --- a/custom-completions/zig/zig-completions.nu +++ b/custom-completions/zig/zig-completions.nu @@ -37,13 +37,14 @@ export extern "zvm help" [] def "nu-complete zig build" [] { ^zig build -l | lines - | parse --regex "^ ([a-z]+)" - | get "capture0" + | parse --regex '^\s+(\S+)(?:\s+\(default\))?\s{2,}(.+)' + | rename value description + | update description { str trim } } # Build project from build.zig export extern "zig build" [ - step: string@"nu-complete zig build" + step?: string@"nu-complete zig build" ]