Skip to content

Commit

Permalink
Add support for guessers that return multiple suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
iamFIREcracker committed Jun 17, 2019
1 parent de911d9 commit ab3cad5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ Next

- Keep on processing guessers, even after a first match (this makes it possible
for users to generate multiple suggestions for the same input line)
- Guessers can now return multiple suggestions (i.e. they should either return
a STRING, or a LIST (of strings))
- Removed tmux plugin -- use
[tmux-externalpipe](https://github.com/iamFIREcracker/tmux-externalpipe)
instead
Expand Down
4 changes: 3 additions & 1 deletion src/main.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
(loop
:for fn :in guessers
:for command = (funcall fn line)
:when command :collect it))
:unless command
:when (stringp command) :collect command
:when (consp command) :append command))

(defun process-input ()
(loop
Expand Down

0 comments on commit ab3cad5

Please sign in to comment.