This only works in zsh
, requires fzf
, and gnu awk
. Tested on macOS with gawk
(gnu awk) installed via homebrew. Also requires bat
for preview window functionality.
This is meant to be an autoloaded zsh function. To make it work --
- Put in in a directory that is in
fpath
autoload k
in startup files- Reload your shell and press
k
- Follow simple on-screen instructions
k
was chosen because it is on the keyboard's home row and easy to get to quickly.