-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search from .robot
and .resource
files by default
#70
Comments
To be honest, I'm not sure about this. In the limit, there are probably thousands of extensions a tool could support built-in, but adding more also adds cognitive burden to all users, in a way. Working around such limitations is typically pretty simple with shell aliases e.g. with the |
Oh I was just digging in issues history and found #23 :-) |
I agree there are lot of other file file types that could be supported and it's hard to draw a line somewhere. Personally I'd say it would be best if pss would search all text files by default. IIRC, this wasn't done initially because detecting is a file text if binary can be a bit slow. Is that a valid concern nowadays? If it is, could there be a list of files that aren't searched by default (.jpg, .out, .exe, ...) instead of a list of files that are? Alternatively, simply searching from all files by default could be fine as well. It's unlikely that's so slow or that there would be too many false positives. |
Fat fingers accidentally pressed close in this small screen... I had forgotten about #23. Easier way to limit searching to one extension still sounds good to me. I often use |
This would actually be a pretty convenient default workflow:
|
I still think that the "custom add extension" functionality discussed in #23 is the way to go, and happy to accept PRs that implement that. |
Searching from all (text) files could cause would require an easy opt-out and a major version change. I understand if you consider that too much work. It's easy to alias I fail to see how adding custom extensions would be better than using |
Ultimately Let's say we extend the As for |
I have many times to need to limit search in to certain file type, because it will limit the found results. Example repository might have mixed code from different languages, but not all those file extension are supported by What ever you decide to do, I am an happy user for the |
I've been using pss for years mostly when developing Robot Framework. It would be convenient if our custom extensions
.robot
and.resource
were recognized by pss automatically. If you consider this ok, I'm happy to provide a PR.The text was updated successfully, but these errors were encountered: