diff --git a/docs/source/interactive/cm_keyboard.rst b/docs/source/interactive/cm_keyboard.rst new file mode 100644 index 0000000..0989283 --- /dev/null +++ b/docs/source/interactive/cm_keyboard.rst @@ -0,0 +1,87 @@ +.. _cm_keyboard: + +Some additional Codemirror keyboard shortcuts +============================================= + +Because each cell of the IPython notebook is powered by Codemirror, +you can actually use a set of predetermined keyboard shortcuts to +write and manipulate your content in an easier way. + +Below, you will find three tables listing the available shortcuts: + +* Basic, with the most common and used shortcuts. + +* pcDefault, with a list of shortcuts specifically available for pc users. + +* macDefault, with a list of shortcuts specifically available for mac users. + +Basic +----- + +============ ========================== +**Shortcut** **Action** +------------ -------------------------- +Left go char left +Right go char right +Up go line up +Down go line down +End go line end +Home go line start +PageUp go begin cell +PageDown go end cell +Delete del char after +Backspace del char before +Enter newline and indent +Insert toggle overwrite +============ ========================== + +pcDefault +--------- + +============ ========================== +**Shortcut** **Action** +------------ -------------------------- +Ctrl-A select all +Ctrl-D delete line +Ctrl-Z undo +Shift-Ctrl-Z redo +Ctrl-Y redo +Ctrl-Home go begin cell +Alt-Up go begin cell +Ctrl-End go end cell +Ctrl-Down go end cell +Ctrl-Left go word left +Ctrl-Right go word right +Alt-Left go line start +Alt-Right go line end +Ctrl-Back del word before +Ctrl-Delete del word after +Ctrl-[ indent less +Ctrl-] indent more +============ ========================== + +macDefault +---------- + +============ ========================== +**Shortcut** **Action** +------------ -------------------------- +Cmd-A select all +Cmd-D delete line +Cmd-Z undo +Shift-Cmd-Z redo +Cmd-Y redo +Cmd-Up go begin cell +Cmd-End go end cell +Cmd-Down go end cell +Alt-Left go word left +Alt-Right go word right +Cmd-Left go line start +Cmd-Right go line end +Alt-Back del word before +Ctrl-Alt-Back del word after +Alt-Delete del word after +Cmd-[ indent less +Cmd-] indent more +============ ========================== + diff --git a/docs/source/interactive/index.rst b/docs/source/interactive/index.rst index 1fb9f7f..fd24a05 100644 --- a/docs/source/interactive/index.rst +++ b/docs/source/interactive/index.rst @@ -11,6 +11,7 @@ Using IPython for interactive work shell qtconsole notebook + cm_keyboard nbconvert public_server diff --git a/docs/source/interactive/notebook.rst b/docs/source/interactive/notebook.rst index 8e18de7..29eb711 100644 --- a/docs/source/interactive/notebook.rst +++ b/docs/source/interactive/notebook.rst @@ -394,7 +394,9 @@ Ctrl-m . restart kernel Ctrl-m h show keyboard shortcuts ============ ========================== - +.. seealso:: + + :ref:`Some additional Codemirror keyboard shortcuts `