Skip to content

Hammerspoon 2 0.0.18

Latest

Choose a tag to compare

@cmsj cmsj released this 21 Nov 23:50
· 19 commits to main since this release
04ebcdd

Added

  • hs.screen and hs.window now 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.chooser onSelectionChange, called with the row and its choice whenever the selected row changes
  • url property on hs.http responses, 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_command
  • hs.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 leaves selectedRow pointing past the last row when fewer choices match
  • A crash when destroying an hs.ui window containing a web view from a timer or other callback

Full Changelog: 0.0.17...0.0.18