Skip to content

Commit

Permalink
Add indentAuto to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gnestor committed Jan 8, 2018
1 parent 3857c92 commit 630ef63
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions notebook/static/notebook/js/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,16 @@ define([
}
}
},
'auto-indent': {
cmd: i18n.msg._('automatically indent selection'),
help : i18n.msg._('automatically indent selection'),
handler : function(env) {
// Get selected cell
var selected_cell = env.notebook.get_selected_cell();
// Execute a CM command
selected_cell.code_mirror.execCommand('indentAuto');
}
}
};

/**
Expand Down

0 comments on commit 630ef63

Please sign in to comment.