Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Search only in specific node types like files or classes #78

Closed
egraether opened this issue May 17, 2016 · 11 comments
Closed

Search only in specific node types like files or classes #78

egraether opened this issue May 17, 2016 · 11 comments
Assignees
Labels

Comments

@egraether
Copy link
Contributor

Add filter syntax to search bar which allows for only searching within files, classes, etc.

@egraether egraether changed the title Search only in files or classes Search only in specific node types like files or classes May 17, 2016
@egraether
Copy link
Contributor Author

+1 by mail

@egraether
Copy link
Contributor Author

Comment from duplicate issue #339

Something like :enum foo - would find all enums which contain foo . :record foo woudl find all structs and classes which match foo.

@egraether
Copy link
Contributor Author

+1 by reddit

@egraether
Copy link
Contributor Author

+1 by mail
e.g. use modifier strings: @Class, @method, @function

@deepankarsharma
Copy link

Can we raise the priority for this? Lack of usable search means I dont use SourceTrail inspite of paying for it.

@egraether
Copy link
Contributor Author

Yes, it's in high demand and shouldn't be too hard to add. I think I can make it work.

@egraether egraether self-assigned this Sep 1, 2017
@deepankarsharma
Copy link

How about generalizing this to an API/SDK to interact with the underlying graph. If the following two APIs existed then the tool would be very useful for me

a. Visitation API for the graph for a given project. User can subclass some visitor and override things like visit_function, visit_struct, visit_file, visit_namespace etc. API would be applied top down. Ie if an overridden visit_file returns false for a given filename then nothing from that file would be visited.
b. Ability to contribute QWidget based views to the GUI

@egraether
Copy link
Contributor Author

Implemented with 2017.3.32

There are filter keywords for symbol types within the search autocompletion list now. E.g. selecting class will add this filter to the search bar and search results will only show classes. Filters can also get combined, e.g. to search within all function and method symbols.

I'm closing this issue now, but opened other issues for the additional suggestions:
#460 for Visitation feature request.
#461 for UI-Plugin feature request.

@egraether
Copy link
Contributor Author

Now available in release 2017.3.48

@deepankarsharma
Copy link

Is there some way to enter into filter mode purely by typing text? I can pick filter from dropdown but things of form class: foo dont work.

@egraether
Copy link
Contributor Author

  • type cla
  • press tab to autocomplete to class:
  • type foo

You will only see classes containing the letters foo now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants