Skip to content

[bug]: git diff "$(fzf)" evaluates automaticallyΒ #78

@YodaEmbedding

Description

@YodaEmbedding

Describe the bug

git diff "$(fzf)"
  1. Automatically evaluates fzf when going backwards in history.
  2. The highlighting of the quotes is wrong.

No, I am not insane. (I hope.)

Steps to reproduce

rm ~/.zshrc
echo 'source "$HOME/.local/share/zinit/plugins/zdharma-continuum---fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"' > ~/.zshrc
zsh
mkdir tmp
cd tmp
git init
git diff "$(fzf)"
# Type: <C-c><Up><Space><C-c><Up><Space>
# wat
git diff "$(echo why is every keypress doubling)"

Expected behavior

Not 1 and 2.

Screenshots and recordings

No response

Operating System & Version

darwin23.0 | apple | x86_64 | arm64 | arm64 arm

Zsh version

zsh 5.9 (x86_64-apple-darwin23.0)

Terminal emulator

iTerm2 with xterm-256color

If using WSL on Windows, which version of WSL

None

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions