Skip to content

Adding global pronounce to custom.js makes serenade unresponsive #49

@bryandandan

Description

@bryandandan

I have a big custom.js that works like a charm. As soon as I add a simple global pronounce, Serenade stops detecting the window I am on and becomes not responsive. This is the beginning of my code

/* Serenade Custom Commands

In this file, you can define your own custom commands with the Serenade API.

For instance, here's a custom automation that opens your terminal and runs a command:

serenade.global().command("make", api => {
  api.focusApplication("terminal");
  api.typeText("make clean && make");
  api.pressKey("return");
});

And, here's a Python snippet for creating a test method:

serenade.language("python").snippet(
  "test method <%identifier%>",
  "def test_<%identifier%>(self):<%newline%><%indent%>pass",
  { "identifier": ["underscores"] }
  "method"
);

For more information, check out the Serenade API documentation: https://serenade.ai/docs/api

*/

serenade.global().pronounce('colon', 'column')

serenade
  .language('css')
  .snippet(
    'container',
    '.container {<%newline%><%indent%><%cursor%><%newline%>}',
    null,
    'inline'
  )

Why is this happening? Also, this is a screenshot of Serenade showing it does not recognize any of my opened apps (code, chrome...etc)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions