bitwes / Gut

Godot Unit Test. Unit testing tool for Godot Game Engine.
1.86k stars 101 forks source link

Make Run test shortcuts also Show GUT Panel first #631

Open hsandt opened 4 months ago

hsandt commented 4 months ago

Versions

What versions of Godot do you want to use this feature in? Godot 4.2+

The Feature

When the GUT Panel is closed, the custom shortcuts to run tests (Run All, Run Current Script, etc.) do not work (worse, shortcuts like Shift+Alt+R will print an R in the code editor that you must then remove...), reducing the advantage of shortcuts tremendously.

I need to first either click on the GUT panel, or use the shortcut to toggle the Panel.

It would be more convenient if the Run shortcuts checked for the GUT panel, and showed it if not already shown, first.

bitwes commented 4 months ago

This would be good. I think to do this, menu items will have to be added. Right now I'm just setting shortcut properties on buttons (which is why they don't work when the panel is not visible). I can't remember if that was just the first thing I found or if there was some other issue.