Skip to content

Added new functionality to match with files in cwd#1096

Open
Avyukt27 wants to merge 1 commit into
nushell:mainfrom
Avyukt27:avyukt27/cwd-hinter
Open

Added new functionality to match with files in cwd#1096
Avyukt27 wants to merge 1 commit into
nushell:mainfrom
Avyukt27:avyukt27/cwd-hinter

Conversation

@Avyukt27

@Avyukt27 Avyukt27 commented Jun 4, 2026

Copy link
Copy Markdown

Description

Updated CwdAwareHinter to add a hinting from cwd

If the history searching does not provide any auto-suggestion, the hinter will search through the cwd for matches instead of returning nothing.

Related Issues

Fixes nushell/nushell#5799

@fdncred

fdncred commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

I'm not convinced that this is a good idea. CwdAwareHinter is about the history, not the file system.

@Avyukt27

Avyukt27 commented Jun 4, 2026

Copy link
Copy Markdown
Author

Should I move this to another hinter type then?

@blindFS

blindFS commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Correct me if I'm wrong. I think fish adds completion results as hints and has a smart sorting algorithm so that the hints change between historical commands and completions as you type.

Basically hints for files of CWD would be a small subset of such functionality. Probably better to make it more general IMHO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Current working directory hint in addition to history complete

3 participants