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

how to go to next/previous live_grep results directly #460

Closed
goodpaperman opened this issue Feb 1, 2023 · 8 comments
Closed

how to go to next/previous live_grep results directly #460

goodpaperman opened this issue Feb 1, 2023 · 8 comments
Labels
educational Issues that contain useful content enhancement New feature or request

Comments

@goodpaperman
Copy link

goodpaperman commented Feb 1, 2023

Feature description

when I search a word, e.g. 'on_operation', there maybe many results,
although I can preview them, sometimes I need goto the place to see the detail and do some edit,
the next time I want to go to the next search result, I must reopen telescope live_grep and type in 'on_operation', and step to the destination item
图片

Is there any short-cuts to let me browse during the results list ?
in old style I can do this by the quickfix windows:
图片
I can step up and down by simple Ctrl+N/P, and search in result, etc..
I can close quickfix by :cclose, and open it with :copen, when reopened, same content showed,
list can be iterated again,untill I do a new search

anything to play the same role like quickfix in nvim ?

Additional information

No response

@goodpaperman goodpaperman added the enhancement New feature or request label Feb 1, 2023
@ayamir
Copy link
Owner

ayamir commented Feb 1, 2023

https://github.com/kevinhwang91/nvim-bqf is a great plugin, maybe we can add it after #458 merged.

@Jint-lzxy

This comment was marked as outdated.

@Jint-lzxy
Copy link
Collaborator

Wait a minute, looks like I misunderstood this issue. @goodpaperman If you mean to "search the search results under current project", then I would recommend you have a look at:

  1. :h telescope.defaults.history
  2. telescope-smart-history.nvim

@ayamir Shall we add this feature to the base config?

@goodpaperman
Copy link
Author

two function on telescope live_grep is needed:

  1. remember the lastest search results
  2. go forth/back the result list and remember the current position

@Jint-lzxy
Copy link
Collaborator

Jint-lzxy commented Feb 7, 2023

@goodpaperman Yes, this is what provided in #460 (comment). Did you try that?

@goodpaperman
Copy link
Author

get it, I will try later

@ayamir
Copy link
Owner

ayamir commented Feb 10, 2023

Did you solve it?

@goodpaperman
Copy link
Author

issue can close, I will try later and reopen it if not ok, thanks a lot~

@CharlesChiuGit CharlesChiuGit added the educational Issues that contain useful content label Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
educational Issues that contain useful content enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants