@@ -7,19 +7,19 @@ Customize keymaps
7
7
which is not guaranteed to be kept in future versions of the notebook,
8
8
and can be removed or changed without warnings.
9
9
10
- The notebook shortcuts that are defined by jupyter both in edit mode and command
11
- mode are configurable in the frontend configuration file
12
- ``~/.jupyter/nbconfig/notebook.json ``. The modification of Keyboard shortcut
13
- suffer of several limitations, mainly that your Browser and OS might prevent
14
- certain shortcut to work correctly. If this is the case, there are
15
- unfortunately not much than can be done. The second issue can arise with
16
- keyboard that have a layout different than US English. Again even if we are
17
- aware of the issue, there is not much we can do about that .
10
+ The notebook shortcuts that are defined by jupyter both in edit mode and
11
+ command mode are configurable in the frontend configuration file
12
+ ``~/.jupyter/nbconfig/notebook.json ``. The modification of keyboard
13
+ shortcuts suffers from several limitations, mainly that your Browser and OS
14
+ might prevent certain shortcuts from working correctly. If this is the case,
15
+ there is unfortunately not much that can be done. The second issue can arise
16
+ with keyboards that have a layout different than US English. Again, even if
17
+ we are aware of the issue, there is not much that can be done .
18
18
19
- Shortcut are also limited by the underlying library that handle code and text
20
- edition : CodeMirror. If some Keyboard shortcuts are conflicting, the method
21
- describe below might not work to create new keyboard shortcuts, especially in
22
- the ``edit `` mode of the notebook.
19
+ Shortcuts are also limited by the underlying library that handles code and
20
+ text editing : CodeMirror. If some keyboard shortcuts are conflicting, the
21
+ method described below might not work to create new keyboard shortcuts,
22
+ especially in the ``edit `` mode of the notebook.
23
23
24
24
25
25
The 4 sections of interest in ``~/.jupyter/nbconfig/notebook.json `` are the
@@ -30,15 +30,16 @@ following:
30
30
- ``keys.command.bind ``
31
31
- ``keys.edit.bind ``
32
32
33
- The first two section describe which default keyboard shortcut not to register
34
- at notebook startup time. These are mostly useful if you need to ``unbind `` a
35
- default keyboard shortcut before binding it to a new ``command ``.
33
+ The first two sections describe which default keyboard shortcuts not to
34
+ register at notebook startup time. These are mostly useful if you need to
35
+ ``unbind `` a default keyboard shortcut before binding it to a new
36
+ ``command ``.
36
37
37
- These two first sections apply respectively to the ``command `` and ``edit ``
38
- mode of the notebook. They take a list of shortcut to ``unbind ``.
38
+ The first two sections apply respectively to the ``command `` and ``edit ``
39
+ mode of the notebook. They take a list of shortcuts to ``unbind ``.
39
40
40
41
For example, to unbind the shortcut to split a cell at the position of the
41
- cursor (``Ctrl-Shift-Minus ``)use the following:
42
+ cursor (``Ctrl-Shift-Minus ``) use the following:
42
43
43
44
.. code :: javascript
44
45
@@ -57,16 +58,16 @@ cursor (``Ctrl-Shift-Minus``)use the following:
57
58
58
59
59
60
60
- The last two section describe which new keyboard shortcut to register
61
- at notebook startup time, and which actions they trigger.
61
+ The last two sections describe which new keyboard shortcuts to register
62
+ at notebook startup time and which actions they trigger.
62
63
63
- These two last sections apply respectively to the ``command `` and ``edit ``
64
+ The last two sections apply respectively to the ``command `` and ``edit ``
64
65
mode of the notebook. They take a dictionary with shortcuts as ``keys `` and
65
66
``commands `` name as value.
66
67
67
68
For example, to bind the shortcut ``G,G,G `` (Press G three time in a row) in
68
- command mode, to the command that restart the kernel and run all cells, use the
69
- following:
69
+ command mode to the command that restarts the kernel and runs all cells, use
70
+ the following:
70
71
71
72
72
73
.. code :: javascript
@@ -86,5 +87,5 @@ following:
86
87
87
88
88
89
89
- The name of the available ``commands `` can be find by hovering the right end of
90
- a row in the command palette.
90
+ The name of the available ``commands `` can be find by hovering over the
91
+ right end of a row in the command palette.
0 commit comments