Expand description
Helix-style layout calculations for microscope
Layout is bottom-anchored with horizontal split:
- Results panel (40% width) on the left
- Preview panel (60% width) on the right
- Picker takes 40% of screen height, anchored to bottom
+---------------------------------------------------------------+
| Editor Content |
+------------------ y = screen_height - picker_height -----------+
| Results (40%) | Preview (60%) |
| +-----------------------------+ | +---------------------------+|
| | > query_ [I] | | | Preview: filename ||
| | --------------------------- | | | ------------------------- ||
| | > selected_item.rs | | | 1 fn main() { ||
| | another_file.rs | | | 2 ... ||
| | third_file.rs | | | 3 } ||
| +-----------------------------+ | +---------------------------+||
+----------------------------------+------------------------------+
| 4/128 files <CR> Open | <Esc> Close |
+---------------------------------------------------------------+Structs§
- Layout
Bounds - Calculated layout bounds for microscope panels
- Layout
Config - Layout configuration for microscope
- Panel
Bounds - Bounds for a single panel
Functions§
- calculate_
layout - Calculate layout bounds for microscope
- visible_
item_ count - Number of visible items based on panel height