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
Add ability to center window #6
Comments
Won't |
That works for some cases, but there are a bunch of times where I want a window to just move to the center with it's current dimensions. In my usual workflow I very often have two windows side by side on an external 27-inch monitor (I have the LG 5k display), each taking up half the screen. There are times where I close one of those windows and it would be nice to just center the other one and retain the full height. Examples include webpages or emails, generally content I want to read that doesn't always flow well when the window is made full screen. Pressing So in those cases I'd like to be able to just press something like |
Take a look at my init.lua should be commented well enough that you can copy the parts you want: https://github.com/a7hybnj2/dotfiles/blob/master/.hammerspoon/init.lua |
Thanks for making the spoon, it's so great.
Sometimes I have one window open on a large screen and it's nice to be able to center that window. I'd find it really convenient if there was an additional hotkey for this, e.g.,
center = {hyper, "c"}
. I'm imagining this would take the current window and move it to the center of the screen, preserving the dimensions and y position.The text was updated successfully, but these errors were encountered: