codeswing icon indicating copy to clipboard operation
codeswing copied to clipboard

Suggestion: "New Swing in New Window"

Open OliverJAsh opened this issue 1 year ago • 2 comments

Firstly, thank you for creating and sharing this awesome project. ❤️

The "New Swing…" command creates the swing inside the current editor window. This takes me by surprise every time. (I frequently use CodeSwing to create reduced test cases when I'm in the middle of working on something, so I don't want it to rearrange my current window.)

A few ideas to address this:

  • Modify the command to open a new window.
  • Create a new command that opens a new window ahead of creating the swing.
  • Add a setting.

What do you think?

OliverJAsh avatar Jul 14 '24 17:07 OliverJAsh

Hey! Yeah I could add a new command, and that might be the simplest solution? Since it wouldn't change the existing behavior.

If I added a "New Swing in New Window" command, would that work for you?

Here's how I'm thinking this command would work:

  1. It creates a new temporary directory for the swing
  2. It prompts you with the existing "new swing" flow, which allows selecting a template. And when selected, the swing is stored into the temp directory
  3. It then opens the temp directory in VS Code

lostintangent avatar Jul 14 '24 17:07 lostintangent

That would be perfect!

OliverJAsh avatar Jul 14 '24 17:07 OliverJAsh