Paladin icon indicating copy to clipboard operation
Paladin copied to clipboard

Advanced search in source files

Open adamfowleruk opened this issue 5 years ago • 3 comments

Extension of #268 . Search for function and variable definitions, declarations, and calls. May require language server support first from feature #294 .

adamfowleruk avatar Dec 22 '19 17:12 adamfowleruk

From original #268 . Stored here as it requires full text indexing of source files. @diversys I've concentrated on matching file names as this was in an earlier video. In the one you posted he appears to be searching for matches of file content too. I could change the feature so if the search text starts with a " character it will search text content instead of file name. Is this desirable?

adamfowleruk avatar Dec 23 '19 08:12 adamfowleruk

I think he follows QtCreator feature here. Did he use " character in that video to search text content? I'm not sure.

diversys avatar Dec 23 '19 08:12 diversys

I'm not sure either. I'm thinking of a syntax that will by default run the most efficient search. That will default to file names within the project rather than text. I'm thinking if it starts with * then its a file pattern. E.g. .cpp|.h, if it starts with "then search for a phrase, if ::then a function name perhaps, and so on. Ideally to be extensible.

adamfowleruk avatar Dec 23 '19 09:12 adamfowleruk