gitstack

grindlemire/go-tui code browser

549 B markdown 15 lines 2026-04-18 · 7dc88fd raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Directory Tree

A foldable, keyboard-driven directory tree explorer with lazy child loading, scroll-to-cursor behavior, and ancestor path highlighting. Uses reactive state for the cursor, expanded map, and scroll position, with a watcher to keep the cursor visible as you navigate.

![Directory Tree](../../docs/images/guides/21.png)

See the full [Directory Tree guide](https://www.go-tui.dev/guide/directory-tree) for a walkthrough of the implementation.

## Run

```bash
go run . [path]
```

If no path is given, the current directory is used.