Search on extension
quasarea opened this issue · comments
Maybe it would be possible to introduce similar to fn parameter for extension, like:
fe - File extension. E.G. fe:cs
I'm fighting with unknown types and it would be great to be able to determine scope of each
Certainly it is possible.
So one of the issues with this is that the number of extensions grows as a massive rate. I implemented this on searchcode.com and you run into the situation of what to do with things like Dockerfiles which have no extension. Do you treat the whole thing as an extension?
What about files with multiple periods in them, for example typings.d.ts
Its something I am looking at doing. What might work better though is that if #158 was implemented and if you could easily see what files are categorised as "Unknown" and easily add them to be classified correctly.
Actually the reversed filename is a dammed good idea.
reindexing...
still I would rather see it like something complementary to fn: functionality
surely working only in filename scope rather then on whole code,
maybe highlighting reverse results in some way, so you actually that it met reverse condition.
maybe even merging results from both searches, together under certain condition.
if asterisk is in the middle, you know prefix and postfix already, so such search is not needed,
but it its at the end, it means you don't know one of those. so you could merger results for both
filename*
would produce results forfilename.test
andtest.filename
I will play a bit with this as I may talk nonsense
Agreed but I would need a solution to the above. Its something that if I can get a good solution to I will implement.