warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.81k stars 351 forks source link

ghq/peco doesn't work #4882

Open windhorn opened 3 months ago

windhorn commented 3 months ago

Dupe Check

Describe the bug

ghq/peco doesn't work

To reproduce

brew install ghq
brew install peco

Add ~/.zshrc

function peco-src () {
  local selected_dir=$(ghq list -p | peco --query "$LBUFFER")
  if [ -n "$selected_dir" ]; then
    BUFFER="cd ${selected_dir}"
    zle accept-line
  fi
  zle clear-screen
}
zle -N peco-src
bindkey '^]' peco-src

Expected behavior

I want to be able to move github repositories using ghq/peco

Screenshots

No response

Operating system

MacOS

Operating system and version

14.4.1(23E224)

Shell Version

zsh 5.9 (x86_64-apple-darwin23.0)

Current Warp version

v0.2024.04.30.08.02.stable_01

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

davidmelvin commented 3 months ago

Hi @windhorn , what error do you get when trying to use ghq and peco in this way? Does it work without the bindkey setup? Note https://github.com/warpdotdev/Warp/issues/537

dannyneira commented 3 months ago

@windhorn any more info you can provide on the error you see? Also please note if those apps require bindkey to work as noted #537