Skip to content

0.17 phase 5 PR A: static alias file parser#141

Open
StanMarek wants to merge 3 commits into
masterfrom
feat/static-alias-parser
Open

0.17 phase 5 PR A: static alias file parser#141
StanMarek wants to merge 3 commits into
masterfrom
feat/static-alias-parser

Conversation

@StanMarek
Copy link
Copy Markdown
Owner

Summary

  • Parses ~/.zshrc / .zshenv / .zsh_aliases / oh-my-zsh/custom/*.zsh
    directly; falls back to zsh -c alias only on empty result.
  • Narrows cache fingerprint to files the parser actually reads.

Test plan

  • cargo test -p gc-suggest alias (23 existing + 2 new)
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt --check
  • Manual: edit ~/.zshrc, add alias gco='git checkout',
    confirm gco <TAB> routes through git-checkout spec.

References: docs/plans/0.17-polish-and-trust/5-macos-smart-completions/plan.md Tasks 1-2

StanMarek added 3 commits May 27, 2026 21:23
Reads ~/.zshrc, .zshenv, .zsh_aliases, oh-my-zsh/custom/*.zsh, etc.
Falls back to 'zsh -c alias' only when the static path is empty.
Conservative: skips multi-line aliases and 'alias -g/s/L' forms.
@StanMarek StanMarek changed the title feat(gc-suggest): static alias file parser 0.17 phase 5 PR A: static alias file parser May 27, 2026
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.

1 participant