New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documenting codemirror shorcuts. #4591
Changes from 1 commit
b8bff5c
3ff7df3
61d2b15
e67e75c
b1e321f
13aef20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems unnecessarily complex. What about one table, with columns for 'PC shortcut' and 'Mac shortcut'? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree, I will do the change... |
||
|
||
* 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** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIRC, Sphinx should style this as a table header row, without needing extra There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, great! |
||
------------ -------------------------- | ||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of the 'go' need to be 'go to'. Also, 'begin cell' -> 'beginning of cell' / 'start of cell' / 'cell start' (the last sounds a bit awkward, but it's shortest). Likewise, 'end cell' -> 'end of cell' / 'cell end'. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, |
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I said "all of the 'go'", that doesn't include these two. But I might phrase them 'go one word left/right'. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are normally called 'indent' and 'unindent' / 'dedent'. I'd also switch the order round, to list indent before unindent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK |
||
============ ========================== | ||
|
||
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 | ||
============ ========================== | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ Using IPython for interactive work | |
shell | ||
qtconsole | ||
notebook | ||
cm_keyboard | ||
nbconvert | ||
public_server | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'an easier way' than what? Maybe just "...and manipulate your content easily"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
he he... yes "easier" is comparative... it would be "easier" in Spanish... 😉