Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better history suggestions #748

Open
maxomatic458 opened this issue Feb 9, 2024 · 3 comments
Open

better history suggestions #748

maxomatic458 opened this issue Feb 9, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@maxomatic458
Copy link
Contributor

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;

@maxomatic458 maxomatic458 added the enhancement New feature or request label Feb 9, 2024
@fdncred
Copy link
Collaborator

fdncred commented Feb 9, 2024

Sounds fancy but potentially confusing too.

@bew
Copy link
Contributor

bew commented Feb 9, 2024

Your second example made me think about a nice history thing I configured in zsh and I use a lot: words history

It basically allows me to complete any words (argument) I ever passed to a command..
Here for example I typed in echo /tmp/fo then triggered that words history:
image
And I'm getting back all the arguments I ever used that starts with /tmp/fo
(these files don't exist in my filesystem anymore, they're only mentioned in my looong history of commands)

Maybe nushell could have something like this?

@maxim-uvarov
Copy link

maxim-uvarov commented Feb 9, 2024

deleted comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants