ghostty icon indicating copy to clipboard operation
ghostty copied to clipboard

macOS: Quick Terminal shouldn't autohide for dragging operations

Open mitchellh opened this issue 11 months ago • 6 comments

Discussed in https://github.com/ghostty-org/ghostty/discussions/4868

Originally posted by aaronk6 January 9, 2025 It would be great if Quick Terminal stayed open when dragging a file, e.g., from Finder. It seems that the current behavior is that Quick Terminal closes as soon as a click outside is registered.

https://github.com/user-attachments/assets/df4ef461-61ec-4cd2-8578-55e823c94107

I often drag a file to the terminal to use its path as an argument. It would be great if this could also be supported for Quick Terminal.

Notes

I'm not actually sure how to detect this behavior or if its possible at all, so this issue may be closed as "impossible/impractical" if that ends up being the case.

mitchellh avatar Jan 11 '25 15:01 mitchellh

Just use quick-terminal-autohide = false

DoctorRainer avatar Feb 09 '25 12:02 DoctorRainer

That’s not really a solution, see my comment here: https://github.com/ghostty-org/ghostty/discussions/4868#discussioncomment-11806305

aaronk6 avatar Feb 09 '25 20:02 aaronk6

When I tried this out on mainline with macOS 15.6.1, Quick Terminal already seems to behave this way.

mjdouglas avatar Sep 16 '25 19:09 mjdouglas

Fixed in https://github.com/ghostty-org/ghostty/pull/4049, by changing from NSWindow to NSPanel

bo2themax avatar Nov 05 '25 10:11 bo2themax

Hmm, maybe there is a misunderstanding, but it isn’t working for me (tested 1.2.3 and the tip version). As soon as I click a desktop icon, quick terminal will vanish.

Image

aaronk6 avatar Nov 14 '25 21:11 aaronk6

Hmm, maybe there is a misunderstanding, but it isn’t working for me (tested 1.2.3 and the tip version). As soon as I click a desktop icon, quick terminal will vanish.

Thanks, it is. I was testing with Ghostty as the frontmost application, in which it will work, but not with other apps as the frontmost

bo2themax avatar Nov 15 '25 07:11 bo2themax