Implemented

Add sessions to a workspace

avatar

I wanted to see to use WorkSpaces to have a workspace with a number of sessions making it easier to open. I created the workspace but I do not see any option to add my open sessions to it. Be it any or even all.
In the workspace editor where I would think it would show the list of sessions part of the workspace is empty. There does not seem to be an option to add new ones.
And on the sessions themselves I do not see any option to add them to a workspace.
And when I try to open the workspace I get the error that the Workspace with ID ... could not be found.

I'm sure I'm missing something on how to add, but just can't see what it is. :-)

Version is 2023.1.12.0 which is stating to be the latest available.

All Comments (5)

avatar

Hi,

The difference between the workspace feature and the playlist feature is that the workspace save the position (in the split view pane) of opened entries, and restore it when launching said workspace. To create the workspace, you need to have your sessions opened and arranged in the way you want to save them and then uses the Ribbon -> File -> Workspaces -> New Workspace... button to create and save said workspace. Attached to this post, you can find a video demonstrating this.

If you want to save a new workspace from an undocked window, there is a button for this too:



Please, do tell me if you need more information.

Best regards,

Xavier Fortin

UndockedNewWorkspace.png

Workspaces.mp4

avatar

I just watched the video.
the issue is whereas in the video when you create a new workspace it then shows a list of all the sessions, on mine it is just showing a blank list. Nothing there even although I have multiple, about 6, SSH sessions open on the main window split into 2 horizontal lanes.

avatar

OK, so I think I figured I out but not sure if this is expected behavior or a bug.

If I just open Terminals (local) and try to create a new workspace then I get: The workspace is invalid.
If I use Quick Connect to open sessions to hosts and create a new workspace then it works however the "Session Name" is showing blank.
forum image

And if I then save this and later try to open it I get the error that the workspace session with ID xxx could not be found.
forum image

If I create a new workspace based on sessions I originally created, then it shows those in the Session. But it is showing them with the name as variables instead of resolving the names as what would be seen on the tabs themselves.
forum image

But, if I then open it that works.

Even although creating a new workspace is not that hard, it would be great if it were possible to add new sessions or remove sessions from an existing workspace. Removing could be done within the editor. Adding for example by right-clicking on the tab or so, then have like "Save in Workspace" and in there choice of existing or new?

Thx.

avatar

Hi,

I'll admit that the workspace feature was implemented way before the Local Terminal feature, so I'm not surprise it doesn't work for it. Workspaces function by saving IDs of the entries it needs to reopen later and Local Terminal tabs are not entries and therefore don't have proper IDs (which most likely explain your issue).

I wouldn't expect Quick Connect entries to work either for the same reason as the Local Terminal, even beyond just the name not showing. Quick Connect entries are dynamically created just before being started and have a random ID that definitely does not exist in the tree.

As for adding or removing from a Workspace, it's a bit more complicated than that. Once a Workspace is "opened" there is no further tracking than that, so we don't really have any way of knowing what Workspace is currently opened. What you can do is just overwrite the Workspace you want to modify. Just open it, start/close the entries you want added/removed, position them like you want and save a new workspace but use the name of the workspace you want to override.

Best regards,

Xavier Fortin

avatar

I've opened a ticket, and started working on making this a bit more clear. I'll add the support for Local Terminal (since we don't need any entry information). We'll also make it so a new workspace cannot be created if any of the panel is invalid (i.e. containing no valid tabs).

Best regards,

Xavier Fortin