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

Save search results #17920

Closed
charlestac opened this issue Dec 30, 2016 · 25 comments
Closed

Save search results #17920

charlestac opened this issue Dec 30, 2016 · 25 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) search Search widget and operation issues
Milestone

Comments

@charlestac
Copy link

I love VSCode, but the search result doesn't work all that well sometimes...

For example, it could be great that user can save the details of search results of a folder, such as support copy or export function in search.

  • VSCode Version: 1.8.1
  • OS Version: Microsoft Windows 6.1.7601

Steps to Reproduce:

  1. Click 'Search' button
  2. Enter some keywords and trigger the search
  3. A list of results appears, but user cannot save that results.
@dbaeumer dbaeumer added the search Search widget and operation issues label Dec 30, 2016
@sandy081
Copy link
Member

sandy081 commented Jan 3, 2017

@charlestac May I know how it helps in saving search results?

@charlestac
Copy link
Author

@sandy081 I have a very basic scenario which is logging the search results as part of a document. I can copy the search results out from Notepad++ and proceed further actions (i.e. diff/log/search), so I hope this function could be available as well in VSCode.

@sandy081 sandy081 added the feature-request Request for new features or functionality label Jan 4, 2017
@sandy081 sandy081 added this to the Backlog milestone Jan 4, 2017
@ShimShamSam
Copy link

Please add this. I've been tasked with determining the scope of rewriting a certain core feature of our code and I want to show my boss just how much work is required. Copying the search results would help me show this.

@d-akara
Copy link

d-akara commented Apr 6, 2017

There are multiple uses of being able to capture search results in a document.

  1. Ability to use the results for some type of communication to team members.
  2. Ability to do some post processing on results. For example, search all uses of some types of tokens. Then post filtering to find all unique values.
  3. Ability to change the view representation. If the results were captured as CSV for example, sorting on columns by file name, folder, number of results etc.

@ChenWenBrian
Copy link

Please add a context menu with "Save" or "Export".
Simply export all items in a log file, or export them in CSV or excel file would be better.
suggested columns:
file path, file name, matched count, match lines, match snippet, etc...

@bhat-ganesh
Copy link

This is a much needed feature.

@iamdevlinph
Copy link

We currently have a use case to find the files that has a certain snippet. Yeah, the search works but it's kinda tiring to type in all the files that have the snippet.

@lllama
Copy link

lllama commented Sep 11, 2017

Having search results in a separate buffer a'la Sublime would be very useful. Maintaining a history and having new searches appended to the buffer would also be great.

Appreciate that this is a nice-to-have though. Possible extension candidate?

@enly1
Copy link

enly1 commented Oct 7, 2017

This is the one feature that drives me mad for vs code not having - its the only time i've needed to return to notepad++.

Doing search, having full search line matches in a text window to allow more searches and filtering, generating new text file output is a real boon for diagnosis and troubleshooting logs while fixing bugs.

@jpk67
Copy link

jpk67 commented Nov 29, 2017

I was also surprised there was no way to even copy the search result text to the clipboard. It's very common in large refactoring projects to start by locating all the affected files, and then transferring the list to a spreadsheet for further analysis and progress tracking. Sure we can do the search with other tools outside VS Code, but that's a pain.

Of course, you can do this in emacs ... :-)

@sandy081 sandy081 removed their assignment Dec 4, 2017
@EugeneN
Copy link

EugeneN commented Dec 6, 2017

This is indeed a killer feature missing. Why not have a multi-tab search results, like IntelliJ does? Maybe with an option to pin certain search results (or maybe even hierarchical searches).

ideafind

@d-akara
Copy link

d-akara commented Dec 6, 2017

There are so many different ways people would like search results presented.

I would strongly prefer that an API be exposed so that extension authors can make all the flavors of search results that the community wants.

@EugeneN
Copy link

EugeneN commented Dec 6, 2017

Sure, an API would be even better - I do not insist on having this in the core :-)

@ashclarke
Copy link

Export to JSON would be 👌🏻

@lodi-g
Copy link

lodi-g commented Feb 23, 2018

I admit being able to save search results would be pretty useful.

@alanaasmaa
Copy link

I would love to see a also recend search results, it would help me to search two things and compare them.

I think sublimetext had it when i came from it. I just noticed i miss it.

@mfchk
Copy link

mfchk commented Mar 21, 2018

+1

1 similar comment
@LiPengfei19820619
Copy link

+1

@tkane2000
Copy link

You should also consider putting the search results in an editor like Sublime Text does. Benefits: keeps a history of your search results, allows you to edit them (ex: delete a chunk you don't care about), lets you copy, select paths to files and copy, etc, etc. It's very simple, but very useful.

@jmo84
Copy link

jmo84 commented Mar 27, 2018

I wish I could have the search result panel exported to a tab so I could work with multiple result sets that were based on different search queries. Having to reenter search queries and closing out the same unwanted matches wastes time I could be using to fix code. If not a tab, please create the ability to save queries in my settings.json and let me recall a query (and all its filters) using a dropdown box.

@alanaasmaa
Copy link

@jmo84 i like this approach very much !

@ejohn20
Copy link

ejohn20 commented Mar 28, 2018

+1. Please add this feature. It will make code reviews / security reviews much easier to do inside of VS Code. Example, finding all instances of some pattern, copying out of the search window, and putting into a ticket / code review comment.

@jkone27
Copy link

jkone27 commented Mar 29, 2018

+1 definitely useful, export search results

@roblourens
Copy link
Member

Implemented in #42120

@roblourens roblourens added *duplicate Issue identified as a duplicate of another issue(s) and removed feature-request Request for new features or functionality labels Apr 4, 2018
@charlestac
Copy link
Author

Excellent job! Thank you everyone!

@vscodebot vscodebot bot locked and limited conversation to collaborators May 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) search Search widget and operation issues
Projects
None yet
Development

No branches or pull requests