CMD+ - Execute Custom Commands

As for as I know, that isn’t possible. A shortcut must be set through Studio settings.

I went ahead and made the textbox capture input as soon as the node is created.


Fixed this bug.

1 Like

Update 2:

  • Able to use plugin without a shortcut
  • Plugin now auto handles closing of Chain
  • Various bug fixes
2 Likes

Thank you!

I also fixed the bug and spent like 2 hours learning how to use github properly to make a pull request :joy:

Does this plugin work with multiple objects selected?

This would help a ton in those cases where you need to rename multiple objects at once.

Of course! You can either select multiple objects before executing a cmd or you can select multiple objects by the same name. Check out the SelectionNode for more info.

1 Like

Updated the user interface of CMD+.

Some other things:

dependency bug
  • [importance: large]
    When a custom command has missing dependencies CMD+ crashes
    [fix]: check to make sure command has all dependencies
needs documentation
  • [importance: medium]
    When a user changes a command after CMD+ is already running, CMD+ won’t run the changed version unless you reload script.
    [fix]: I don’t think there is a fix. Maybe write in the docs “when you change a command you need to press “Reload Script””.

I submitted PR requests for the above 2 issues

ui frame problem
  • [importance: medium]
    When switching nodes, the UI frame jumps around from the left to the right and up and down. This is because the position of each node is calculated for every single node.
    [fix]: only calculate position for the command node, and all nodes after take the same position as the command node regardless of mouse position.
recursive search for CMD+ folder
  • [importance: small, quality-of-life]
    [suggestion]: use recursive search to find the “CMD+” folder in ServerStorage, that way it doesn’t have to be parented directly under ServerStorage.
    [how-to]: This is as simple as FindFirstChild("CMD+",true)
idea suggestion
  • [importance: very small, quality-of-life]
    [suggestion]: Add a flag if the user opened CMD+ via shortcut or via PluginToolbarButton, then if it was via shortcut you can put back in the move-mouse-away-from-uiframe-to-close. That way you get best of both worlds.

I came here from the Quick Rename post, so I mainly got this for renaming, but I’m sure I’ll find some custom commands I need to make as well. The plugin looks looks and feels really nice. I did notice a few issues for my workflow:

  1. I can’t set a shortcut for a specific command. I know it’s only a matter of selecting the command after opening CMD+, but when I’m renaming a bunch of different things, it gets tedious to keep selecting the rename command. It would be nice if I could skip right to the command I want via shortcut.
  2. When I rename by name, it selects stuff from everywhere. However, I pretty much never want to rename stuff under “PluginGuiService”. Honestly, it probably makes sense to only search in one service at a time. If I’m renaming stuff in “Workspace” I probably don’t want to also rename things in “StarterGui” that just happen to have the same name.
  3. Another small thing, it would be useful if the “insert” command had defaults. So for name it would default to the object type, the number would default to 1, and the parent would default to whatever is selected if something is selected. Then I could just hit “enter” when the option pops up to get the default. These are the values I want 90% of the time, so it’s annoying to have to choose them every time.

Thanks for reading this long post, and again, nice work on this plugin!

Very interesting ideas. For the shortcut, my original plan was to add a custom key bind shortcut for the commands but I ended up never adding it in. I’ll go ahead and make this a feature. For the rename by name, maybe an extra node that would ask whether or not to search in the immediate service parent should be sufficient. Finally, using default values is an amazing feature and will definitely improve the overall workflow of using the plugin.

Thanks for your suggestions. I’ll start adding the features immediately.

1 Like

Update:

  • Added the capability to set a shortcut key combination for each command
  • Added the capability to set a default value for input nodes
  • Fixed some errors with the API
  • Other fixes