Skip to content

v2.3.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 09:52
· 30 commits to main since this release

Added

  • Windows port (windows/): counter using WH_KEYBOARD_LL /
    WH_MOUSE_LL hooks via ctypes (stdlib only), PowerShell
    install/uninstall with a logon scheduled task, optional
    pystray tray companion (not installed by default)
  • macOS port (macos/): counter using a listen-only CGEventTap
    via ctypes (stdlib only, no pyobjc), LaunchAgent install/
    uninstall scripts, optional rumps menu-bar companion (not
    installed by default)
  • Shared cross-platform CLI (ports/wordcount.py):
    today/week/month/json/history-json/panel/pause/resume/toggle
    with the same output formats and data layout as the Linux CLI
  • Tests for the shared core and the Windows/macOS keymaps
    (tests/test_counter_core.py, tests/test_keymaps.py)

Changed

  • Extracted the platform-independent counting state machine from
    src/local-wordcounter.py into src/counter_core.py; the Linux
    counter is now a thin libinput front-end over it. Behavior,
    data format, --selftest, and the test suite are unchanged.
    install.sh/uninstall.sh now also copy/remove
    counter_core.py