Skip to content

Commit 655e834

Browse files
authored
fix(completion): handle colons in task descriptions for fish (#2573)
1 parent 3ad4604 commit 655e834

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
another task (#2552, #363 by @trulede).
4545
- Fixed Zsh completion not suggesting global tasks when using `-g`/`--global`
4646
flag (#1574, #2574 by @vmaerten).
47+
- Fixed Fish completion failing to parse task descriptions containing colons
48+
(e.g., URLs or namespaced functions) (#2101, #2573 by @vmaerten).
4749

4850
## v3.45.5 - 2025-11-11
4951

completion/fish/task.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function __task_get_tasks --description "Prints all available tasks with their d
5454
end
5555

5656
# Grab names and descriptions (if any) of the tasks
57-
set -l output (echo $rawOutput | sed -e '1d; s/\* \(.*\):\s*\(.*\)\s*(\(aliases.*\))/\1\t\2\t\3/' -e 's/\* \(.*\):\s*\(.*\)/\1\t\2/'| string split0)
57+
set -l output (echo $rawOutput | sed -e '1d; s/\* \(.*\):\s\{2,\}\(.*\)\s\{2,\}(\(aliases.*\))/\1\t\2\t\3/' -e 's/\* \(.*\):\s\{2,\}\(.*\)/\1\t\2/'| string split0)
5858
if test $output
5959
echo $output
6060
end

0 commit comments

Comments
 (0)