Skip to content

search results in a tree view #20224

Closed

Description

Hi guys,

I'd really like to have an option to see the search results in a tree view. When working on big JS codebases I find it difficult to see the relevant findings in this flattened list, although in many cases when the search result is small, this flattened list is easier for the eye.
BTW this search panel could be a nice extension point as well, not sure what is an easier thing to do.
I'll try to contribute sometime, but I hope someone would take this ticket soon :)

Thanks guys,
Thomas

PS.: VSCode is awesome, you are awesome, thank you.

Activity

  1. d-akara commented on Feb 8, 2017

    @d-akara

    I think there are many different interesting ways the results could be represented that are useful to different people based on context of their project. I also struggle a bit on large codebases.
    I recently posted some proposals in #19939
    Possibly some of these ideas could be consolidated, or an extension point made so that alternative views could be provided.

  2. Tyriar commented on Feb 9, 2017

    @Tyriar
    Contributor

    I think filtering the explorer would cover this #10026

    /cc roblourens since it's related to search though.

  3. added
    *duplicate
    on Feb 9, 2017
  4. ThomasJuhasz commented on Feb 16, 2017

    @ThomasJuhasz
    Author

    Daniel Imms (@Tyriar) I really dont think the two are the same. The feature you are suggesting is in visual studio and I cant describe how bad I hated it and it wasn't just me. It's nice to have your explorer untouched while searching in another tab. I think the duplicate tag should be taken off, it's not the same.

  5. Tyriar commented on Feb 16, 2017

    @Tyriar
    Contributor
  6. removed
    *duplicate
    on Feb 16, 2017
  7. added
    search
    on Feb 16, 2017
  8. added
    feature-request
    on Feb 16, 2017
  9. jsynowiec commented on Jun 14, 2017

    @jsynowiec
    Contributor

    Daniel Imms (@Tyriar) anything new regarding this FR? Doing an extensive refactor over a large codebase is really inconvenient without an ability to group results by folder, display a tree or any other additional way of further narrowing down search results.

  10. roblourens commented on Jun 14, 2017

    @roblourens
    Member

    We are thinking about how search results will look in a multi-folder situation (#396) and how that will affect the UX, so we probably won't do anything here until then.

  11. seanpoulter commented on Mar 16, 2018

    @seanpoulter
    Contributor

    Let me know if I can help roblourens.

  12. oliviermartin commented on Aug 14, 2018

    @oliviermartin

    I really hope this feature request is still considered. I have been using Eclipse for many years. I tried Visual Studio Code today. And I quite like it and I was considering switching to it!

    ... until I made a search in files of my large project. Impossible to extract a useful results from my search. Using include and exclude filter would not help me.

    And I came back to eclipse. I am following this issue and would give a try again when it would be solved.

  13. davidwindell commented on Sep 19, 2018

    @davidwindell

    Same here, just came to see if there was a way to match Netbeans' behaviour below that allows toggling a file tree:

    deacf906-414f-11e7-9b4f-e880fdece5b0

  14. 57 remaining items

  15. trekhleb commented on Aug 18, 2022

    @trekhleb

    I've played around trying to implement a Search Tree extension here trekhleb/vscode-search-tree.

    However, there are some challenges like:

    • not being able to re-use the VSCode search API (I don't quite like the idea of introducing a custom search engine),
    • extending the existing Search View instead of implementing a new one,
    • etc.

    So the code of the extension is pretty raw, not tested, not optimized, and not ready for publishing yet. But here is a quick demo of what I've ended up with so far:

    I'm pausing the work on the extension for now, since the current issue has been picked up for consideration in #157454. Hopefully, the Tree View will be implemented in the VSCode core. But meanwhile, feel free to check the source code I've got and extend it if you want.

  16. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Sep 23, 2022
  17. grumBit commented on Sep 23, 2022

    @grumBit

    Fantastic Andrea Mah (@andreamah) ! Thank you for adding that in #161022 .

  18. sibitu commented on Sep 23, 2022

    @sibitu

    Thank you :D

  19. added
    on-release-notes
    on Sep 26, 2022
  20. locked and limited conversation to collaborators on Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinsiders-releasedon-release-noteson-testplansearch

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions