How to set a shortcut for sending “continue” in Pi Coding Agent
I came across this simple but effective tip on how to configure shortcut in Pi.dev by Armin.
As you’re already aware that Pi is heavy extensible. In fact, I would say that is their core philosophy.
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
export default function (pi: ExtensionAPI) {
pi.registerShortcut("shift+alt+enter", {
description: 'Send "continue" when the agent is stopped',
handler: (ctx) => {
if (ctx.isIdle()) pi.sendUserMessage("continue");
},
});
}