{"action":"closed","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/181","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/181/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/181/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/181","id":53534734,"number":181,"title":"Feature request: add support for window zoom","user":{"login":"jfchevrette","id":3001,"avatar_url":"https://avatars.githubusercontent.com/u/3001?v=3","gravatar_id":"","url":"https://api.github.com/users/jfchevrette","html_url":"https://github.com/jfchevrette","followers_url":"https://api.github.com/users/jfchevrette/followers","following_url":"https://api.github.com/users/jfchevrette/following{/other_user}","gists_url":"https://api.github.com/users/jfchevrette/gists{/gist_id}","starred_url":"https://api.github.com/users/jfchevrette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfchevrette/subscriptions","organizations_url":"https://api.github.com/users/jfchevrette/orgs","repos_url":"https://api.github.com/users/jfchevrette/repos","events_url":"https://api.github.com/users/jfchevrette/events{/privacy}","received_events_url":"https://api.github.com/users/jfchevrette/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-06T16:47:18Z","updated_at":"2015-01-13T11:30:56Z","closed_at":"2015-01-13T11:30:56Z","body":"When using hs.window:maximize() the window will be resized to fill the screen w/o the dock. It is my understanding that hs does this manually by setting the window position/size as opposed to using OS capabilities.\r\n\r\nIt would be useful to add window zoom functionnality using OS X zoom capabilities (when an app/window supports it). Then we can also support \"unzooming\" so that the window previous position/size is restored.\r\n\r\nThe AppKit zoom method is available in OS X 10.0 and later and should be all that's needed to toggle between zoomed/unzoomed. If the window does not support zooming, a beep sound is triggered by the OS.  \r\n\r\nhttps://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/index.html#//apple_ref/occ/instm/NSWindow/zoom:"}}