fzf/shell
Simon Désaulniers 55c122f1a0
fix(nushell): adapt the completer to the 0.116 contract (#4934)
* fix(nushell): adapt the completer to the 0.116 contract

Nushell 0.116 runs an external completer on a background worker
without the terminal unless the registered closure reaches a
command carrying the @interactive attribute. Interactivity is
seen through the closure to the command it calls, so wrap the
completion logic in an @interactive entry point and register a
closure that ends with the call to it.

Read the named `place` input instead of the deprecated
positional `spans`; $place.command carries the same token list.

An @interactive completer cannot decline with null (null reads
as a dismissed picker), so request the fallback explicitly when
the `**` trigger is absent, keeping plain file completion
working. The previous external completer is still called when
the trigger is absent.

The script now requires Nushell 0.116+, since @interactive is a
parse error on older versions.

Fixes #4932

* fix(nushell): retry the previous completer with the legacy spans input

The fallback to the previously configured external completer always
handed it the new `place` input. A completer that still declares the
legacy `spans` parameter errors on a record, so the fallback silently
produced no completions for pre-0.116 completers (e.g. older Carapace
installs).

Try `place` first, then retry with the token list, which is what the
old positional bridge handed such completers.

* docs(nushell): note the 0.116 requirement and load order

Requires Nushell 0.116.1+, where a completion can take the terminal
through the @interactive attribute, and the wrapper captures the
external completer present at load time.
2026-10-17 11:10:52 +09:00
..
common.sh Fix lint errors 2026-03-07 18:13:38 +09:00
completion-examples.nu shell: nushell integration scripts (#4630) 2026-05-23 23:13:46 +09:00
completion.bash Remove deprecated FZF_TMUX vars from shell script headers 2026-03-26 21:35:14 +09:00
completion.fish fish: Optimize description alignment of completions (#4912) 2026-09-09 00:14:48 +09:00
completion.nu fix(nushell): adapt the completer to the 0.116 contract (#4934) 2026-10-17 11:10:52 +09:00
completion.zsh completion(zsh): use private mktemp dir for completion FIFO 2026-10-11 11:27:06 +09:00
key-bindings.bash [bash] Persist history deletion when histappend is on 2026-04-11 17:03:25 +09:00
key-bindings.fish fish: Improve custom CTRL-T command execution (#4909) 2026-09-07 08:36:30 +09:00
key-bindings.nu [nushell] Quote paths inserted by CTRL-T (#4919) 2026-09-11 21:46:03 +09:00
key-bindings.zsh fix(zsh): avoid double call for 'chpwd' in alt-c 2026-07-31 01:32:32 +09:00
update.sh fish: Completion script rewrite (SHIFT-TAB) 2026-04-04 09:47:59 +09:00