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

Simple text search for tern #1046

Open
ApekshaBhosale opened this issue May 13, 2021 · 4 comments
Open

Simple text search for tern #1046

ApekshaBhosale opened this issue May 13, 2021 · 4 comments

Comments

@ApekshaBhosale
Copy link

I am writing autocomplete for codeMirror and i have options such as API, API.data, API.isLoading, API.data.list so rather than just providing API and then getting next values i show both ways. But when i write API.data, i want API.data and in suggestion API.data.list (ie just text match). I am not sure if this is possible today coz i wasn't able to find it anywhere. Can someone please guide me with this?

@othree
Copy link
Collaborator

othree commented May 13, 2021

Sorry, I don't understand what you are talking about. Can you provide a demo or describe more details.

@ApekshaBhosale
Copy link
Author

ApekshaBhosale commented May 14, 2021

@othree sure! sorry for being so clear about problem.

below is before behaviour for autocomplete using tern

before.mov

below is after i made modification for the options being provided for autocomplete

after.mov

So now when i search with 'API.data', autocomplete should show up everything which has 'API.data' as string because 'API.data' might have more properties eg API.data.list. API.data.isLoading etc. Is this possible today? I went through the docs but couldn't find it.

@ApekshaBhosale ApekshaBhosale changed the title Simple rext search for tern Simple text search for tern May 16, 2021
@othree
Copy link
Collaborator

othree commented May 17, 2021

Yes, AFAIK the child properties of an object still possible to provide such information.

@ApekshaBhosale
Copy link
Author

@othree can you please elaborate on that? or can tell me how do this?

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

2 participants