custom keyboard shortcuts for own options?

Yes, this is something that I've wanted for a while – but the current implementation of the shortcuts made it difficult to allow changing them at runtime (which is why they're currently hardcoded). But I want to give it a shot again and maybe refactor this part, so users can pass in custom keymaps via the recipe config or their prodigy.json. So you could then do something like this:

# Disclaimer: this is a proposal and currently doesn't work
"config": {
    "keymap": {
        "accept": ["1", "a"],
        "reject": ["2", "x"],
        "save": ['command+space'],
        "choice": ["p", "n", "m"]
    }
}

If I remember correctly, the choice options are currently selected by index (hence the numbers), so in order to make this work, the options might need to specify an additonal key, like "key": "p".

1 Like