Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos: quick terminal animate duration #2490

Merged
merged 2 commits into from
Oct 26, 2024

Conversation

futurepaul
Copy link
Contributor

This makes the quick terminal more closely replicate my personal "Hotkey Window" settings on iTerm2. (I've also replicated the same setup using HammerSmith and kitty, it's a big deal for me!)

These new settings are exercised by this config:

quick-terminal-position = full
quick-terminal-animate = false

I considered making a new quick-terminal-size config item that would control the fraction of the screen the quick terminal covers (defaulting to 4) but that seemed like a more invasive change and this covers my use case.

I wasn't entirely sure about my values in initialOriginal and finalOrigin but this seems to work correctly in animated and non-animated modes.

Happy to close this and create an issue if that would be more appropriate.

@mitchellh
Copy link
Contributor

mitchellh commented Oct 25, 2024

I'd accept the animation portion of this PR but not the full value. We have an accepted design for specifying the size already in #2384 and this does not implement that. Thank you though!

@futurepaul futurepaul force-pushed the quick-terminal-improvements branch from 572e36e to 3d2cc55 Compare October 25, 2024 16:55
@futurepaul futurepaul changed the title macos: quick terminal fullscreen and non-animated options macos: quick terminal animate option Oct 25, 2024
@futurepaul
Copy link
Contributor Author

Ah, my bad for not seeing that issue. Updated to only add the animate option.

src/config/Config.zig Outdated Show resolved Hide resolved
@futurepaul futurepaul force-pushed the quick-terminal-improvements branch from 3d2cc55 to f4ba95b Compare October 26, 2024 00:28
@futurepaul futurepaul changed the title macos: quick terminal animate option macos: quick terminal animate duration Oct 26, 2024
@mitchellh
Copy link
Contributor

Thank you! Just waiting on CI then will merge.

@mitchellh mitchellh merged commit 734c8ce into ghostty-org:main Oct 26, 2024
17 checks passed
@mitchellh mitchellh deleted the quick-terminal-improvements branch October 26, 2024 03:48
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.

3 participants