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

Add SearchResults Provider #205

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add SearchResults Provider #205

wants to merge 2 commits into from

Conversation

konapun
Copy link

@konapun konapun commented Jul 23, 2021

I'm migrating from airline to galaxyline and in the process created a custom provider function for fetching live search results and displaying them in the same manner as airline does:

Screen Shot 2021-07-22 at 10 00 29 PM

In this example I'm searching for the text "search term" and vim has found 3 results and I have the second match highlighted.

The SearchResults provider behaves in the following way

  • If highlight search results (v:hlsearch) is not active, return nothing
  • If hlsearch is active but there are no results for the search, return nothing
  • Else, return a results string formatted in the same way as airline, as /search_term [current_result/max_results]

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

Successfully merging this pull request may close these issues.

1 participant