-
Notifications
You must be signed in to change notification settings - Fork 464
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
Make aliases useful for deprecating commands #3342
Comments
Taking a look at this. |
do you need any help on this one? I could do this part to unblock the claim rename PRs |
Hello. Could aliases be made for the commands "show" and "hide" so they include "console" or "terminal" on their name, which would better reflect what exactly is shown or hidden, making finding those commands easier? |
Apologies - I had some personal matters to deal with -- I will dig back into this. |
Almost ready to push this PR -- one Q:
What kind of documentation are you suggesting here? |
in the |
My implementation doesn't seem to incur this requirement, as I'm not actually changing the I'll push the PR to ensure my solution meets your needs. |
In order to have the alias appear in the autocomplete list, as well as the output of |
- Make aliases available to lua - Ensure alieses typed in `gui/launcher` show proper help entry - Enhance help entry with aliased command information - added a simple set of tests
- Make aliases available to lua - Ensure alieses typed in `gui/launcher` show proper help entry - Enhance help entry with aliased command information - added a simple set of tests
- Adjusting to take in a table / vector for "addAlias"
- Adjusting to take in a table / vector for "addAlias"
I did not recognize that we wanted the alias as well to be listed - I was only solving for showing the appropriate help when an alias was detected. I will dig into this this evening. |
The current alias system is intended to allow a player to make a shorter version of a frequently used command and/or parameter list. However, aliases have recently begun to be used as a way to allow an old name for a renamed/deprecated tool to function. The idea is that players who are used to typing the old name will still be able to do so, and renamed tools that can be
enable
d will still beenable
able via their old name.Aliases, however, are not well integrated into the rest of the system and do not really provide players and script writers with a good overall experience when they are used to make deprecated names "still available". Here are some ideas for improving the player experience for aliases:
gui/launcher
when the alias is in the commandline. It would also be useful to prepend the help text with the alias expansion so the player can see exactly what they will be running, though this is not required if it ends up being too difficult.gui/launcher
item,helpdb
should display useful help text if an alias is given as an entry (this will allow help text to appear in the hotkeys logo popup menu if an alias is given a hotkey, for example). document that players should pokehelpdb
to reindex after modifying aliases (we probably don't want to do this automatically since aliases tend to be updated in batches (i.e. in init files) and we already reindex on world load/unload)allowreqscript
to find the correct script if an alias is named (e.g.reqscript('unforbid')
would redirect toreqscript('claim')
)allowrequire
to find the correct module if an alias is named (e.g.require('plugins.oldname')
would redirect torequire('plugins.newname')
)Edit: I think the ROI on those last two might be insufficient to warrant implementation.
The text was updated successfully, but these errors were encountered: