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

Feature request: Add "Find All in Current Document" button #197271

Closed
noam-zur opened this issue Nov 2, 2023 · 2 comments
Closed

Feature request: Add "Find All in Current Document" button #197271

noam-zur opened this issue Nov 2, 2023 · 2 comments
Assignees

Comments

@noam-zur
Copy link

noam-zur commented Nov 2, 2023

A single-click method to get list of all search-results in current file.

Suggested Solution
(1) Add "New Search Editor" button to the "Search in File" panel.
(2) When pressed, it will open a new Search Editor window. it will be already configured for 1. single file search (the origin file) 2. the same search query.
example mock:
image

Rational
I find same-file searches to be very common, and often I would like to see all results in a list (e.g. when looking for multiple errors in a log file).
Using the whole-project search panel is not a adequate solution since:

  1. it is cumbersome to configure for single file - need to copy the file path, expand the search options and than put it into the "include" field (even though there is an extension add a command to that).
  2. I often like to keep the whole-project search configuration intact, while keep searching in single files.

Reference
Notepad++ has a similar feature named "Find All in Current Document": Lists all the search-results in a new Search results window; only searches the active document buffer.

@noam-zur
Copy link
Author

noam-zur commented Nov 2, 2023

After an additional search, I see a similar request exists from 2016: #14836
Having said that, I would like my suggested solution to be considered, since it seems pretty simple (using the existing "search editor" feature).
Will it get attention if I just copy it into the original thread?

@noam-zur
Copy link
Author

noam-zur commented Nov 5, 2023

[duplicated] closing this issue - will continue discussion in #14836

@noam-zur noam-zur closed this as completed Nov 5, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants