Skip to content

Implement multiple workspaces workflow #16

@NachoVazquez

Description

@NachoVazquez

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 .nx folder 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions