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

Tab autocompletion in chat #28

Closed
DorpsGek opened this issue Dec 14, 2005 · 7 comments
Closed

Tab autocompletion in chat #28

DorpsGek opened this issue Dec 14, 2005 · 7 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

egladil opened the ticket and wrote:

Sacro said something on irc about wanting nick tab completion so I made a little patch that autocompletes player names at the start of the chat message.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/28
@DorpsGek
Copy link
Member Author

DorpsGek commented Mar 3, 2006

sulai wrote:

Would be nice if this could be extended to the town's names. In Multiplayer you often refer to locations near some town.


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment135

@DorpsGek
Copy link
Member Author

TrueBrain wrote:

I took up again this patch, made it compatible with latest revision, and made some changes:

Compare is case insentive (truelight resolves to TrueLight)
When more than one person start with the same letters, it loops through it (Player1 and Player2 are there, pressing p will give Player2)

For the rest some minor code-style updates. Nothing fancy.

Nice patch!

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment426

@DorpsGek
Copy link
Member Author

TrueBrain wrote:

Btw, it might be nice if it indeed resolves to town-names and station-names too.. although it might be slightly frustrating. Maybe assign an other key to do that?


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment427

@DorpsGek
Copy link
Member Author

TrueBrain wrote:

New version, now when you are at the end of the options, it shows your original text again. More IRC-alike.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment428

@DorpsGek
Copy link
Member Author

TrueBrain wrote:

Yet an other new version, it now also loops through empty text (so just pressing when you opened the chatbox, makes it cycle through all names). Also, this is a bit more logic :)

Sorry about the many patches shortly after eachother ;)

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment429

@DorpsGek
Copy link
Member Author

TrueBrain wrote:

And again, an update. This time 2 new things:

Auto-complete town-names (first players, then towns)
Allow auto-complete inside text. For example: Hi P, will resolve to 'Hi Player', if someone is named Player ;)

One possible 'bug', it doesn't check the cursor place, it just works on the last word of the chat. Like anyone will ever notice... ;)

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/28#comment431

@DorpsGek
Copy link
Member Author

TrueBrain closed the ticket.

Reason for closing: Implemented

Added to SVN. Tnx for the great idea :)


This comment was imported from FlySpray: https://bugs.openttd.org/task/28

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) enhancement labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant