I made a script that uses atuin to get previous commands related to your current command line - latest commands ran in the same session, in the same directory, in other sessions, latest commands for the same executable etc. then feeds it into GPT and streams the replies to fzf so you can choose the best autocompletion (or it can fix problems in the line you've written already as well). On Wezterm and Kitty it can als…
Isn't that like... ultra slow?
If you have big atuin file though, creating indexes for session and cwd are good ideas so we can get the request out quickly..
edit: but much faster than searching or asking LLM for command line parameters instead