Find things even faster with srchr
Inspired by my last post about rgp and fdp I got the idea to combine both into a more powerful and easier to use shell script called srchr (well, at least it’s short :D).
It combines the results of fd and rg for fuzzy finding with fzf. The preview will be handled with bat as before, but it will jump to the first matching line if the file contains the search term. Your editor will also be opened on that line, if it supports vim-style line jumps nvim +<line> <file>. Otherwise the preview will start at the top of the file and your editor won’t get the line jump command.
You can find the script on GitHub.