nushell/crates/nu-cli/src
Chinmay Dalal f310a9be8c
Make hints aware of the current directory (#10780)
This commit uses the new `CwdAwareHinter` in reedline. Closes #8883.

# Description

Currently, the history based hints show results from all directories,
while most commands make sense only in the directory they were run in.
This PR makes hints take the current directory into account.

# User-Facing Changes

Described above.

I haven't yet added a config option for this, because I personally
believe folks won't be against it once they try it out. We can add it if
people complain, there's some time before the next release.

Fish has this without a config option too.

# Tests + Formatting

If tests are needed, I'll need help as I'm not well versed with the
codebase.
2023-10-20 11:21:58 +02:00
..
commands Add long options for platform and random (#10776) 2023-10-19 22:04:33 +02:00
completions remove the $nothing variable (#10567) 2023-10-19 18:41:38 +02:00
menus Add themes to help command when available #10318 (#10623) 2023-10-10 07:40:05 -05:00
config_files.rs Fix config creation during printing (#9353) 2023-06-04 22:04:28 +03:00
eval_cmds.rs Move CLI related commands to nu-cli (#8832) 2023-04-10 10:56:47 +12:00
eval_file.rs allow early return outside of main (#10514) 2023-09-28 18:49:42 +02:00
lib.rs cratification: move the bytes command to nu-cmd-extra (#9509) 2023-06-23 12:23:08 -07:00
nu_highlight.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
print.rs allow print to take data as input again (#9823) 2023-07-27 21:40:25 +02:00
prompt_update.rs Transient prompt (#10391) 2023-09-22 14:35:09 -05:00
prompt.rs Fix default prompt indicators (#9914) 2023-08-05 04:47:46 +12:00
reedline_config.rs support tab completion cycling (#10199) 2023-09-03 19:19:39 -05:00
repl.rs Make hints aware of the current directory (#10780) 2023-10-20 11:21:58 +02:00
syntax_highlight.rs Use slices directly instead of &Vec (#10328) 2023-09-12 11:38:20 +08:00
util.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00