-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Add indentation shortcuts and simple indentation for non-Python files #4567
PR: Add indentation shortcuts and simple indentation for non-Python files #4567
Conversation
@rlaverde, other tests are failing. Please review that. |
0bd0904
to
8c4a876
Compare
Fixed, It was missing to forward pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @rlaverde!
@@ -367,6 +367,8 @@ | |||
'editor/delete line': 'Ctrl+D', | |||
'editor/transform to uppercase': 'Ctrl+Shift+U', | |||
'editor/transform to lowercase': 'Ctrl+U', | |||
'editor/indent': 'Ctrl+[', | |||
'editor/unindent': 'Ctrl+]', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rlaverde, these shortcuts are used in the reversed, i.e.
Ctrl + ]
-> IndentCtrl + [
-> Unindent
At least that's the case in Sublime: https://gist.github.com/eteanga/1736542
So please open a new PR to fix that.
Fixes: #3406
Fixes: #4157
I added configurable shortcuts for indent/unindent, with
Ctrl+[
/Ctrl+]
as defaults, I didn't changeTab
/Shift+Tab
logic because Tab can't be a shortcut (so I leave it hardcoded), also it could interfere with autocompletionI didn't add new preferences for simple indentation, It's activated in non-Python files. as discussed in #4157