polypty 0.1.0

Agent-aware terminal multiplexer with sidebar tabs and nested panes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod collapse;
mod compact;
mod geometry;
mod tree_edit;

use crate::core::geometry::TerminalRect;

use super::{tree_layout, WorkspaceLayout};
use crate::workspace::{tree::SplitTree, SplitAxis};

fn split(tree: &mut SplitTree, target: u64, new_id: u64, axis: SplitAxis, extent: Option<u16>) {
    assert!(tree.split(target, new_id, axis, extent));
}

fn layout(tree: &SplitTree, area: TerminalRect, active: u64) -> WorkspaceLayout {
    tree_layout(tree, area, active)
}