zedeus / nitter

Alternative Twitter front-end
https://nitter.net
GNU Affero General Public License v3.0
9.87k stars 527 forks source link

Add AND/OR selection to search query builder #116

Open gloschtla opened 4 years ago

gloschtla commented 4 years ago

It appears, that nitter.net only uses AND instead of OR, whenever I use more than one term for the query.

zedeus commented 4 years ago

Supporting it properly is difficult due to the design constraints. You can manually type in the advanced search like you'd do on twitter

jtagcat commented 4 years ago

You also can't do only or. Without adding a switch, or a literal cats "with dogs" OR "sleeping" (this would add 'reserved' words, and you can't search for quotes without escaping (or instead of quotes use something like STARTOR and FINISHOR).

Right now, the and behaviour is preferred, since you can always (Nitter is lightweight, 10 tabs is easy to run!) just run the term multiple times, in multiple tabs at once (and can't do it the other way round).

zedeus commented 4 years ago

gloschtla is talking about how Nitter constructs search queries from the checked filters/excludes, not the ability to manually use AND/OR. cats "with dogs" OR "sleeping" works as you would expect.

zedeus commented 2 years ago

Solution: https://github.com/zedeus/nitter/issues/217#issuecomment-657185995