Skip to content

"Error reading bindings.json: invalid character 'x' in string escape code" #1863

@JPLeBreton

Description

@JPLeBreton

Description of the problem or steps to reproduce

Following the custom keybind docs page, I'm trying to bind Ctrl-/ to Undo to replicate the default emacs setup. I used the "raw" command to see what micro thought this key sequence was, and got
EventKey: Ctrl-_: "\x1f"
So in my bindings.json I added
"\x1f": "Undo",
But when I relaunched micro, I got this error:
Error reading bindings.json: invalid character 'x' in string escape code
Is there any way I can bind something to Ctrl /?

Specifications

Commit hash: 5044ccf (2.0.7)
OS: Manjaro Linux
Terminal: Gnome Terminal

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