Skip to content

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

License

Notifications You must be signed in to change notification settings

k4a-l/obsidian-dirtreeist

Repository files navigation

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.