TabCompletion

From BerryTube Wiki
Revision as of 20:42, 29 October 2014 by ShippingIsMagic (Talk | contribs)

Jump to: navigation, search

BerryTube's chat has the ability to tab-complete usernames in chat.  If the Berrymotes plugin is enabled, you can also tab-complete emote names.

Tab-completing usernames

If you're at the start of a line (no text entered yet) then typing one or more characters and then hitting the TAB key will complete out to the username(s) that match.  If there are no matching usernames, nothing will happen when hitting the tab key.  If there is more than one matching username, then it will complete out to the username that most recently talked in chat, and hitting the Tab key more times will cycle through the other possible matches (Shift-Tab does not go backwards through the cycle)

Example #1:

If the only person that's logged in and has a name that starts with "to" (case doesn't matter) is Toastdeib, then if you type "to" at the start of a line

Tabcompletion-before-tab.png

and then you hit the Tab key, it will expand out to "Toastdeib: " (without the quotes)

Tabcompletion-after-tab.png

If there is existing text already in the line you're typing, then the expansion won't include the colon after the name, for instance, if you type "Hi there to" (without quotes)

Tabcompletion-withtext-before-tab.png

and then hit the Tab key, it will complete to "Hi there Toastdeib" (without quotes)

Tabcompletion-withtext-after-tab.png

Example #2: 

If there are multiple logged-in usernames that start with the letter "a" and you type a<tab> at the start of a line

Tabcompletion-multiplematches-before-tab.png

and then hit the Tab key, it will tab-complete out to the one that most recently talked on chat, in this case "Arowid: " since Arowid had most recently spoken:

Tabcompletion-multiplematches-after-tab.png

Continuing to hit Tab will cycle through the other usernames that start with "a" based on the order they most recently spoke in chat.  For instance, hitting Tab a second time here will change the "Arowid: " to "Ataris: " since Ataris was the user that had talked on chat second-most-recently

Tabcompletion-multiplematches-after-second-tab.png

Tab-completing emotes

If you have the Berrymotes plugin enabled, then there is tab completion when you type 2 backslashes and then type the first characters of an emote name.  Similar to the username tab-completion, if are multiple matches, hitting the Tab key multiple times will cycle through them.

Example:

If you wanted to invoke the 'datplot' emote, you could type \\datp

Tabcompletion-emote-before-tab.png

and hit the Tab key.  

Tabcompletion-emote-after-tab.png

Since there are no other emotes whose names start with "datp", hitting Tab more times won't change it.  The server will change the \\datplot to [](/datplot) for you and then the 'datplot' emote will be in the chat message after send it

Tabcompletion-emote-after-tab-expanded.png