opensouls / terminal-copilot

A smart terminal assistant that helps you find the right command.
Apache License 2.0
573 stars 43 forks source link

Fuzzy reverse search #32

Open JoelKronander opened 1 year ago

JoelKronander commented 1 year ago

One of the commands I most often in the terminal is reverse search CTRL+R

however you have to remember the first exact letters of an old command to use it.

What if copilot had a built in reverse search that was more like fuzzy matching. It looks at your command history and picks the most semantically similar (could probably do an embedding search or just use a prompt to select which one.

I imagine it working like

copilot -rs that command I used in the past but forgot exactly how it was typed.

2mawi2 commented 1 year ago

Do you mean an actual autocomplete ? What would copilot the actual command infer from ? The current context ?