From 96cecb5e822abab69bf810d26d24892b0d145602 Mon Sep 17 00:00:00 2001 From: Azhar Madar Shaik Date: Sat, 16 Aug 2025 15:32:36 +0530 Subject: [PATCH] fix fish completions with words containing `-f` --- src/completions.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/completions.rs b/src/completions.rs index 5cc8c2426f..22c270992c 100644 --- a/src/completions.rs +++ b/src/completions.rs @@ -94,10 +94,10 @@ export extern "just" [ ]"#; const FISH_RECIPE_COMPLETIONS: &str = r#"function __fish_just_complete_recipes - if string match -rq '(-f|--justfile)\s*=?(?[^\s]+)' -- (string split -- ' -- ' (commandline -pc))[1] - set -fx JUST_JUSTFILE "$justfile" - end - printf "%s\n" (string split " " (just --summary)) + if string match -rq '\s(-f|--justfile)\s*=?(?[^\s]+)' -- (string split -- ' -- ' (commandline -pc))[1] + set -fx JUST_JUSTFILE "$justfile" + end + printf "%s\n" (string split " " (just --summary)) end # don't suggest files right off