Skip to content
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

Autocomplete mention with spaces between first and last names #925

Closed
ahmedabuamra opened this issue Feb 15, 2021 · 4 comments
Closed

Autocomplete mention with spaces between first and last names #925

ahmedabuamra opened this issue Feb 15, 2021 · 4 comments
Labels
area: autocomplete bug Something isn't working missing feature: user A missing feature for all users, present in another Zulip client
Milestone

Comments

@ahmedabuamra
Copy link
Contributor

Mentioning a user with first name OR last name only works fine, but when trying to autocomplete mentioning them with full name, the autocomplete suggest users based on the last name only (assuming putting the cursor at the end of the last name) while it should use the words before the last name in suggestions too.

@avats-dev
Copy link
Collaborator

Can anyone help me out how this could be resolved?

@avats-dev
Copy link
Collaborator

Hii, any updates or tips on this?

@Ezio-Sarthak
Copy link
Member

Ezio-Sarthak commented Mar 20, 2021

@avats-dev Apologies for the slow reply. I'm wary you've understood the issue correctly?

I think the issue description might need some improvements, as the autocomplete doesn't seem to show any results for full names?

Hop in anytime in #zulip-terminal stream on czo. Feel free to discuss any issue/bug/problems etc in the community :)

@neiljp
Copy link
Collaborator

neiljp commented Mar 20, 2021

@avats-dev Are you asking as a user or a potential contributor?

The solution may involve dynamically updating the delimiter which urwid-readline provides, but that's just an idea based on the approach I took to resolve this with autocomplete with spaces in the stream header, which is a lot simpler than general autocomplete in a body of text.

Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Apr 22, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces.

This is a potential WIP commit, and would possibly be amended as
per the feedback.

Fixes zulip#925 as a side effect.
Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Apr 27, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes.

Note that the delims specifed are default ones, except that whitespace
is ignored, so as to make it function properly in autocompletes.

This is a potential WIP commit, and would possibly be amended as
per the feedback.

Fixes zulip#925 as a side effect.
Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Apr 29, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes.

Note that the delims specifed are default ones, except that whitespace
is ignored, so as to make it function properly in autocompletes.

This is a potential WIP commit, and would possibly be amended as
per the feedback.

Fixes zulip#925 as a side effect.
Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Jul 17, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes.

Note that the delims specifed are default ones, except that whitespace
is ignored, so as to make it function properly in autocompletes.

This is a potential WIP commit, and would possibly be amended as
per the feedback.

Fixes zulip#925 as a side effect.
Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Jul 17, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes.

Note that the delims specifed are default ones, except that whitespace
is ignored, so as to make it function properly in autocompletes.

This is a potential WIP commit, and would possibly be amended as
per the feedback.

Tests amended (comments) and added. The existing tests for
space-containing prefixes are justified with this commit.

Fixes zulip#925 as a side effect.
Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Jul 21, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes.

Note that the delims specifed are default ones, except that whitespace
is ignored, so as to make it function properly in autocompletes.

This is a potential WIP commit, and would possibly be amended as
per the feedback.

Tests amended (comments) and added. The existing tests for
space-containing prefixes are justified with this commit.

Fixes zulip#925 as a side effect.
@neiljp neiljp added the missing feature: user A missing feature for all users, present in another Zulip client label Jul 24, 2021
Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Jul 25, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes. Note that the delims specifed are
default ones, except that whitespace is ignored, so as to make it
function properly in autocompletes. The default completer delims
for message compose are stored in the constant
`DELIMS_MESSAGE_COMPOSE`.

The commit also fixes a bug in which a user isn't able to use
autocompletes for space-containing texts.

Tests amended (comments) and added. The existing tests for
space-containing prefixes are justified with this commit.

Fixes zulip#925 as a side effect.
Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Jul 26, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes. Note that the delims specifed are
default ones, except that whitespace is ignored, so as to make it
function properly in autocompletes. The default completer delims
for message compose are stored in the constant
`DELIMS_MESSAGE_COMPOSE`.

The commit also fixes a bug in which a user isn't able to use
autocompletes for space-containing texts.

Tests amended (comments) and added. The existing tests for
space-containing prefixes are justified with this commit.

Fixes zulip#925 as a side effect.
Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Jul 30, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes. Note that the delims specifed are
default ones, except that whitespace is ignored, so as to make it
function properly in autocompletes. The default completer delims
for message compose are stored in the constant
`DELIMS_MESSAGE_COMPOSE`.

The commit also fixes a bug in which a user isn't able to use
autocompletes for space-containing texts.

Tests amended (comments) and added. The existing tests for
space-containing prefixes are justified with this commit.

Fixes zulip#925 as a side effect.
Ezio-Sarthak added a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Jul 30, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes. Note that the delims specifed are
default ones, except that whitespace is ignored, so as to make it
function properly in autocompletes. The default completer delims
for message compose are stored in the constant
`DELIMS_MESSAGE_COMPOSE`.

The commit also fixes a bug in which a user isn't able to use
autocompletes for space-containing texts.

Tests amended (comments) and added. The existing tests for
space-containing prefixes are justified with this commit.

Fixes zulip#925 as a side effect.
neiljp pushed a commit to Ezio-Sarthak/zulip-terminal that referenced this issue Jul 31, 2021
This small commit explicitly sets delimiter for msg_write_box, in
order to support autocompletion of text with whitespaces, for both
private and stream write boxes. Note that the delims specifed are
default ones, except that whitespace is ignored, so as to make it
function properly in autocompletes. The default completer delims
for message compose are stored in the constant
`DELIMS_MESSAGE_COMPOSE`.

The commit also fixes a bug in which a user isn't able to use
autocompletes for space-containing texts.

Tests amended (comments) and added. The existing tests for
space-containing prefixes are justified with this commit.

Fixes zulip#925 as a side effect.
@neiljp neiljp closed this as completed in 531209a Jul 31, 2021
@neiljp neiljp added this to the Next Release milestone Jul 31, 2021
@neiljp neiljp added the bug Something isn't working label Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: autocomplete bug Something isn't working missing feature: user A missing feature for all users, present in another Zulip client
Projects
None yet
Development

No branches or pull requests

4 participants