Zulip Chat Archive
Stream: general
Topic: Tell loogle to exclude something from search result
Jz Pan (Nov 29 2023 at 00:52):
Is it possible to tell loogle to exclude something from search result? For example, I want to search something mentioning IntermediateField.adjoin and Membership.mem, but not Fintype. It is natural to input the search condition IntermediateField.adjoin, Membership.mem, -Fintype. But it doesn't recognize this pattern. Is there any way to do such search?
Joachim Breitner (Nov 29 2023 at 08:12):
No, not yet. It’s certainly doable, I am basically trying to assess how often the need comes up, and whether it’s worth it the additional complexity for users learning the query language.
Joachim Breitner (Nov 29 2023 at 08:14):
I noted the request at https://github.com/nomeata/loogle/issues/6
Kenny Lau (Nov 03 2025 at 17:17):
I've run into this just now, I want to search for instances of using RingHomClass to construct data, so I wanted to type: RingHomClass, !⊢ (_ : Prop)
Kenny Lau (Nov 03 2025 at 17:19):
now I was able to do it in a more complicated way:
- Search for
RingHomClassandRingHomClass, ⊢ (_ : Prop) - Compare the difference using the following:
- paste each result in https://regexr.com/ and list occurrences of
.+📋 - paste each result into each side of https://www.diffchecker.com/text-compare/
- compare
Joachim Breitner (Nov 03 2025 at 19:11):
In this case, would
RingHomClass, ⊢ (_ : Type _)
serve you well? (Granted, this may probably miss things that are in Sort u for arbitrary u. Not sure.)
Kenny Lau (Nov 03 2025 at 19:13):
aha, that does work
Last updated: Dec 20 2025 at 21:32 UTC