socialview icon indicating copy to clipboard operation
socialview copied to clipboard

Handle mentions with spaces

Open mohsinnaqvi opened this issue 7 years ago • 8 comments

How do i be able to handle mentions with spaces

Input: @moh Suggestions: "mohsin abbas", "mohsin naqvi", "syed mohsin" after selection it breaks at space.

If I use the displayName and userName prop, Firstly it shows in view which is not cool

All I want is it somehow after selection it shows as one mention including space.

Thanks

mohsinnaqvi avatar Oct 10 '17 06:10 mohsinnaqvi

please help me ..? Firstname Lastname how to give white space as like Suggestions: "mohsin abbas", "mohsin naqvi", "syed mohsin"

rahulvis avatar Oct 25 '17 06:10 rahulvis

That is an expected behavior since I thought it is generally accepted that username can't have spaces, is it not?

hanggrian avatar Dec 07 '17 11:12 hanggrian

Its a great piece of code you have written, very help. thanks. but there are few platform which allow usernames with spaces while tagging like facebook.

On 12/07/2017 04:52 PM, Hendra Anggrian wrote:

That is an expected behavior since I thought it is generally accepted that username can't have spaces, is it not?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hendraanggrian/socialview/issues/25#issuecomment-349945745, or mute the thread https://github.com/notifications/unsubscribe-auth/AYuHUxvg3aVVDp7fzcNry73L_B-WR9nXks5s99GXgaJpZM4PzbeR.

mohsinnaqvi avatar Dec 07 '17 12:12 mohsinnaqvi

Hi @hendraanggrian I think what @mohsinnaqvi is trying to say is like the mention from facebook where in it displays the full name of the user. Would that be possible? Thanks in advance.

arjaywalter avatar Apr 11 '18 06:04 arjaywalter

@hendraanggrian Can you please let me know this library handling mentions with spaces or not still ? Thanks

AhmadIzaz avatar Mar 19 '20 05:03 AhmadIzaz

@hendraanggrian Can you please let me know this library handling mentions with spaces or not still ? Thanks

doanngoctu95 avatar Jun 30 '21 09:06 doanngoctu95

I still don't completely understand what the goal is here. But I'll make an attempt: when a hashtag symbol is typed and the adapter pops out, you guys want to search by display name instead of username?

I'm sorry in advance because I don't use Facebook nowadays, I have no idea how they work.

hanggrian avatar Jun 30 '21 19:06 hanggrian

@hendraanggrian yes, can you support me about this issue or suggest me sth to resolve this?

doanngoctu95 avatar Jul 01 '21 06:07 doanngoctu95

You may create a custom regex to catch mention strings that can have whitespace, and set it using textView.setMentionPattern(String). Unfortunately, I'm not a regex expert and can't help you much.

hanggrian avatar Aug 29 '23 19:08 hanggrian