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
Indent and dedent in htmlnotebook #2167
Comments
Tab & shift-tab are working here. What OS, browser and version of IPython are you using? |
Safari (5.1.7) and Chrome (20.0.1132.57) on OS X (Lion). Hmm, seems to work. I guess I had tried command-[, command-], command-tab, and command-shift-tab, but not tab and shift-tab. Could the tab and shift-tab shortcuts be added to the shortcuts help dialog? What about menu items for indent and dedent? |
It probably makes sense to add them - we hadn't because the tab/shift-tab actually have nothing to do with us, and are just part of CodeMirror, and we only ever added our own shortcuts to that list. |
I think of tab & shift-tab as a bit like the shortcuts for copy & |
Aha. On both of my browsers, the tab key has no effect if either the first or the last line of code in a cell is selected. As long as the selection consists of some number of the second through second to last lines in a cell, it works fine. |
That does sound like a bug, although it may well be in codemirror. |
yeah, I have found codemirror to be quite fiddly for lots of things at the top or bottom of cells. |
I'm on GNU/Linux (openSUSE 12.3) and in both Firefox 20 and Chromium 27, shift-tab does not work in the notebook. (Tab works fine) |
shift-tab is not working for me now in windows/chrome. it used to. tab works and is great. |
Shift tab is not supported by codemirror anymore for diverse reason, |
|
I wold vote for closing this issue as Tab is not supported by CM and |
works for me. I would defer to CodeMirror as much as possible when they have a position on things like this. |
When editing code in an HTML notebook, it would be convenient if there was a way to indent or dedent a selected block of code, perhaps with keybindings to tab and shift-tab or C-[ and C-].
The text was updated successfully, but these errors were encountered: