Skip to content

[BUG] Newline trigger not working #409

@jeansordes

Description

@jeansordes

Description

I would like a snippet to trigger when I hit the Enter key, but none of the following options work :

{trigger: "foo\n", replacement: "bar$0", options: "tA"},
{trigger: "foo\n", replacement: "bar$0 (regex)", options: "tAr"},
{trigger: "foo\\n", replacement: "bar$0 (double anti slash)", options: "tA"},
{trigger: "foo\\n", replacement: "bar$0 (double anti slash + regex activated)", options: "tAr"},

Other keys work, like space, but I would like to use Enter

Just in case, I tried on a blank vault, with just this plugin activated, but nope. It does not work.

Any hint, anyone ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions