From f3372635fad649f281fd780a029a19db13177be1 Mon Sep 17 00:00:00 2001 From: Rocka Date: Fri, 21 Oct 2022 12:19:04 +0800 Subject: [PATCH] completions: fix qdbus property completion --- share/completions/qdbus.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/qdbus.fish b/share/completions/qdbus.fish index cfee1cd5e..f8e48bb6e 100644 --- a/share/completions/qdbus.fish +++ b/share/completions/qdbus.fish @@ -11,7 +11,7 @@ function __fish_qdbus_complete set argc (count $argv) if test $argc -le 3 # avoid completion of property value - qdbus $qdbus_flags $argv[2] $argv[3] | string replace --regex '^(property(\ read)?|signal|method) ((\{.+\})|([^\ ]+)) ([^\(]+)(\(.+?\))?' '$6\t$1 $3 $7' | string trim + qdbus $qdbus_flags $argv[2] $argv[3] | string replace --regex '^(?property\ (read)?(write)?|signal|method) (?(\{.+\})|([^\ ]+)) (?[^\(]+)(?\(.+?\))?' '$name\t$kind $type $arguments' | string trim end end