joouha / euporie

Jupyter notebooks in the terminal
https://euporie.readthedocs.io
MIT License
1.54k stars 36 forks source link

Custom keybindings #56

Open raffaem opened 1 year ago

raffaem commented 1 year ago

Hi,

I would like to add a keybinding to run all cells.

The doc says:

This parameter takes the form of a mapping, where they keys are references to modes or components to which a set of key-bindings apply, and the values are mapping of command names to lists of keys. Key bindings set in the configuration will entirely over-ride the default binding, so if you want to add an additional binding for a command while retaining the default, you will need to include the default binding in the configuration.

  1. Where do I find, in the doc, the list of valid "command names"?
  2. How do I "include the default binding in the configuration"?
joouha commented 1 year ago

I've added a list of available commands for each application to the documentation - e.g., for euporie-notebook the available commands are listed here:

https://euporie.readthedocs.io/en/latest/apps/notebook_commands.html

How do I "include the default binding in the configuration"?

I'll add something about this to the documentation