TabCompleteMagic [v2.0.0] [API 4.0.0]

TabCompleteMagic

TabCompleteMagic allows executing commands using tab completion! Why? Because why not, that’s why!


There are two ways to use this plugin - a dedicated /tab command, and ‘invasive mode’ Both work the same way, but invasive mode doesn’t require prefixing a command with /tab.

Github: GitHub - Aaron1011/TabCompleteMagic

Downloads: Releases · Aaron1011/TabCompleteMagic · GitHub

Examples:

Invasive mode

Let’s say you want to repeatedly execute the command /tp repeatedly. First, type out the command /tp @p ~5 ~ ~, which will teleport the nearest player (yourself) up 5 blocks. Do not press <Enter>.

Now, press the <Tab>. Two special options will appear - DENY and EXECUTE. Pressing tab after selecting DENY does nothing - it only exists to prevent you from exectuing a command accidentally. To run the command, you’ll need to select EXECUTE by pressing <Tab>, just like you’d select a normal tab-complete option.

Finally,add a space to finalize your command. Now, each time you press <Tab>, you’ll be teleported 5 blocks into the air. Try it!

‘/tab’ mode

If you don’t want TabCompleteMagic to modify the tab completion of other commands in this was, you can disable it. Simply set invasive-complete to false in the config.

With invasive mode disabled, you’ll need to use the /tab command to use the features of TabCompleteMagic (note that this command is available even with invasive-complete turned on).

The /tab command works exactly the same as invasive mode - the only difference is that the entire command must be prefixed with /tab . In the earlier example, the command would change from /tp @p ~5 ~ ~ EXECUTE :TAB: to /tab tp @p ~5 ~ ~ EXECUTE :tab: (where :tab: represents pressing the <TAB> key).


Commands:

/tab - Allows running commands by pressing <Tab>.This works the same as invasive mode, but doesn’t modify the tab completion of any other commands.

Permissions:

tabcompletemagic.command.reload - gives access to the /tabreload command.

6 Likes

Looks awesome! :slight_smile:

Nice job @Aaron1011

Release v1.0.1:

Tested on SpongeVanilla 1.8.9-4.1.0-BETA-274

Changes:

  • Fixed command not executing properly when spaces were present after EXECUTE
  • Made command always run if the tab-completed string ends in EXECUTE

Release v2.0.0:

Tested on SpongeVanilla 1.8.9-4.1.0-BETA-274

Changes:

  • Changed plugin id from com.aaron1011.tabcompletemagic to tabcompletemagic This is a breaking change, and requires the config file to be manually migrated.
  • Made EXECUTE and DENY strings configurable

In our continuing effort to phase out the Plugin Releases category, this thread is being locked because the plugin is already listed on Ore.

Check it out: https://ore.spongepowered.org/Aaron1011/Tab-Complete-Magic