dahlia / iterfzf

Pythonic interface to fzf, a CLI fuzzy finder
https://pypi.python.org/pypi/iterfzf
GNU General Public License v3.0
164 stars 19 forks source link

Allow integer values for multi #11

Open oerpli opened 4 years ago

oerpli commented 4 years ago

Since 0.19.0, an optional integer value can be passed to --multi which indicates the maximum number of items that can be selected.

Added this by changing the default from False to None and checking the type and adding the appropriate argument.

oerpli commented 4 years ago

I had a pretty embarrassing error (& an if instead of an elif) in the argument handling logic previously which should be fixed now.