Code Function Writers Rejoice!
The devs have granted us a gift and introduced newlines in formula functions! Although I believe this is just the first step in a number of necessary features for writing complex formulas, it is certainly a welcomed one!
How do I do it?? Just use SHIFT + ENTER while writing a formula.
Why would I need such a thing?? Coda is designed to allow complex environments designed by their users. The more complicated the environments, the more complex the formulas. The real issue isnât really with writing formulas (although still complicatedâŚ), it has more to do with maintenance. When coming back to a complex formula written months, weeks, or even just days ago, it can be hard to remember what it does, and particularly hard to remember how it does it. Also useful, is to note why you wrote itâŚ
Here is an example of using newlines to make things clearer:
Before
After
PS - Yes, I stitched together multiple photos to make the âafterâ photo⌠Give me larger edit areas!
Things that are still necessary to make the formula writing and maintenance process manageable:
- Inline comments # Because of course we do!
- Custom (larger�) formula-writing box⌠It is entirely too small right now
- (Doesnât my stitched-together photo above look so pretty?)
- Longer variable cells so I can see the names of my variables!
- (See: "Var - Console - Toggle PeâŚ? aboveâŚ)
Thanks for the constant improvements!
Lloyd