junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
65.29k stars 2.4k forks source link

Use as a library #1010

Closed kalbasit closed 7 years ago

kalbasit commented 7 years ago

Hello,

I'm writing a TMUX wrapper that fits my workflow and I would like to use FZF as a library in order to present a big list of projects to start a session for. For now, I'll use the fzf binary but it would be more performant to embed. The current Run assumes binary and it does quite a bit of os.Exit() which makes it unusable as a library. @junegunn are you planning to split fzf into library/binary?

junegunn commented 7 years ago

No, it's not planned as I don't want to make any promises regarding API stability for the time being.

Having said that, I wouldn't really worry about performance. I'm pretty sure that users will not notice any difference in response time.

kalbasit commented 7 years ago

thx for the quick reply @junegunn I'll use the binary for now.