[Lldb-commits] [PATCH] D81001: [lldb] Display autosuggestion part in gray if there is one possible suggestion

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 2 09:20:02 PDT 2020

teemperor added a comment.

In D81001#2068925 <https://reviews.llvm.org/D81001#2068925>, @labath wrote:

> Thanks for the explanation Raphael. This makes more sense now, though I am still not very clear on the distinction between "completions" and "suggestions". The fish tutorial mentions command history -- that's something that's not typically done as a part of tab completion (though maybe it could be?). However, the rest -- file paths and command arguments -- that's clearly in scope for tab completion too and our tab handlers already do that. So, the idea of having "lightweight" completions which would also get run as a part of "suggestions" does not seem completely off track. Unless I am completely off track, that is...

It's more like a smarter and more user-friendly Ctrl+R search. Having it do something similar to tab completion is a stretch goal at the end. But at the moment the plan is to do just history based suggestions, then see if history + context is possible (i.e., make the suggestions paired to a specific target that you only get a suggestion for `b ASTContext.cpp:434` if you debug LLDB but not if you debug another random program) and then the lightweight completions if there is time left.

  rG LLVM Github Monorepo



More information about the lldb-commits mailing list