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

Ability to export diagrams #55

Closed
blacktau opened this issue Feb 10, 2024 · 2 comments
Closed

Ability to export diagrams #55

blacktau opened this issue Feb 10, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@blacktau
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It would be useful to export the diagrams as they are rendered in obsidian out to the file system

Describe the solution you'd like
It would be useful to add a menu item to the the right click to allow exporting.
the format of the export would be determined by the rendering being performed (i.e. plantuml-svg = svg, plantuml = png etc)

Additionally it would be useful to be able to configure an export location in the settings int he following way
if the setting is blank (this would be the default) the file will be output in the same folder was the .md file.
if the setting starts with a leading / then the path would be relative to the vault root.
if the setting does not have a leading / then the path would be relative to the path for the .md file.
if the folder determined by the above does not exist then it should be created

the file name could be extracted from the title of the plantuml diagram (i.e. text following the @startuml)
if no title is specified for the diagram then the filename will be based on a combination of the .md filename and the current date and time.

Describe alternatives you've considered
The alternative is a manual process of using the 'copy image' function and pasting into an image editor. this is less than ideal.

Additional context
I have created a fork with the changes in here: https://github.com/blacktau/obsidian-plantuml but did not wish to create a PR for the changes until a discussion has been had around the proposal.

@blacktau blacktau added the enhancement New feature or request label Feb 10, 2024
@joethei
Copy link
Owner

joethei commented Feb 10, 2024

Feel free to send a PR, it's a good idea.

joethei added a commit that referenced this issue Mar 4, 2024
Adding Ability to export diagrams - Issue #55
@joethei
Copy link
Owner

joethei commented Sep 4, 2024

forgot to close this when merging your PR.

@joethei joethei closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants