Skip to content

feat: allow recurse to take a depth - #232

Open
vladkens wants to merge 1 commit into
SuperCuber:masterfrom
vladkens:recurse-depth
Open

vladkens wants to merge 1 commit into
SuperCuber:masterfrom
vladkens:recurse-depth

Conversation

@vladkens

Copy link
Copy Markdown

recurse now also accepts a number: how many directory levels to expand before linking the remaining directories as a whole. false and true keep their current meaning.

This is useful when the target root is shared with other tools. For example, coding agents keep skills in their own directories and install skills there themselves, so the root has to stay a real directory with one symlink per managed skill:

"agents/skills" = { target = "~/.agents/skills", type = "symbolic", recurse = 1 } # Codex
"claude/skills" = { target = "~/.claude/skills", type = "symbolic", recurse = 1 } # Claude Code
~/.claude/skills/
├── telegram -> ~/dotfiles/agents/skills/telegram
├── discord  -> ~/dotfiles/agents/skills/discord
└── installed-by-agent/   # stays untracked

The wiki page for recurse would need a line about the numeric form.

Fixes: #230

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

Successfully merging this pull request may close these issues.

[FEATURE] Support configurable recursion depth for directory targets

1 participant