This adds a select_1 parameter to iterfzf. If this parameter is added, the fzf command is called with the --select-1 parameter, which means that the command returns immediately when there is only one match.
TODO:
[ ] Change documentation
It would actually be nice if all parameters to fzf could be supported, by using a **kwargs parameter to iterfzf. This should be possible without too much effort:
Convert underscores in name to dash
Prepend one-character name with one dash, longer names with two dashes
A value of None or False would result in ignoring the parameter
A value of True would add the parameter without argument
A string or numeric value would add the parameter with this value as argument
This adds a
select_1
parameter toiterfzf
. If this parameter is added, thefzf
command is called with the--select-1
parameter, which means that the command returns immediately when there is only one match.TODO:
It would actually be nice if all parameters to
fzf
could be supported, by using a**kwargs
parameter toiterfzf
. This should be possible without too much effort:None
orFalse
would result in ignoring the parameterTrue
would add the parameter without argument