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

Exported file names not human friendly #1324

Open
oryx-it opened this issue Oct 6, 2023 · 10 comments
Open

Exported file names not human friendly #1324

oryx-it opened this issue Oct 6, 2023 · 10 comments
Labels
awaiting response Awaiting response from Creator enhancement New feature or request

Comments

@oryx-it
Copy link

oryx-it commented Oct 6, 2023

Description

When I export a diagram to file it's called mermaid-diagram-2023-10-06-055413.png

It costs me a lot of time to rename those files. Idea: what don't you call them using the diagram name? my-daigram-name-2023-10-06-055413.png

Steps to reproduce

Export and diagram to file png or svg

Screenshots

image

Code Sample

No response

Setup

  • Mermaid version: Latest and greatest - I don't know where to find it
  • Browser and Version: Any

Suggested Solutions

No response

Additional Context

No response

@piyushdubey490
Copy link

hello maintainer , can you assign this to me

@sparta-prog
Copy link

Hi, @oryx-it I am interested in working on this issue. Can you provide a bit more details for this issue.

@oryx-it
Copy link
Author

oryx-it commented Oct 7, 2023

I did provide details in the issue description. Which part is unclear?

@sparta-prog
Copy link

The description mentions it is a bug/error. But I think it should be labeled improvement or feature. Generally a bug is deviation from existing behaviour, but in this case it is working as expected. So I think it should be labeled as a feature or improvement.

@RashidSiddiqui2004
Copy link

RashidSiddiqui2004 commented Oct 8, 2023

yes @sparta-prog you're right, it should be labelled as a improvement or feature.

@Yokozuna59 Yokozuna59 transferred this issue from mermaid-js/mermaid Oct 23, 2023
@Yokozuna59
Copy link
Member

Is this issue related to https://mermaid.live or https://mermaidchart.com?

@huynhicode
Copy link
Member

huynhicode commented Oct 24, 2023

@oryx-it Thanks for logging this issue.

On the Mermaid Chart platform, exported diagram names contain the diagram title.

Titled diagram:

Screenshot 2023-10-23 at 5 30 46 PM

Untitled diagram:

Screenshot 2023-10-23 at 5 28 25 PM

@sidharthv96
Copy link
Member

@oryx-it We have recently added diagram name support in MermaidChart as @huynhicode shows above.
I'm not sure how we can handle this in mermaid.live as the diagrams don't really have a name/title. So what value should we put in the export file name?

@sidharthv96 sidharthv96 added enhancement New feature or request awaiting response Awaiting response from Creator and removed Status: Triage labels Nov 9, 2023
Copy link

github-actions bot commented Feb 8, 2024

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale label Feb 8, 2024
@Ryder17z
Copy link

If a ---title--- block is present, couldn't that be used to also configure the filename?

@github-actions github-actions bot removed the Stale label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response Awaiting response from Creator enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants