mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
completions: fix qdbus Q_NOREPLY method completion
(cherry picked from commit c21e13e62e)
This commit is contained in:
@@ -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 '^(?<kind>property\ (read)?(write)?|signal|method) (?<type>(\{.+\})|([^\ ]+)) (?<name>[^\(]+)(?<arguments>\(.+?\))?' '$name\t$kind $type $arguments' | string trim
|
||||
qdbus $qdbus_flags $argv[2] $argv[3] | string replace --regex '^(?<kind>property\ (read)?(write)?|signal|method( Q_NOREPLY)?) (?<type>(\{.+\})|([^\ ]+)) (?<name>[^\(]+)(?<arguments>\(.+?\))?' '$name\t$kind $type $arguments' | string trim
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user