Is there a way to add words to Tab completion Default word list directly?

Posted by BC on Thu 11 Jul 2013 12:03 PM — 4 posts, 16,555 views.

#0
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).
Australia Forum Administrator #1
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)
#2
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.
Australia Forum Administrator #3
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>



Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.



Now type:


new default supercalifragilisticexpialdocious