feat: Projects are git repositories found by cdd scan, with no Root or Kind - #58
Merged
Merged
Conversation
…o cdd scan Projects are now any directory holding .git, found by walking the dirs passed to cdd scan (home by default). The Picker lists History alone, dropping Stale Visits, and exact-match accepts a name or trailing path. Refs #57
…start, ahead of its name The filter now matches the directory and name as shown, so highlights line up with the row. Refs #57
… repository A .git that git cannot read shows as unknown instead. Refs #57
…tional A leftover root or layout = "grouped" fails with why it was removed. Exclude patterns match a name, or with a "/" an absolute path, and expand a leading ~. Refs #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Breaking change, for v0.3.0. cdd drops Root and Kind. A Project is any directory holding a
.git(a directory or a file), at any depth.cdd scan [dir...](home by default) walks the disk and seeds History with absolute paths. The Picker lists History only, drops Stale Visits (.gitgone), and never walks the disk.include_hidden.exclude: gitignore-style. A pattern with/matches the absolute path (~expanded); any other pattern matches the directory name.cdd <query>jumps straight to the one Project whose name, trailing path or whole path matches.listis the default. Each row shows its muted~/…/parent/, trimmed from the start when narrow, and the filter matches the parent as well as the name. The not-a-repo status is gone; an unreadable.gitshows as unknown (!).config.tomlis optional. A leftoverrootorpicker.layout = "grouped"fails with a message explaining the removal.cdd scan.Intermediate commit
f9bf163(History uses absolute paths) leaves the scan and jump tests red until74567f9. Every other commit builds and passes.Ticket
Closes #57
Checklist
go test ./...passes. The exception isinternal/shellTestScriptExecution/fish, which fails identically onmainin a sandbox without/dev/tty.