Package: mkbak-iterfzf
mkbak-iterfzf: Pythonic interface tofzfmkbak-iterfzfis a fork ofiterfzfAll credit goes todahlia, all I did was add the--heightoptionDemo sessionSee also the [API reference](#api reference).Key featuresNo dependency but only Python is required. Prebuiltfzfbinary for
each platform is bundled into wheels. Everything is ready bypip install iterfzf. (Note that not wheels of all supported
platforms are uploaded to PyPI as they don't allow minor platforms
e.g. FreeBSD. The complete wheels can be found from theGitHub
releases.)Consumes an iterable rather than a list. It makes UX way better when
the input data is long butstreamedfrom low latency network. It
can begin to display items immediately after onlypartof items
are ready, andbeforethe complete items are ready.Supports Python 2.7, 3.5 or higher.iterfzf.iterfzf(iterable, **options)Consumes the giveniterableof strings, and displays them usingfzf.
If a user chooses something it immediately returns the chosen things.The following is the full list of parameters. Please pass them askeyword argumentsexcept foriterablewhich comes first:iterable(required)The only required parameter. Every element which thisiterableyields
is displayed immediately after each one is produced. In other words, the
passediterableis lazily consumed.It can be an iterable of byte strings (e.g.[b'foo', b'bar']) or of
Unicode strings (e.g.[u'foo', u'bar']), but must not be mixed (e.g.[u'foo', b'bar']). If they are byte strings the function returns
bytes. If they are Unicode strings it returns Unicode strings. See also
theencodingparameter.multiTrueto let the user to choose more than one. A user can select items
with tab/shift-tab. Ifmulti=Truethe function returns a list of
strings rather than a string.Falseto make a user possible to choose only one. Ifmulti=Falseit
returns a string rather than a list.For both modes, the function returnsNoneif nothing is matched or a
user cancelled.Falseby default.Corresponds to-m/--multioption.print_queryIfTruethe return type is a tuple where the first element is the
query the user actually typed, and the second element is the selected
output as described above and depending on the state ofmulti.Falseby default.Corresponds to--print-queryoption.New in version 0.3.0.encodingThe text encoding name (e.g.'utf-8','ascii') to be used for
encodingiterablevalues and decoding return values. It's ignored when
theiterablevalues are byte strings.The Python's default encoding (i.e.sys.getdefaultencoding()) is used
by default.extendedTruefor extended-search mode.Falseto turn it off.Trueby default.Truecorresponds to-x/--extendedoption, andFalsecorresponds
to+x/--no-extendedoption.exactFalsefor fuzzy matching, andTruefor exact matching.Falseby default.Corresponds to-e/--exactoption.case_sensitiveTruefor case sensitivity, andFalsefor case insensitivity.None,
the default, for smart-case match.Truecorresponds to+ioption andFalsecorresponds to-ioption.queryThe query string to be filled at first. (It can be removed by a user.)Empty string by default.Corresponds to-q/--queryoption.promptThe prompt sequence.' >'by default.Corresponds to--promptoption.previewThe preview command to execute.Noneby default.Corresponds to--previewoption.mouseFalseto disable mouse.Trueby default.Corresponds to--no-mouseoption.New in version 0.6.0ansiTrueto enable ansi colors mode.Noneby default.Corresponds to--ansioption.heightSet the height of the prompt.'100%'by default.Corresponds to--heightoption.New in version 0.7.0paddingPadding inside border.Corresponds to the--paddingoption.bindCustom key bindings. Refer to fzf'sman pageCorresponds to the--bindoptionno_sortTruefor unsorted results, andFalseto sort the results. (Increases match accuracy.)Corresponds to the--no-sortoption.Author and licenseTheiterfzflibrary is written byHong
Minheeand distributed underGPLv3or later.Thefzfprogram is written byJunegunn
Choiand distributed under
MIT license.ChangelogVersioning schemeNote thatmkbak-iterfzfdoesnotfollowSemantic
Versioning. The version consists of its own major
and minor number followed by the version of bundledfzf. For example,
1.2.3.4.5.6 means thatiterfzf's own major version is 1, and its own
minor version is 2, its on patch 3, plus the version offzfit bundles is 4.5.6./---------- 1. iterfzf's major version
|   /------ 3. bundled fzf's major version
|   |   /-- 5. bundled fzf's patch version
|   |   |
v   v   v
1.2.4.5.6
  ^   ^
  |   |
  |   \---- 4. bundled fzf's minor version
  |
  |
  \-------- 2. iterfzf's minor versionVersion 0.7.0.25.1Released on February, XX, 2021. Bundlesfzf0.25.1.Upgradedfzffrom 0.20.0 to0.25.1Addedpaddingoption.Addedbindoption from issue
[#21by ayghoshter].Addedno_sortas an argument (the results are now sorted by default)
[#23by gikeymarcia]Version 0.6.0.20.0Released on January, 28, 2021. Bundlesfzf0.20.0.Addedheightoption. [#22by sudo-julia]Addedansioption. [#16by Erik Lilja]Version 0.5.0.20.0Released on February 9, 2020. Bundlesfzf0.20.0.Dropped Python 2.6, 3.3, and 3.4 supports.Officially support Python 3.7 (it anyway had worked though).Marked the package as supporting type checking by followingPEP
561.Addedpreviewoption.
[#6by Marc
Weistroff]Fixed a bug which had raisedIOErrorby selecting an option before
finished to load all options on Windows. [#3 by Jeff Rimko]Version 0.4.0.17.3Released on December 4, 2017. Bundlesfzf0.17.3.Version 0.4.0.17.1Released on October 19, 2017. Bundlesfzf0.17.1.Added missing binary wheels for macOS again. (These were missing
from 0.3.0.17.1, the previous release.)Version 0.3.0.17.1Released on October 16, 2017. Bundlesfzf0.17.1.Addedprint_queryoption. [#1by George Kettleborough]Version 0.2.0.17.0Released on August 27, 2017. Bundlesfzf0.17.0.Version 0.2.0.16.11Released on July 23, 2017. Bundlesfzf0.16.11.Version 0.2.0.16.10Released on July 23, 2017. Bundlesfzf0.16.10.Version 0.2.0.16.8Released on June 6, 2017. Bundlesfzf0.16.8.Upgradedfzffrom 0.16.7 to 0.16.8.Version 0.2.0.16.7Released on May 20, 2017. Bundlesfzf0.16.7.Made sdists (source distributions) possible to be correctly
installed so that olderpip, can't deal with wheels, also can
installiterfzf.Version 0.1.0.16.7Released on May 19, 2017. Bundlesfzf0.16.7. The initial release.