Skip to content

Commit

Permalink
Close #32
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Nov 18, 2023
1 parent 642cb24 commit df8881f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ The following is the full list of parameters. Pass them as

``False`` by default.

Corresponds to ``-cycle`` option.
Corresponds to ``--cycle`` option.

``__extra__``
The iterable of extra raw options/arguments to pass to ``fzf``.

Empty by default.



Expand Down Expand Up @@ -199,9 +204,11 @@ Version 1.1.0.44.0
To be released. Bundles ``fzf`` `0.44.0`__.

- Added ``cycle`` option. [`#33`__ by Daniele Trifirò]
- Added ``__extra__`` option. [`#32`__]

__ https://github.com/junegunn/fzf/releases/tag/0.44.0
__ https://github.com/dahlia/iterfzf/pull/33
__ https://github.com/dahlia/iterfzf/issues/32


Version 1.0.0.42.0
Expand Down
3 changes: 3 additions & 0 deletions iterfzf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def iterfzf(
# Misc:
query: str = '',
cycle: bool = False,
__extra__: Iterable[str] = (),
encoding: Optional[str] = None,
executable: PathLike = BUNDLED_EXECUTABLE or EXECUTABLE_NAME
):
Expand All @@ -64,6 +65,8 @@ def iterfzf(
cmd.append('--ansi')
if cycle:
cmd.append('--cycle')
if __extra__:
cmd.extend(__extra__)
encoding = encoding or sys.getdefaultencoding()
proc = None
stdin = None
Expand Down

0 comments on commit df8881f

Please sign in to comment.