Popclip doesn't show up in Zed's terminal

PopClip works fine in Zed, but the popup won’t show up when selecting something in Zed’s terminal:

Wonder if this a bug?

Definitly an incompatibility. It doensn’t work for me in Zed terminal either – there’s somerthing odd about Zed terminal UI that PopClip can’t penetrate. I’ll need to look into it.

2 Likes

Thanks. I thought PopClip will do a copy? But in this case it will lead to losing focus so probably not a good idea..

It’s because the accessibility API in Zed is reporting to PopClip that the copy menu action is not available

I see..

… indeed and it’s not actually the Accessibility API to blame. The Zed app disables its Copy menu item when the focus is on the Terminal area. Even though pressing ⌘C actually works. It must be implementing ⌘C detection it in some non-standard way rather than through the normal responder chain. Probably to support proper handling of keypresses in Terminal processes, they just noped out of the macOS hooks completely.

Thing is, PopClip refuses to press ⌘C unless it can see that there is a copy menu item and that it is enabled. Otherwise it would be pressing it all over the place!

1 Like

So my take is that there’s no good solution to this?

You might want to contact the developer(s) of Zed about this?

Yeah, fundamentally it would be solved if Zed developer could make their copy menu item work!

There might be some workaround I can add in PopClip’s code, I’m not sure; but there’s nothing you can do yourself right now to make it work.