I apologize, I accidentally submitted the bug without the details. I'm trying to edit it now. I will ping here once updated. If unable to update, I will reply to you here with the bug content.
Ugh sorry. Now I accidentally put the details in an L1 reply instead of replying to your question here. I'm writing all this on iPhone, and User Echo does not provide as good an experience as Textastic 😅
Note: Possible regression, unsure. It's also possible that this was always the behavior, and I am not strongly opinionated whether or not this is the desired behavior.
Repro:
Launch Textastic
Go to Settings ⏵ Code Editor ⏵ Text Editing
Enable all controls:
Code Completion
Indent Based on Syntax
Close Brackets and Quotes
Open .js or .ts file with Properties ⏵ Text Properties ⏵ Syntax Definition ⏵ JavaScript (*.js, *.htc) or TypeScript (*.ts)
Type '{' or '[' or '('
Textastic auto-closes the bracket pair with '}' or ']' or ')', with cursor between the matching pair
Input "Enter" on the keyboard
Expected: Bracket pair is split into three lines:
Line 1: opening bracket
Line 2: cursor with 1 level deeper indentation
Line 3: closing bracket
{ ⏵⏵| }
Actual: The expected behavior occurs for curly braces '{'.
However, for square brackets '[' or parens '(', the bracket pair is split into two lines:
Line 1: opening bracket
Line 2: closing bracket with same indentation as Line 1, cursor to the left of closing bracket
[ |]
Device info: App version: 10.3.2 iOS version: 17.5.1 Device: iPhone 15 Pro Max
Which syntax definition or type of file are you using?
I apologize, I accidentally submitted the bug without the details. I'm trying to edit it now. I will ping here once updated. If unable to update, I will reply to you here with the bug content.
Thanks a lot for the details. I’ll look into it.
Thank you as always!
Ugh sorry. Now I accidentally put the details in an L1 reply instead of replying to your question here. I'm writing all this on iPhone, and User Echo does not provide as good an experience as Textastic 😅
Note: Possible regression, unsure. It's also possible that this was always the behavior, and I am not strongly opinionated whether or not this is the desired behavior.
Repro:
Expected:
Bracket pair is split into three lines:
{
⏵⏵|
}
Actual:
The expected behavior occurs for curly braces '{'.
However, for square brackets '[' or parens '(', the bracket pair is split into two lines:
[
|]
Device info:
App version: 10.3.2
iOS version: 17.5.1
Device: iPhone 15 Pro Max