From 840c3c9e199538c104e30bb722353f423aac015a Mon Sep 17 00:00:00 2001 From: scarlet-storm <12461256+scarlet-storm@users.noreply.github.com> Date: Thu, 26 Jun 2025 21:39:10 +0530 Subject: [PATCH] fish_completer: escape all singlequotes make sure all single quotes are escaped, earlier completion can fail when there are multiple singlequotes fixup 670b23053530fc6f5b8f1973a3df2a5bccc45626 --- cookbook/external_completers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/external_completers.md b/cookbook/external_completers.md index eb6934d9c4e..4329133cd72 100644 --- a/cookbook/external_completers.md +++ b/cookbook/external_completers.md @@ -20,7 +20,7 @@ This completer will use [the fish shell](https://fishshell.com/) to handle compl ```nu let fish_completer = {|spans| - fish --command $"complete '--do-complete=($spans | str replace "'" "\\'" | str join ' ')'" + fish --command $"complete '--do-complete=($spans | str replace --all "'" "\\'" | str join ' ')'" | from tsv --flexible --noheaders --no-infer | rename value description | update value {