Skip to content

feat: implement fuzzy level 2 sibling directory search - #2596

Merged
oferchen merged 1 commit into
masterfrom
feature/fuzzy-level-2-sibling-search
Mar 9, 2026
Merged

oferchen merged 1 commit into
masterfrom
feature/fuzzy-level-2-sibling-search

Conversation

@oferchen

@oferchen oferchen commented Mar 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Change --fuzzy from boolean to level 0/1/2: -y = level 1, -yy = level 2
  • Level 2 searches sibling directories for basis files when no match in target dir
  • CLI: ArgAction::Count with .min(2) cap, --no-fuzzy sets level 0
  • Config/builder: fuzzy_level: u8 with convenience fuzzy() -> bool accessor
  • Remote invocation: emits one y per level (level 2 = yy)
  • Receiver: try_fuzzy_match() accepts fuzzy_level and reference_directories

Files changed (15 across 4 crates)

  • cli: arg parsing, command builder, config wiring, tests
  • core: config builder/client, remote invocation
  • transfer: flags parsing, receiver basis search
  • match: fuzzy constant doc update

Test plan

  • cargo fmt --all -- --check passes
  • cargo clippy passes on all affected crates
  • CI: fmt+clippy, nextest, Windows, macOS, Linux musl

@github-actions github-actions Bot added the enhancement New feature or request label Mar 9, 2026
Change fuzzy from bool to u8 level (0/1/2). Level 2 (-yy) searches
sibling directories for basis files when no match found in target dir.
Touches CLI arg parsing (ArgAction::Count), config builder, server
flags, remote invocation, and receiver basis file search.
@oferchen
oferchen force-pushed the feature/fuzzy-level-2-sibling-search branch from b9230db to 3d530f2 Compare March 9, 2026 11:56
@oferchen
oferchen merged commit 1215fbc into master Mar 9, 2026
31 checks passed
@oferchen
oferchen deleted the feature/fuzzy-level-2-sibling-search branch March 9, 2026 12:26
oferchen added a commit that referenced this pull request May 1, 2026
Change fuzzy from bool to u8 level (0/1/2). Level 2 (-yy) searches
sibling directories for basis files when no match found in target dir.
Touches CLI arg parsing (ArgAction::Count), config builder, server
flags, remote invocation, and receiver basis file search.
oferchen added a commit that referenced this pull request May 5, 2026
Change fuzzy from bool to u8 level (0/1/2). Level 2 (-yy) searches
sibling directories for basis files when no match found in target dir.
Touches CLI arg parsing (ArgAction::Count), config builder, server
flags, remote invocation, and receiver basis file search.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant