Skip to content

Feature request: alternatives in groups #2751

@nsw42

Description

@nsw42

Thanks for the great tool.

It'd be useful to be able to have alternative sections within a group. This is especially common when wanting to show if/else decisions within a sequence diagram. Something like:

shape: sequence_diagram

actor: Actor

if the sky is falling: {
  actor -> actor: run for the hills
} else: {
  actor -> actor: sit in the sun
}

This would render as a single group, with a separator between the two halves.

It'd be even better if it were to support more than 2 alternatives. (Other text-based image sequence diagram generators I've used have been limited to exactly 2, which is occasionally limiting)

The only workaround I can currently find is to have the two blocks as separate consecutive groups, which doesn't adequately convey that only one can occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions