HaikuArchives / Paladin

Paladin is an open source integrated development environment (IDE) for Haiku OS
MIT License
64 stars 20 forks source link

Advanced search in source files #302

Open adamfowleruk opened 4 years ago

adamfowleruk commented 4 years ago

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

adamfowleruk commented 4 years ago

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?

diversys commented 4 years ago

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

adamfowleruk commented 4 years ago

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.