-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
The cs is described as follows:
CLI code search tool that understands code structure and ranks results by relevance. No indexing required
I did a little test today. I cloned the Linux repository and started searching some text patterns. However, not some random patterns. I was searching texts which represent types, mostly structures, for example, eventfd_ctx.
To be honest, I am a little bit disappointed.
- I thought that the tool is "smart" enough to automatically discover type definitions and place them the highest in the results. However, type definitions are buried down in the results, and I still have to manually skim through the results. The tool ranks higher local variables definitions than global type definition.
- cs is not aware that the found snippet is a type definition, and it would be nice to extend the printed snippet so that the full definition is displayed. I still have to manually open the file.
These 2 things started me wondering. Maybe I don't understand the idea of cs, and the requirements the tool tries to meet.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels