Skip to content

Commit 5092670

Browse files
authored
Notes for #15511 (substring match algorithm) (#1896)
1 parent 4cbde11 commit 5092670

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

blog/2025-04-15-nushell_0_104_0.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,20 @@ Now the ``start_timestamp`` column of the SQLite command history contains dateti
109109

110110
## Additions
111111

112+
### Substring match algorithm
113+
114+
In [#15511](https://github.com/nushell/nushell/pull/15511), [@vansh284](https://github.com/vansh284) added the option to use substring matching for completions. Previously, only prefix and fuzzy matching were allowed. Users can now set `$env.config.completions.algorithm` to `"substring"` to enable this.
115+
116+
Custom completers already had the ability to use substring matching by setting `positional: false` in their [options](https://www.nushell.sh/book/custom_completions.html#options-for-custom-completions). However, `positional` has now been deprecated, and completers should set `completion_algorithm: "substring"` to maintain the same behavior.
117+
112118
## Breaking changes
113119

114120
## Deprecations
115121

122+
### `positional` completer option
123+
124+
The `positional` [option](https://www.nushell.sh/book/custom_completions.html#options-for-custom-completions) available to custom completers has been deprecated. See the section about the [Substring match algorithm](#substring-match-algorithm-toc) above for details.
125+
116126
## Removals
117127

118128
## Bug fixes and other changes

0 commit comments

Comments
 (0)