Skip to content

Custom keybindings not working #268

@comand

Description

@comand

I have a number of keybindings that I set in my diffuserc that I believe once worked in 0.8.x which do not work with 0.11.x. My diffuserc is as follows:

keybinding menu first-difference Ctrl+Shift+1
keybinding menu previous-difference Ctrl+1
keybinding menu next-difference Ctrl+2
keybinding menu last-difference Ctrl+Shift+2
keybinding menu copy-left-into-selection Ctrl+Alt+Right
keybinding menu copy-right-into-selection Ctrl+Alt+Left

I confirmed that my ~/.config/diffuse/diffuserc is actually being read, and Resources.setKeyBinding is being called to add this keybinding, but these keybindings do not take effect. The key sequences for these commands don't show up next to the View menu items, they're all blank. I also don't see any error output on the terminal.

As an aside, I tried to define an invalid keybinding in my diffuserc with only two arguments (just keybinding menu) and I also don't see an error message for that, despite the SyntaxError that is thrown here: https://github.com/MightyCreak/diffuse/blob/main/src/diffuse/resources.py#L391. I wonder if there is actually some deeper error that is being thrown somewhere that's not turning into any kind of user-visible message.

The only way I've found to work around this is to edit the default keybindings in resources.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions