Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Use the yaml new document --- to create multiple outputs with a single input. #307

Open
EvilMustacheTwirl opened this issue Feb 7, 2023 · 2 comments

Comments

@EvilMustacheTwirl
Copy link

It would be great to be able to create multiple outputs (especially for larger/messy setups) that can be easily self referenced.

Using yaml's --- to tell wireviz that this is a new output but still connected and maybe adding a full document Title, Note, Legend, Filename, etc. tag similar to the metadata options would make it easier to produce cleaner looking outputs. If no filename tag is added wireviz could add an increment-er to the inputs file name.

@kvid
Copy link
Collaborator

kvid commented Mar 30, 2023

Thank you for suggesting this new feature. I've not worked much with the parsing part of WireViz, myself, but the pyyaml library should be able to parse ---. However, I don't know how much coding is needed to obtain what you ask for. Are you motivated to give it a try creating some code for such a feature yourself? See Submitting a new Pull Request. I assume there will be some questions about how such a feature should handle certain edge cases, and this issue is the proper place to ask questions like that...

@martinrieder
Copy link

martinrieder commented May 30, 2024

Just adding the following idea here for future reference. The suggested link to "somewhere else" could be implemented across the boundaries of such a multi-document YAML file:

@kvid wrote:

An alternative use case for such a syntax (leading or trailing arrow) could be to display an arrow indicating the wire continues somewhere else (in a large diagram or in another diagram). It would probably make sense to support a text label like this:

# single wire that continues somewhere else
-
 - <-- Common signal ground
 - WIRE
 - --> Diagram B

in #270 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants