-
Notifications
You must be signed in to change notification settings - Fork 166
Enable concatenation of search queries (split by " / ") #1537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
c0ca7f0
b95e3ce
5840b67
5cf9bdf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,11 @@ | |
| import urwid | ||
|
|
||
|
|
||
| def chain(*iterables): | ||
lucc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| for iterable in iterables: | ||
| yield from iterable | ||
|
|
||
|
|
||
| class IterableWalker(urwid.ListWalker): | ||
|
|
||
| """An urwid walker for iterables. | ||
|
|
@@ -92,3 +97,6 @@ def _get_next_item(self): | |
|
|
||
| def get_lines(self): | ||
| return self.lines | ||
|
|
||
| def append(self, iterableWalker): | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happens if this is called after somebody started iterating over the IterableWalker already? Is that a case we have to think about? Even if this method is trivial it might be worth it to add a docstring to mention such constrains (if there are some).
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question. I'll try to test that case somehow. |
||
| self.iterable = chain(self.iterable, iterableWalker.iterable) | ||
Uh oh!
There was an error while loading. Please reload this page.