DDNet client, filter servers

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
User avatar
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

Post by Lumpy ◐ω◑ »

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.
User avatar
deen
TECHNICAL Team
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

Post by deen »

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.
Chairn
Posts: 399
Joined: Sat Apr 11, 2015 5:05 pm
Player profile: http://ddnet.org/players/Chairn/
Clan: QuintessenZ

Re: DDNet client, filter servers

Post by Chairn »

So basically, you want regexp in those fields?
User avatar
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

Post by Lumpy ◐ω◑ »

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 :D 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 :D
User avatar
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

Post by Ryozuki »

deen 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.
Pressing enter makes you connect to a server, doesn't it? Maybe it's better coma separated
Pathos
Posts: 176
Joined: Wed Jun 17, 2015 4:30 pm

Re: DDNet client, filter servers

Post by Pathos »

How about Google format? You can use quotes for exact phrases, OR for or, etc.
fokkonaut
Posts: 855
Joined: Wed May 13, 2015 5:59 pm
Player profile: https://ddnet.org/players/fokkonaut

Re: DDNet client, filter servers

Post by fokkonaut »

can any1 tell me wherefor the exclude search is actually?
User avatar
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

Post by BannZay »

As for me comma is perfect. It should be simple and undertandable for most users
User avatar
deen
TECHNICAL Team
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

Post by deen »

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.
User avatar
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

Post by Lumpy ◐ω◑ »

Can we disable highlighting? Or implement comma only in exclude string, if highlighting is impossible?
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 9 guests