Dirtreeist

approved

by kasahala

Render a directory Structure Diagram from a Markdown lists in codeblock.

32 stars6,878 downloadsUpdated 1mo agoMIT
View on GitHub

Obsidian Dirtreeist

Render a directory Structure Diagram from a markdown lists in codeblock.

Caution

This plugin relies on the functionality of the dirtreeist library. Please send feature requests there.

Features

Basic

If you write a code block as follows,

```dirtree
- /components
	- App.tsx
	- App.css
- config.json
- /utils
	- converter.ts
	- parser.ts
```

It is rendered as follows,

├─ /components
│ ├─ App.tsx
│ └─ App.css
├─ config.json
└─ /utils
  ├─ converter.ts
  └─ parser.ts

Other

Sequential listings

- a
  - b
  - c
- d

- 1
  - 2
    - 3
      - 4
├─ a
│ ├─ b
│ └─ c
├─ d
└─ 1
  └─ 2
    └─ 3
      └─ 4

Another element comes in between

- a
  - b
  - c
- d

sometext

- 1
  - 2
    - 3
      - 4
├─ a
│ ├─ b
│ └─ c
└─ d

└─ 1
  └─ 2
    └─ 3
      └─ 4

Settings

See Description of options.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.