-
Notifications
You must be signed in to change notification settings - Fork 0
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
Hitting tab at beginning of content on line doesn't move it to correct indent level #12408
Comments
Comment by njx The issue is that if we're immediately before the content, we don't try to do CodeMirror's smart autoindent. This is because, if the user wants to indent further past CodeMirror's indent level, we don't want to back-indent to the "correct" level. However, it seems like the right heuristic would be: if the user is already at or after CodeMirror's desired indent level, we should just insert a tab. The problem is we can't determine what the "correct" indent level is without just running CodeMirror's indentation algorithm, so there isn't an easy hack for this. |
Comment by njx Note that we should take the fix for #5068 (codemirror/codemirror5#1905 plus nj/issue-5608) before working on this, so we should move this to sprint 34 once that milestone is available. |
Comment by njx To me, medium priority. |
Comment by njx Nominating for 1.0. |
Comment by njx Removing from 1.0 - it works correctly in a fair number of cases and this is an edge case. |
Comment by njx Assigning to |
Issue by njx
Tuesday Oct 22, 2013 at 22:58 GMT
Originally opened as adobe/brackets#5633
Found this while working on #5068.
Result: The content only indents one level. I would expect it to indent to the correct level in this case as well.
The text was updated successfully, but these errors were encountered: