Skip to content

Simple text search for tern  #1046

Open

Description

@ApekshaBhosale

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?

Activity

  1. othree commented on May 13, 2021

    @othree
    Collaborator

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

  2. ApekshaBhosale commented on May 14, 2021

    @ApekshaBhosale
    Author

    @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.

  3. changed the title [-]Simple rext search for tern [/-] [+]Simple text search for tern [/+] on May 16, 2021
  4. othree commented on May 17, 2021

    @othree
    Collaborator

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

  5. ApekshaBhosale commented on May 17, 2021

    @ApekshaBhosale
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions