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

easy paste index to plantuml wbs #343

Closed
mattjastremski opened this issue Feb 15, 2022 · 1 comment
Closed

easy paste index to plantuml wbs #343

mattjastremski opened this issue Feb 15, 2022 · 1 comment

Comments

@mattjastremski
Copy link

Is your feature request related to a problem? Please describe.
Limited in ability to use index in other tools / plugins - eg to visualize hierarchies

Describe the solution you'd like
A breadcrumb command (or option for existing commands) that renders the output of "copy a local index" / "copy a global index" in the format that the plantuml wbs diagram expects, eg:

* Business Process Modelling WBS
** Launch the project
*** Complete Stakeholder Research
*** Initial Implementation Plan
** Design phase

or

+ Business Process Modelling WBS
++ Launch the project
+++ Complete Stakeholder Research
+++ Initial Implementation Plan
++ Design phase

(with or without double square brackets)

so that when pasted into a plantuml codeblock (with @startwbs and @endwbs), the hierarchy is rendered as a static image.
image

Describe alternatives you've considered
Some type of script that replaces the existing output with this type of notation.

Inspired by the issue at HEmile/juggl#116

@SkepticMystic
Copy link
Owner

Hey @mattjastremski , thanks for the detailed issue.
For now, I recommend using a Templater script or something similar to do this.
Something like:

  1. Split index into lines
  2. Check how many spaces there are before the bullet point on each line
  3. Replace those spaces with the same number of *'s
  4. Merge the lines back together into a string

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

2 participants