Repository navigation
Added
hs.screenandhs.windownow contain multiple new functions/methods for interacting with macOS Spaces- A notification when your config folder or file is missing or can't be read, with a button that opens Settings
- A notification when your config throws an error while loading, with a button that opens the Console
hs.chooseronSelectionChange, called with the row and its choice whenever the selected row changesurlproperty onhs.httpresponses, giving the final URL after any redirects- Documentation guides now have linkable section headings, and the sidebar shows an outline of the guide you're reading
- A "Finding Spoons" section in the Spoons guide
- The documentation sidebar is now a collapsible tree of every guide, module and type, so you can jump straight to any section, property or method
hs.socket.createUnixDatagram(), for sending and receiving Unix domain datagrams, e.g. from Karabiner-Elements'send_user_commandhs.consoleHistory(), which returns the messages in the Hammerspoon Console, optionally filtered by level, text, or only those logged since a previous call
Changed
- The "hs.canvas" documentation guide is now called "Canvas Tutorial"
Fixed
hs.ui.textPrompt()now puts the keyboard focus in its text field when it opens, so you can type straight away- Hammerspoon no longer crashes at launch if your config file can't be read
- Clicking a notification no longer also opens the Console when no Hammerspoon windows are open
hs.chooser.refreshChoices()no longer leavesselectedRowpointing past the last row when fewer choices match- A crash when destroying an
hs.uiwindow containing a web view from a timer or other callback
Full Changelog: 0.0.17...0.0.18