Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cookbook/external_completers.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ 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 join ' ')'"
fish --command $"complete '--do-complete=($spans | str replace "'" "\\'" | str join ' ')'"
| from tsv --flexible --noheaders --no-infer
| rename value description
| update value {
if ($in | path exists) {$'"($in | str replace "\"" "\\\"" )"'} else {$in}
if ($in | path exists) {$'"($in | path expand --no-symlink | str replace --all "\"" "\\\"" )"'} else {$in}
}
}
```
Expand Down