feat: bridge herdr-gh and herdr-pomodoro, and show Focus in the sidebar #2
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/bridges"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 2 of the herdr-keybars plan: bridges to herdr-gh and herdr-pomodoro.
bin/setup):rules/herdr.keybars, a rule pack, withkeybars-pro market install;hooks/folder, if that plugin is installed. A hook you already have there is kept, and setup says which. A second run is harmless.remove-bridgestakes out only its own hooks.bin/bridge):ci.*,review.*andpr.*events becomekeybars-pro notifyevents with the repo and branch;HERDR_KEYBARS_POMODORO=eventsoroffchanges that.$focus(🎯12m,☕3m) to every workspace's sidebar.Hooks run with the calling plugin's directories, so each hook setup writes passes herdr-keybars' own state and config paths to the bridge. A test checks this.
Tested with
make check: shellcheck, the extendedwatch_test, and a newbridge_testfor the bridge, setup, hooks you made, a generated hook run end to end, and remove. herdr'splugin listandconfig-diroutput was checked against a real install. I haven't run setup on your machine, since it would change herdr-gh's hooks.Update: using keybars Pro's names. herdr-gh and herdr-pomodoro now name their events as keybars Pro does (herdr-gh#6, herdr-pomodoro#6). So the bridge forwards them unchanged:
-source github, which needs keybars-pro#48;focus.*.The plugin's own rule pack is gone; setup installs the marketplace's
github-ci-pack,review-nudgesandmerge-confettiinstead. Also fixed: setup could miss an installed plugin, becausegrep -qunderpipefailcan count herdr's SIGPIPE as a failure. The bridge test passed 15 runs in a row after the fix.