Skip to content

fix(zsh): prevent stray input execution after ghq+fzf selection - #64

Merged
paveg merged 1 commit into
mainfrom
fix/ghq-fzf-stray-input
Jan 17, 2026
Merged

paveg merged 1 commit into
mainfrom
fix/ghq-fzf-stray-input

Conversation

@paveg

@paveg paveg commented Jan 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix Ctrl+g (ghq+fzf) executing stray input as commands after selection
  • Execute cd directly instead of using BUFFER + zle accept-line
  • Prevents search filter text (e.g., "Japan") from being run as a command

Test plan

  • Run chezmoi apply && source ~/.zshrc
  • Press Ctrl+g, type search text to filter, select a repo
  • Verify no "command not found" errors after navigation

🤖 Generated with Claude Code

Execute cd directly instead of setting BUFFER and calling zle accept-line.
This prevents search input typed during fzf filtering from being
executed as a command after selection.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@paveg
paveg merged commit f40a46c into main Jan 17, 2026
9 checks passed
@paveg
paveg deleted the fix/ghq-fzf-stray-input branch January 17, 2026 16:31
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