mkremins / flense

Edit trees, not text
MIT License
101 stars 3 forks source link

Better layout algorithm for map children #7

Closed mkremins closed 10 years ago

mkremins commented 10 years ago

At the moment, maps are rendered very naïvely with regards to layout. Instead, an algorithm something like the following should be used:

Ideally, the layout algorithm should also attempt to vertically align multiline maps' keys and values into columns for clarity.

lypanov commented 10 years ago

It'd be great if forms taking pairwise parameters (eg cond / condp) could also get the same layout.

mkremins commented 10 years ago

This is definitely also something I'd like to have. Maybe it'll be possible to extend the mini-DSL I'm using for sequence layout into something that's smart enough to implement this sort of behavior. Properly implemented, that'd allow users to provide specialized layout options for other macros as well.