mirror of
https://github.com/nushell/nushell.git
synced 2026-11-26 11:35:37 +08:00
## Description A `tui split` with 30 or more `1fr` children can hang, because ratatui's layout solver may not finish with that many `Fill` constraints. At 40, none of 10 runs did. Up to 16 `Fill` children, ratatui solves the split as before, so ordinary splits don't change. Past 16, the solver gets the `Fill` children as one `Fill` of their summed weight, and `pin_fills` in `layout.rs` then gives each child its share of that space as a `Length`. With `Length` and `max:N` siblings, those are the widths ratatui's own solve gives. With an `N%` sibling a child can be one cell off. With a `min:N` sibling, the `Fill` children and the `min:N` one can be up to two cells off. Drawing, mouse drags and the arrow-key resize all go through the new `SplitDir::split`. ## User-facing changes (Release notes) Fixed `tui split` hanging when it has 30 or more `1fr` children. ## Additional notes
Nushell core libraries and plugins
These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.
Foundational libraries are split into two kinds of crates:
- Core crates - those crates that work together to build the Nushell language engine
- Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.
Plugins are likewise also split into two types:
- Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
- Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.