-
-
Notifications
You must be signed in to change notification settings - Fork 977
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
Kitty doesn't remember position on macOS screen #1119
Comments
IMO window placement should be the responsibility of th eOS, not individual applications. For macOS I believe there are third party tools that allow you to save and restore window positions for individual applications, such as: https://www.macworld.com/article/2036191/mac-gems-stay-keeps-your-windows-exactly-where-you-want-them.html |
@kovidgoyal — thanks for the reply, all other apps on macOS that I'm aware of do have their position remembered, I assume because they all use the OS API. I'm not a mac developer so cannot tell you how other apps do this, this was all I found, and it is part of the Cocoa frameworks: https://developer.apple.com/documentation/appkit/nswindow/1526255-restorable Kitty's behaviour is currently different to most other apps, and yes this is a minor issue that can be worked around with 3rd party window managers. |
The cocoa APIs are not really suitable, since kitty, being a terminal has special sizing requirements, its window size can either be remembered or depend on the font size, dpi and number of cells specified in its config. It's probably possible to make ethis work with cocoa api, but I'm afraid its too much work, at least for me. Patches are welcome. |
Started experimenting with kitty recently and I'm amazed how light and fast it is. I know it's been a while since this issue was closed, I must agree with @iandol, it's a bit irritating to readjust the position and size of the window all the time or have a third party app only for managing kitty window 😞 |
+1, I would consider dropping kitty over something as trivial as this. I don't need lots of tiny needle pricks added to my daily routine, all day every day. |
any updates on this? |
I actually wanted to switch to kitty, and set up configs and a theme etc – but having to resize the window every time really is a deal breaker to me. Also, apps like Stay aren't really a solution, since the move windows only with a slight delay, virtually diminishing the quick startup time kitty has. |
The size can be adjusted. Look at the three options here: https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.remember_window_size. |
when you remove window decorations from a mac app, the only way to move the window literally by resizing it though 🙈 |
There is a way: #84 (comment). It may not be super convenient, but seems to work. I heard that it is too difficult to find the right place to drag on high-dpi displays. |
Also see #3683. Unfortunately I haven't found the motivation to continue the linked PR. |
ah, I see. a bit better, but still requires moving the window every time 🙁 |
still no update on this? this is really annoying. the window size isn't a problem, but dragging the position every time it opens is very annoying. considering to switch to another terminal, such a pity... |
I ended up resorting to 3rd party software to change position after kitty starts. Shouldn't have to use mouse or 3rd party to accomplish this though. Great apart from this bugginess I call it ;) |
I know it's been years but it really is a shame that such a bug has been ignored. The terminal is great apart from this usability issue. You can't just drag the window every time you open the terminal, especially if you have the title bar (window decorations) disabled. |
I would also like to register my interest in this feature. Even using a 3rd party app to manage window placement (Rectangle in my case), it's still a pain to have to reposition kitty when other apps remember their position. |
Any updates? |
Got a feeling this will never be fixed now. Ended up using Wezterm. |
I managed to achive this using Apple Script. if application "kitty" is running then
tell application "System Events"
set position of first window of application process "kitty" to {X_you_want, Y_you_want}
end tell
end if Use Script Editor to save the above to a file like osascript ~/Documents/pos.scpt Remenber to add |
This is too slow, I did the same but with Rectangle app that can use keystroke Control+Option+C (that centers the window) and the following osascript:
But it's waaay to slow and I do not recommend it as a viable solution unless you like to see glitching movement every time you open new kitty terminal. It needs to be solved in a different way. |
with HammerSpoon app, below lua code would work: local kitty = hs.application.launchOrFocusByBundleID("net.kovidgoyal.kitty")
kitty:mainWindow():move(hs.geometry({x=0,y=0,w=1,h=0.3})) -- move kitty window on top BTW, I made a gist to mimic iterm2 with top window and hotkey: https://gist.github.com/truebit/d79b8018666d65e95970f208d8f5d149 |
Hi, using Kitty 0.12.3 on macOS 10.14.1 and
remember_window_size
enabled, when Kitty first starts it does not remember its position on screen. As I also havedraw_minimal_border
enabled I have to drag edges to get the window where I want it. It would be nice if kitty could remember its position as well as its size on a restart.Thanks for a great minimalist terminal!
The text was updated successfully, but these errors were encountered: