Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Options for opening and closing parentheses#887

Konstantin-Glukhov started this conversation inIdeas
Discussion options

Will a an option that controls parentheses placement after/before keywords make sense?

Option 1: Place an opening parenthesis on a separate line (default), otherwise append to the prior keyword with space/no space
Option 2: Place a closing parenthesis on a separate line (default), otherwise prepend to the next keyword with space/no space

Example:

from  (    (      "sakila"."film" "f"      join "sakila"."film_category" "fc" on (("f"."film_id" = "fc"."film_id"))    )    join "sakila"."film_actor" "fa" on (("f"."film_id" = "fa"."film_id"))  )where  (    ("fc"."category_id" = "c"."category_id")    and ("fa"."actor_id" = "a"."actor_id")  )

vs.

from (  (    "sakila"."film" "f"    join "sakila"."film_category" "fc" on (("f"."film_id" = "fc"."film_id"))  ) join "sakila"."film_actor" "fa" on (("f"."film_id" = "fa"."film_id"))) where (  ("fc"."category_id" = "c"."category_id")  and ("fa"."actor_id" = "a"."actor_id"))
You must be logged in to vote

Replies: 1 comment

Comment options

nene
Aug 15, 2025
Maintainer

There actually were some options for parenthesis placement in the past, but I've since removed them. Partly because the implementation was crap, but also because it's hard to support even one style well, supporting multiple is more work than I'm willing to take on.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
2 participants
@Konstantin-Glukhov@nene

[8]ページ先頭

©2009-2025 Movatter.jp