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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b8bff5c
Documenting codemirror shorcuts.
damianavila 3ff7df3
Fixing language problems and redesign of the table.
damianavila 61d2b15
New redesing of the table to get a better visualization.
damianavila e67e75c
Fixing some language mistakes.
damianavila b1e321f
Changing Ctrl-Shift order in redo shortcut.
damianavila 13aef20
Added link to shorcuts in the notebook menu.
damianavila File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _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 easily: | ||
|
||
================= ============== ================== | ||
Action PC shortcut Mac shortcut | ||
================= ============== ================== | ||
newline & indent Enter Enter | ||
toggle overwrite Insert Insert | ||
indent Ctrl-] Cmd-] | ||
dedent Ctrl-[ Cmd-[ | ||
select all Ctrl-A Cmd-A | ||
delete line Ctrl-D Cmd-D | ||
undo Ctrl-Z Cmd-Z | ||
redo Ctrl-Shift-Z Cmd-Shift-Z | ||
redo Ctrl-Y Cmd-Y | ||
go to cell start Ctrl-Home Cmd-Up | ||
go to cell start Alt-Up Cmd-End | ||
go to cell start PageUp PageUp | ||
go to cell end Ctrl-End --- | ||
go to cell end Ctrl-Down Cmd-Down | ||
go to cell end PageDown PageDown | ||
go one word left Ctrl-Left Alt-Left | ||
go one word right Ctrl-Right Alt-Right | ||
go to line start Alt-Left Cmd-Left | ||
go to line start Home Home | ||
go to line end Alt-Right Cmd-Right | ||
go to line end End End | ||
del word before Ctrl-Backspace Alt-Backspace | ||
del word after --- Ctrl-Alt-Backspace | ||
del word after Ctrl-Delete Alt-Delete | ||
================= ============== ================== | ||
|
||
.. note:: | ||
|
||
These shorcuts are valid for US keyboards, so some shortcuts can change | ||
for non-US keyboards. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This seems a bit scary. Is it worth giving a brief idea or example of how things might change?
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.
I am in an US keyboard right now... but probably @Carreau can tell you more because I think he uses a French keyboard... and I had reports from German people having these problems too...
BUT, we can not document every shortcut for every language, so I thought to only document the most common one, the US...
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.
Essentially some shorcuts do not work in non-US keyboard... or you have to take a different combination of keys to get the same action...
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.
I'm trying to get an idea of which shortcuts might change. Also, if people using non-US keyboards will have a good sense from other software of how to adapt these shortcuts, or if we're doing something unusual.
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.
Other than that, I think this looks good now. We'll see if @Carreau has any input on the shortcut differences, otherwise we'll merge tomorrow.
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.
Some issues with German Keyboard: #2653 (comment)
I do not think we are doing unusual things, just a codemirror-keyevent (keyboard) issue, I think...