feat: add --direction flag to markdown open command

Merged
ZS
8mo ago
+19-6

Adds --direction <left|right|up|down> flag to cmux markdown open, matching the convention used by new-pane and new-split. Defaults to right, preserving existing behavior.


Summary by cubic

Adds a --direction <left|right|up|down> flag to cmux markdown open to control where the markdown split opens. Default is right, preserving behavior and matching new-pane/new-split.

  • New Features
    • CLI accepts --direction and passes direction to the server; invalid values return a clear invalid_params error.
    • Terminal picks orientation and insertion based on direction (horizontal/vertical; insert-first for left/up); usage/help and examples updated.

Summary by CodeRabbit

Release Notes

  • New Features
    • Added support for directional markdown splits with the new --direction option. Users can now specify split direction (right, left, up, down) when opening markdown panels, providing greater control over workspace layout.