I’ve been using perlimports a lot at $work. I’m generally quite happy with it, but perlimports can get confused by modules which are being dynamically used. Let’s look at an interesting strategy to fix this.
When you find variables which have not been used, you may find yourself asking, “why is this here?” and you may not easily get an answer. Eliminating unused variables can be good for the performance of the code, but also good for everyone else on your team. So, we want to make sure we can remove old bits of unused code and also prevent new cases.
I use ot a lot when it comes to opening files. I wanted to be able to use this tool from inside vim as well. It turns out, the solution is quite simple.
Today an interesting question came up about whether or not Carton uses HTTPS and also which CPAN mirror it downloads from. I wondered if LWP::ConsoleLogger::Everywhere could be helpful.
Last month, I talked about how to add tab completion to a CLI program, using fzf. Next we talked about a more generic solution which adds a preview window to a file search.
Today we will look at how to combine the knowledge from these two posts. What we want to do is have our custom completion for the prove CLI, but with a preview window. The solution looks like this: Read More...
A 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...