Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to reefdoc are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- `.herdr` directories are no longer treated as noise: they now appear in the
file tree and are included in search and live-reload watching, alongside the
existing `.allium` and `.claude` exceptions.

## [0.12.0] - 2026-07-04

### Added
Expand Down
2 changes: 1 addition & 1 deletion internal/server/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func isViewable(name string) bool {
// listing or searching: dependency/VCS/hidden directories that are never of
// interest to a markdown viewer and would otherwise dominate a large tree.
func isNoiseDir(name string) bool {
return name == "node_modules" || (strings.HasPrefix(name, ".") && name != ".allium" && name != ".claude")
return name == "node_modules" || (strings.HasPrefix(name, ".") && name != ".allium" && name != ".claude" && name != ".herdr")
}

// ListDir returns the immediate children (non-noise directories and viewable
Expand Down
5 changes: 3 additions & 2 deletions internal/server/tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func TestListDir_AlliumFilesAndDir(t *testing.T) {
writeFile(t, filepath.Join(root, "spec.allium"))
writeFile(t, filepath.Join(root, ".allium", "schema.allium"))
writeFile(t, filepath.Join(root, ".claude", "settings.json"))
writeFile(t, filepath.Join(root, ".herdr", "worktrees", "repo", "README.md"))
writeFile(t, filepath.Join(root, ".git", "config"))

nodes, err := ListDir(root, "")
Expand All @@ -85,8 +86,8 @@ func TestListDir_AlliumFilesAndDir(t *testing.T) {
for _, n := range nodes {
names = append(names, n.Name)
}
// .allium and .claude dirs listed, .git hidden; spec.allium listed as file
want := []string{".allium", ".claude", "spec.allium"}
// .allium, .claude and .herdr dirs listed, .git hidden; spec.allium listed as file
want := []string{".allium", ".claude", ".herdr", "spec.allium"}
if !reflect.DeepEqual(names, want) {
t.Fatalf("got %v want %v", names, want)
}
Expand Down