From d9f1db10aab7f2ef9eb2eeebfde1d6a934450d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 20 May 2024 19:05:38 +0800 Subject: [PATCH] Completions (Fish): disable enum value suggestion --- completions/fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/completions/fish b/completions/fish index a078a795a..a1713e729 100755 --- a/completions/fish +++ b/completions/fish @@ -85,8 +85,7 @@ string match -r -a -g "^###> ?(.*)" < (status -f) | string collect | python3 | s ###> elif type == 'config': ###> print(f'{command_prefix} -x -a "(__fastfetch_complete_config)"') ###> elif type == 'enum': -###> temp: str = ' '.join(map(lambda x: f"{x[0]}\\t{x[1]}", flag["arg"]["enum"].items())) -###> print(f'{command_prefix} -x -a "{temp}"') +###> print(f'{command_prefix} -x -a "{' '.join(flag["arg"]["enum"])}"') ###> elif type == 'logo': ###> print(f'{command_prefix} -x -a "(__fastfetch_complete_logo)"') ###> elif type == 'structure':