harbingerofme / DebugToolkit

Debugging commands for Risk of Rain 2. Previously known as RoR2Cheats.
https://thunderstore.io/package/IHarbHD/DebugToolkit/
BSD 3-Clause "New" or "Revised" License
14 stars 8 forks source link

Improved autocompletion #177

Closed SChinchi closed 7 months ago

SChinchi commented 9 months ago

Improve autocompletion to apply for every argument in a command, featuring multiple aliases for each option, matching ordering, and match highlighting. The command signature now also appears above as a reminder while typing. The API is open to other mods to use!

The options prioritise strings that start with the input partial and/or matching as much as possible from the target string. The StringFinder partial matching methods have also been modified to behave similarly. This was previously mentioned as an alternative in #164 but it now makes more sense so both the autocompletion and matching/list methods return results in the same order. The director cards and interactables are an exception because the StringFinder methods use additional aliases compared to the dynamic variables of autocompletion, thereby altering the order of results. This is generally not a big deal since for most partial strings it's only the top results that counts.

Updated list query example listquery