kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
787 stars 34 forks source link

Add ability to specify options for fzf #89

Closed davidkvc closed 2 years ago

davidkvc commented 2 years ago

First, this is a great tool. I would like to be able to specify command line options that this tool sends to fzf.

This can already be set globally by using fzf's env variable FZF_DEFAULT_OPTS but that's not what I am looking for. I want to specify default options only for the case when fzf is invoked by PSFzf. Could you add another option or env variable for that ?

For example, zoxide uses another env variable for that - _ZO_FZF_OPTS: https://github.com/ajeetdsouza/zoxide#environment-variables

kelleyma49 commented 2 years ago

I've added the feature and I've published a prerelease version - give it a try! See the readme for the env var name.

https://www.powershellgallery.com/packages/PSFzf/2.3.1-alpha

davidkvc commented 2 years ago

I have tried it and it looks good. Thank you !