mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Merge pull request #963 from minrk/indentAutoShortcut
add ctrl-alt-[ shortcut for indentAuto
This commit is contained in:
commit
7e6b50815e
@ -114,9 +114,15 @@ define([
|
||||
readOnly: false,
|
||||
theme: "default",
|
||||
extraKeys: {
|
||||
"Cmd-Right":"goLineRight",
|
||||
"End":"goLineRight",
|
||||
"Cmd-Left":"goLineLeft"
|
||||
"Cmd-Right": "goLineRight",
|
||||
"End": "goLineRight",
|
||||
"Cmd-Left": "goLineLeft",
|
||||
"Tab": "indentMore",
|
||||
"Shift-Tab" : "indentLess",
|
||||
"Cmd-Alt-[" : "indentAuto",
|
||||
"Ctrl-Alt-[" : "indentAuto",
|
||||
"Cmd-/" : "toggleComment",
|
||||
"Ctrl-/" : "toggleComment",
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -125,11 +125,7 @@ define([
|
||||
CodeCell.options_default = {
|
||||
cm_config : {
|
||||
extraKeys: {
|
||||
"Tab" : "indentMore",
|
||||
"Shift-Tab" : "indentLess",
|
||||
"Backspace" : "delSpaceToPrevTabStop",
|
||||
"Cmd-/" : "toggleComment",
|
||||
"Ctrl-/" : "toggleComment"
|
||||
},
|
||||
mode: 'text',
|
||||
theme: 'ipython',
|
||||
|
@ -70,7 +70,6 @@ define([
|
||||
|
||||
TextCell.options_default = {
|
||||
cm_config : {
|
||||
extraKeys: {"Tab": "indentMore","Shift-Tab" : "indentLess"},
|
||||
mode: 'htmlmixed',
|
||||
lineWrapping : true,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user