Ticket #1684 (closed enhancement: invalid)
[with bundle, needs work] Intelligent indentation when user presses "enter".
| Reported by: | boothby | Owned by: | boothby |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-duplicate/invalid/wontfix |
| Component: | notebook | Keywords: | editor_wstein |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
Common IDE feature:
- if the cursor is in an indented block, pressing "enter" should add a line which has the same indentaion as the previous line.
- if the cursor is in a line with, for example, an "if" statement, pressing enter should increase indentation on the next line.
Attachments
Change History
comment:2 Changed 5 years ago by mhansen
- Summary changed from Intelligent indentation when user presses "enter". to [with bundle, with negative review] Intelligent indentation when user presses "enter".
comment:3 Changed 5 years ago by craigcitro
- Keywords editor_wstein added
- Summary changed from [with bundle, with negative review] Intelligent indentation when user presses "enter". to [with bundle, needs work] Intelligent indentation when user presses "enter".
comment:4 Changed 5 years ago by jason
I'm not sure of your logic to accomplish #2 (I couldn't seem to find it in the bundle), but it seems that it would be easy to just indent more on the next line if the current line ends in a ":".
Note: See
TracTickets for help on using
tickets.


First installment, implements item 1.