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

Mid sentence autocomplete. #134

Closed
mattvv opened this issue Sep 30, 2015 · 4 comments
Closed

Mid sentence autocomplete. #134

mattvv opened this issue Sep 30, 2015 · 4 comments

Comments

@mattvv
Copy link

mattvv commented Sep 30, 2015

Hey guys,

Trying to get a simple autocoplete going, and it's working well so far for results at the start of a sentence.
For example:

List: [ @matt, @ALL, @hello ]

If I type "@" then the whole list appears, if I type '@m' then @matt appears.
However If I type 'Hello @'. I want to display the whole list, to replace that last @. Like an autocomplete. Is there any way to enable this functionality?

@thehuey
Copy link
Contributor

thehuey commented Sep 30, 2015

You're asking for a "Select All Matching" functionality? You'd have to add
that as a custom option to the top and have a function to populate all
matches.

On Wed, Sep 30, 2015 at 11:41 AM, Matt Van notifications@github.com wrote:

Hey guys,

Trying to get a simple autocoplete going, and it's working well so far for
results at the start of a sentence.
For example:

List: [ @matt https://github.com/matt, @ALL https://github.com/all,
@hello https://github.com/hello ]

If I type "@" then the whole list appears, if I type '@m
https://github.com/m' then @matt https://github.com/matt appears.
However If I type 'Hello @'. I want to display the whole list, to replace
that last @. Like an autocomplete. Is there any way to enable this
functionality?


Reply to this email directly or view it on GitHub
#134.

@mattvv
Copy link
Author

mattvv commented Oct 1, 2015

Basically I want the same @ functionality in this comment box. Whenever i'm in the textbox here and you type @ it populates a typehead, like @thehuey .

Currently with react typeahead it's only doing it if the @ is the first letter in the textarea

@fmoo
Copy link
Owner

fmoo commented Oct 1, 2015

Hey Matt. It sounds like you want something more like how mentions work on Facebook and Twitter.

This typeahead is built as a general solution to support a single value typeahead entry (Typeahead) or a multi-value typeahead entry (Tokenizer). Neither really supports intermixing tokens with text.

You could probably build what you want with pieces of this library, but this isn't functionality we support out of the box today.

@mattvv
Copy link
Author

mattvv commented Oct 6, 2015

Thanks guys, No worries!

@mattvv mattvv closed this as completed Oct 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants