Tab completionA few days ago, I talked about how to add tab completion to a CLI program, using fzf.
As usual, there’s more than one way to do it (TIMTOWDI) and I’d like to look at another approach which also uses fzf.
One of the neat things about fzf is that it can provide you with configurable preview window. The following snippet will require fzf and bat, which is another handy tool which I encourage you to explore. Read More...I like to find what I need quickly, so I make heavy use of tab completion at the command line. Lately, I’ve been using fzf more and more to do this. It’s a wonderful tool. I won’t go in depth about fzf here, but if you haven’t checked it out, please do. I think it’s well worth it.
What I want to do today is to explain how to harness the power of fzf to add tab completion to an arbitrary command line program. Read More...