-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Problem Statement
Instead of having to instances one application per workspace, I would like to be able to switch workspaces from withing the app.
Proposed Solution
When the application loads we will prompt the user to enter the workspace they want to use. This will start the nxlsclient and start processing events.
However, the user at any moment can add a new workspaces by using the corresponding keybinding. This will prompt the user to enter the new workspace they want to use, and then send a changeworkspace request to the nxlsclient with the new workspace.
Also, the user will be able to switch added workspaces at any moment.
Everytime a user switches workspaces, the application will restore the previous UI state. For example, if the user was half way filling a generator form, when returning to that workspace, the view will be the form and the form will be filled with the data that was there when the user left.
Alternatives Considered
- The user can switch workspaces but the state is not restored.
- The use cannot switch workspaces at all, they have to restart the application for each workspace.
Example Usage
workspace.AddNew(params)Additional Context
- We can store the workspace info in the
.nxfolder or create our own. - We can use a sqlite db to store the workspace info, or just use a simple json file.
Would you be willing to contribute this feature?
- Yes, I'd be willing to submit a PR for this feature
- No, I'm requesting someone else implement this feature