nushell / nushell/reedline

better history suggestions

Open
#748 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
818
Forks
249
Avg merge
4d 14h
Merged PRs (30d)
30

Description

I think it would be cool if the history suggestions wouldn't just work for full commands but also for sub-commands/strings.

e.g
i run the command clear

in the shell i will get the history suggestion for it, but only if i didnt enter anything else yet.

echo "test"; c will not suggest clear here

this would be especially useful in cases like this:

scp path/to/some/file/ root@123.123.123:~

if someone would want to upload another file, they wouln't get a suggestion for the second part, so root@123.123.123:~ would need to fully by typed out again;

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Reedline's history suggestion handling for input containing a command separator, using the examples echo "test"; c and scp path/to/some/file/ root@123.123.123:~ as the target cases. The change is done when history suggestions can match relevant sub-command or argument strings without breaking full-command suggestions; add or update tests alongside the existing history suggestion behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.