Skip to content

Set display_override and match_indices for file completions - #17424

Merged
fdncred merged 2 commits into
nushell:mainfrom
ysthakur:match-indices-file-completions
Feb 12, 2026
Merged

fdncred merged 2 commits into
nushell:mainfrom
ysthakur:match-indices-file-completions

Conversation

@ysthakur

Copy link
Copy Markdown
Member

File completion Suggestions will now set the display_override and match_indices fields. This means suggestions won't have backticks or quotes and will be highlighted accurately.

Testing

The tests I added only test behavior for relative paths. Testing behavior with paths starting at ~ or root would be doable but more complicated.

Here's some screenshots manually testing that behavior (all but the last use the fuzzy matching algorithm).

File completions (/):
image

After selecting (note the backticks):
image

File completions (~):

image

Directory completions (~):
image

use completions (~):
image

With prefix matching (cropped):
image

Release notes summary - What our users need to know

N/A, users don't need to do anything, and it's a minor visual change.

Tasks after submitting

None

@ysthakur ysthakur added A:completions Issues related to tab completion quality-of-life notes:hide Noted only in "Full Changelog" section labels Jan 25, 2026
@ysthakur
ysthakur marked this pull request as draft February 8, 2026 01:48
@fdncred

fdncred commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Are we ready to land this one and see if it breaks anything?

@ysthakur

Copy link
Copy Markdown
Member Author

@fdncred I looked at it a few days ago and noticed a comment I'd left in. I don't remember if I'd finished it completely, so I marked as draft. Let me confirm today

@ysthakur
ysthakur marked this pull request as ready for review February 12, 2026 11:11
@ysthakur

Copy link
Copy Markdown
Member Author

@fdncred Okay, looks like it was just that one comment I forgot to take out. Should be good to merge now

@fdncred
fdncred merged commit da520b0 into nushell:main Feb 12, 2026
16 checks passed
@fdncred

fdncred commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

ok, thanks for working on this!

@github-actions github-actions Bot added this to the v0.111.0 milestone Feb 12, 2026
@ysthakur
ysthakur deleted the match-indices-file-completions branch February 13, 2026 02:11
@cptpiepmatz cptpiepmatz added notes:mention Noted in "Hall of Fame" section notes:ready Indicates Ready for Release notes and removed notes:hide Noted only in "Full Changelog" section labels Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:completions Issues related to tab completion notes:mention Noted in "Hall of Fame" section notes:ready Indicates Ready for Release notes quality-of-life

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants