ursus
05/24/2025, 1:05 AMGreyhairRedbear
05/26/2025, 6:59 AMursus
05/26/2025, 9:03 AMGreyhairRedbear
05/26/2025, 11:21 AMmaxWidth
in the ktfmt
block to a value or is it still at the default?
In my experience, respecting the width never has been an issue, but fluent chains that fit on one line will remain there iirc. If you want to have breaks inserted, you could always use the empty comment trick (add linebreaks manually, insert an empty comment after the first part of the call chain). Quite ugly, but better than nothingursus
05/26/2025, 11:27 AMGreyhairRedbear
05/26/2025, 11:31 AMGreyhairRedbear
05/26/2025, 11:34 AMursus
05/26/2025, 11:40 AMGreyhairRedbear
05/26/2025, 11:43 AMGreyhairRedbear
05/26/2025, 11:45 AMursus
05/26/2025, 2:28 PMursus
05/26/2025, 2:28 PMGreyhairRedbear
05/26/2025, 2:42 PMdartfmt
). ktfmt
is closest to dartfmt
for me (deterministic results based on input tokens), that's why I chose it. Not having to think about formatting anymore can be quite liberatingursus
05/26/2025, 2:43 PMursus
05/26/2025, 2:43 PMApp { SelectableCard { Button { Text }}}}
is obviously less clear; so not sure if this holds up in 2025 where UIs are in kotlinNivaldo H Bondança
05/30/2025, 12:35 PM.kts
files as well where we have plenty of lambdas where we don't want this kind of inlining most of the time.Nivaldo H Bondança
05/30/2025, 12:35 PMursus
05/30/2025, 2:06 PM