Skip to content

Autocomplete with exact matches in stream & topic compose boxes #823

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

Merged
merged 3 commits into from
Nov 21, 2020

Conversation

neiljp
Copy link
Collaborator

@neiljp neiljp commented Nov 11, 2020

This should partially or fully fix #776, but is pending on https://github.com/rr-/urwid_readline/pull/16 and assumes there will be a release of urwid-readline. For now my branch can be used to test this behavior; this allows 2 xfail-ing tests to be set to act normally.

@zulipbot zulipbot added size: S [Automatic label added by zulipbot] bug Something isn't working labels Nov 11, 2020
@neiljp neiljp force-pushed the 2020-11-08-explore-readline-delims branch from aafa7d3 to fc614ca Compare November 20, 2020 16:29
@neiljp neiljp marked this pull request as ready for review November 20, 2020 16:34
This allows use of the new/fixed support for using no autocomplete
delimiters, ie. doing an exact match of text in a text box.
Given urwid-readline 0.12, this allows an exact match on the text in the
box, avoiding situations where eg. spaces in names could give rise to
duplicates of the first words after backspacing from valid or partial
text and autocompleting.

Tests updated (2 xfails removed).

Fixes zulip#776.
@neiljp neiljp force-pushed the 2020-11-08-explore-readline-delims branch from fc614ca to d4cc1b7 Compare November 20, 2020 17:54
@neiljp neiljp added the PR ready to be merged PR has been reviewed & is ready to be merged label Nov 20, 2020
@neiljp neiljp added this to the Next Release milestone Nov 20, 2020
@neiljp
Copy link
Collaborator Author

neiljp commented Nov 20, 2020

I've tidied requirements.txt to reflect the order in setup.py - though we could perhaps just remove requirements.txt?

The previous iteration also didn't update the dependency in requirements.txt and Pipfile, which this now does.

urwid-readline 0.12 has now been released, so this is more easily tested and should work fine.

@neiljp neiljp requested a review from kaustubh-nair November 21, 2020 03:08
Copy link
Member

@kaustubh-nair kaustubh-nair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neiljp This looks good!
We'd also want to incorporate this with the normal typeahead in the compose box?

@neiljp
Copy link
Collaborator Author

neiljp commented Nov 21, 2020

@kaustubh-nair That would be another project/issue, as we can't just have no delimiters like here, as we'd match the entire box again. The logic available in the library may replace some of what we have already, but we may be able to dynamically set the autocomplete-delimiters, as long as we remember to reset them! If you follow what I'm saying, please open an issue to describe what could be done so we don't forget :)

I'll merge this now.

@neiljp neiljp merged commit efd0a6a into zulip:master Nov 21, 2020
@neiljp neiljp mentioned this pull request Nov 22, 2020
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR ready to be merged PR has been reviewed & is ready to be merged size: S [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider spaces in autocomplete
3 participants