better history suggestions
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/ [email protected]:~
if someone would want to upload another file, they wouln't get a suggestion for the second part, so [email protected]:~ would need to fully by typed out again;
Sounds fancy but potentially confusing too.
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:
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?
deleted comment