Skip to content

0.0.14

Choose a tag to compare

@cmsj cmsj released this 14 Oct 17:21
· 166 commits to main since this release

IMPORTANT NOTE

This pre-release includes a significant change to the way some Hammerspoon objects are garbage collected by JavaScript.

If an object is "running" or "active" in some way, such as a hotkey or a watcher, you no longer need to hold a reference to it yourself, it will remain alive until it completes its work or is otherwise destroyed.

It is likely that this has introduced some new bugs - please report them as issues here.

Added

  • Documentation now includes a guide for using TypeScript for your configuration
  • hs.fs now offers API for opening/reading/writing files

Changed

  • hs.hotkey hotkeys now remap themselves when keyboard layout changes, so they remain consistent
  • .on() watchers now reject invalid event names
  • hs.canvas objects can now receive right mouse clicks
  • hs.window.focus() no longer raises all windows of an application
  • hs.task spawned processes are reaped more enthusiastically when terminated
  • hs.menubar items can now receive middle/right/other mouse clicks

Fixed

  • hs.ipc and the hs2 command line tool now actually work
  • hs.chooser shadows no longer clip to a rectangular shape