Skip to content
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

Combining (adding, subtracting) multiple language scopes #104

Closed
alexpovel opened this issue Aug 16, 2024 · 1 comment · Fixed by #72 · May be fixed by #170
Closed

Combining (adding, subtracting) multiple language scopes #104

alexpovel opened this issue Aug 16, 2024 · 1 comment · Fixed by #72 · May be fixed by #170

Comments

@alexpovel
Copy link
Owner

Currently, as of 07f4eb9, we can ask for e.g. srgn --python strings, meaning a single language scope. It would be neat to support passing multiple, which are OR'd together:

srgn --python strings --python comments 'thing'
# Alternate syntax
srgn --python strings comments

and also some logic for subtraction, which would work like normal set logic:

srgn --python class --not-python methods 'whatever'

which would match all contents of Python class bodies expect for those of methods.

As a feature, this wouldn't be too complex and unlock a whole new dimension of querying (while remaining dead simple).

@alexpovel
Copy link
Owner Author

Will implement 'subtraction' at a later date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant