Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Is there a way to add words to Tab completion Default word list directly?
|
Is there a way to add words to Tab completion Default word list directly?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| BC
(4 posts) Bio
|
| Date
| Thu 11 Jul 2013 12:03 PM (UTC) |
| Message
| Is there some way to add to the Tab completion default word list (World properties->Tab completion) straight from the command line?
Likewise, a way to remove words from the list (so they won't stay there across logins)?
Accessing the GUI menu is very awkward when playing, and I'd like to have an easily manageable tab completion list (that doesn't require the word to have appeared recently). | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 12 Jul 2013 07:01 AM (UTC) |
| Message
| You could write a small alias that gets the current defaults:
defaults = GetAlphaOption ('tab_completion_defaults')
Add your new one to the list (after a newline) and then save it:
SetAlphaOption ('tab_completion_defaults', defaults)
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| BC
(4 posts) Bio
|
| Date
| Reply #2 on Sat 13 Jul 2013 04:52 PM (UTC) |
| Message
| | Ok, thanks, but how do I actually add a new word to 'defaults' (I'm a Lua/MUSHclient newbie)? I tried different variations of 'defaults=defaults .. %1' in the alias script, but obviously that's not the correct syntax. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Sat 13 Jul 2013 11:29 PM (UTC) |
| Message
| Something like this:
<aliases>
<alias
match="^new default (\w+)$"
enabled="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>
defaults = GetAlphaOption ('tab_completion_defaults')
defaults = defaults .. " %1"
SetAlphaOption ('tab_completion_defaults', defaults)
ColourNote ("orange", "", "Added new tab-completion default: %1")
</send>
</alias>
</aliases>
 |
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
|
Now type:
new default supercalifragilisticexpialdocious
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
15,730 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top