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
Enable block de-indent (shift+tab) in text editor? #6127
Comments
This would be a big plus. I badly need this right now since I am trying to make jupyterlab as my main work env hosted on a remote VM. Was surprised when I can't de-indent parts of my SQL script. |
The same here |
Yeah same here |
Block indent works, would be great to get de-indent as well |
I definitely agree |
Actually, I just found out that Ctrl-[ works for block dedenting. However, this shortcut did not work for me in chrome (probably due to some extension). Switching to another browser fixed the issue. Also, it seems relatively straightforward to customize the shortcut and replace it with shift+tab. |
Thanks, this worked for me in Chrome (Version 79.0.3945.79 (Official Build) (64-bit)). I am on a Mac, so |
Definitely a must, 'tab'-ed multiple lines, how to 'shift-tab' back? |
Strange that this works in notebook cells (which use codemirror) but not text editors (which use codemirror)... Probably just needs a config fix somewhere |
Hah! I got it. It's the same problem that I fixed for the notebook and console waaay back in #5060: the 'shift tab' shortcut is also being used for the command to launch the interactive help tooltip. What's meant to happen is that if you just place the cursor at, say, a python keyword, 'shift tab' will open a tooltip with the relevant docstring; but if you have text selected and then hit 'shift tab' you get a de-dent. This is indeed what happens in the editor in notebook and terminal. However in the text file editor, for whatever reason, the tooltip command is currently swallowing the 'shift tab' shortcut even when text is selected. I'll see if I can fix it updateThis will be fixed by #7865 |
That 'shift-tab' is not working, so I have to press Ctrl-Z |
To clarify, |
I love the ability to highlight and de-indent a block of text in the Notebook editor with shift+tab. However, this feature doesn't seem to work in the text editor (i.e., if you do File->New->Text File)... would it be simple to add?
The text was updated successfully, but these errors were encountered: