Closed wouterbeek closed 4 years ago
PS: I can confirm that YASQE does try to implement auto-completion variant (3) described by me in the issue.
This* is fixed in the latest release (see https://github.com/TriplyDB/Yasgui and https://yasgui.triply.cc)
*) There are other indentation issues. But this one I can't reproduce in the new version
When pressing `RET' after the semi-colon, I expect auto-indentation to indent (1) to the same indentation level of the previous line (2 space in this case), or (2) to the same indentation level of the previous line plus a fixed amount (e.g., 4 spaces in this case). A third option (3) might be to indent to the column at which the predicate of the previous line starts (18 spaces in this case), but this is probably not a good idea because the indentation becomes very unregular WRT other parts of the query.
What currently happens is that auo-indentation moves to column 54 or something, probably trying to align with the end-of-statement character from the previous line (see the
<HERE>
pointer in the query string below).