zf 0.10.0
This release adds support for an fzf inspired --preview option, updates the Zig module API, and rewrites the UI to use libvaxis.
Preview
The --preview option can be used to run a command for the currently selected line. The stdout of the command is collected and displayed in a preview window on the right. {} characters in the command will be substituted with the current line.
The --preview-width option can be used to set the width of the preview window as a percent. Values from 20% to 80% are accepted, with or without the percent sign.
As an example
fd -tf | zf --preview 'cat {}'
will pipe a list of files to zf and use cat to display the contents of the currently selected file on the right of the window.
Zig Module API
Zf can be used as a Zig module to add fuzzy matching to your project. The API was simplified in this release.