blakepell / AvalonMudClient

A Windows MUD client written in C#/WPF for .NET 8.
Other
31 stars 7 forks source link

Word completion with shift+tab #46

Closed blakepell closed 3 years ago

blakepell commented 3 years ago

From Joules:

I am used to the shift + tab for word auto-completion based on history and was sad to see it was not a feature. This feature helps me to quickly complete the full name of the character or mob I am targeting or interacting with. The setup was nice, and I am excited to try it out.

blakepell commented 3 years ago

Note: ctrl + tab currently auto completes the closest found alias. This should behave similarly but continue to cycle as it's pressed if more possible completions are found.

blakepell commented 3 years ago

There is a new setting AutoCompleteWord. If turned on, the client command box will start collecting all words used. Then when shift + tab is used the editor will get the current word the cursor is on (or partial word) and then do a lookup for all words that starts with the word the cursor is on (ordered by latest used). The rationale behind requiring it to be turned on by the user is performance (let those that want it opt-in).

image

image

blakepell commented 3 years ago

Closing this issue, the update will part of the next public release.