Activate Power Mode once I reach # of key strokes


I installed the Activate Power Mode plugin, but I can only start it when I do ctrl+alt+o.
Is there a way to make it so that it activates (as if I had inputted ctrl+alt+0) when I reach, say, 500 keystrokes/letters typed every time I run Atom?


It’s possible to execute a command (like the activation command) via JavaScript, but I don’t believe that the API provides a good way to count the number of keystrokes precisely. You could probably use editor.onDidChange() and activate the package when the range difference reaches a certain threshold (that’s what activate-power-mode does to increment its combo counter).