mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
add ctrl-alt-[ shortcut for indentAuto
and move common cell commands to Cell base config
This commit is contained in:
parent
a3e074c3a7
commit
1c8437a123
@ -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