DDNet client, filter servers
- Lumpy ◐ω◑
- Posts: 243
- Joined: Wed Dec 16, 2015 10:53 am
- Location: Russia
- Player profile: https://ddnet.org/players/Lumpy-32--9680--969--9681-/
DDNet client, filter servers
Hi, in DDNet client we can filter servers with "search" and "exclude" fields. Can you rework a bit this fields behavier? So if there are several words, the filter will search not the whole phrase, but words. For example if I want to exclude DDNet novice and solo servers, I'll type in field "novice solo" and filter will exclude servers, that contains word "novice" or word "solo".
Thanks.
Thanks.
- deen
- Posts: 3579
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: DDNet client, filter servers
good idea, but it should still support whole phrases, maybe split them up by pressing enter and show each phrase in a bubble. So for your use case you would write novice<ENTER>solo, if someone is searching for "foo bar" they could just keep writing it as they do now. Everyone who likes programming is welcome to write this. We accept PRs on DDNet's github. If you need help, post here or on DDNet irc.
-
- Posts: 399
- Joined: Sat Apr 11, 2015 5:05 pm
- Player profile: http://ddnet.org/players/Chairn/
- Clan: QuintessenZ
Re: DDNet client, filter servers
So basically, you want regexp in those fields?
- Lumpy ◐ω◑
- Posts: 243
- Joined: Wed Dec 16, 2015 10:53 am
- Location: Russia
- Player profile: https://ddnet.org/players/Lumpy-32--9680--969--9681-/
Re: DDNet client, filter servers
deen, splitting by enter is good idea or we can use comma
I've managed to write in code filtering for words (as I described) and its working, but I don't know C++ at all and did this with google help
so I think my code can be not so good.
Chairn, not really regexp, just wanted to exclude from server list novice and brutal maps


Chairn, not really regexp, just wanted to exclude from server list novice and brutal maps

- Ryozuki
- Posts: 1748
- Joined: Tue Feb 24, 2015 7:28 am
- Location: Catalonia
- Player profile: http://ddnet.org/players/Ryozuki/
- Mapper profile: http://ddnet.tw/mappers/Ryozuki/
- Clan: Unique
- Website: https://edgarluque.com
- Discord: Ryozuki#2188
Re: DDNet client, filter servers
Pressing enter makes you connect to a server, doesn't it? Maybe it's better coma separateddeen wrote:good idea, but it should still support whole phrases, maybe split them up by pressing enter and show each phrase in a bubble. So for your use case you would write novice<ENTER>solo, if someone is searching for "foo bar" they could just keep writing it as they do now. Everyone who likes programming is welcome to write this. We accept PRs on DDNet's github. If you need help, post here or on DDNet irc.
Re: DDNet client, filter servers
How about Google format? You can use quotes for exact phrases, OR for or, etc.
-
- Posts: 855
- Joined: Wed May 13, 2015 5:59 pm
- Player profile: https://ddnet.org/players/fokkonaut
Re: DDNet client, filter servers
can any1 tell me wherefor the exclude search is actually?
- BannZay
- Posts: 837
- Joined: Mon May 04, 2015 12:26 am
- Location: Ukraine
- Player profile: http://ddnet.org/players/BannZay
- Mapper profile: http://ddnet.tw/mappers/BannZay/
Re: DDNet client, filter servers
As for me comma is perfect. It should be simple and undertandable for most users
- deen
- Posts: 3579
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: DDNet client, filter servers
I implemented comma, but then I noticed that string highlighting (the found text turning blue) becomes quite challenging with it. Not sure if we want that, actually.
- Lumpy ◐ω◑
- Posts: 243
- Joined: Wed Dec 16, 2015 10:53 am
- Location: Russia
- Player profile: https://ddnet.org/players/Lumpy-32--9680--969--9681-/
Re: DDNet client, filter servers
Can we disable highlighting? Or implement comma only in exclude string, if highlighting is impossible?
Who is online
Users browsing this forum: No registered users and 10 guests