1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//! # tmuxrs
//!
//! A modern, Rust-based tmux session manager with centralized configuration and directory-aware execution.
//!
//! tmuxrs is a drop-in replacement for [tmuxinator](https://github.com/tmuxinator/tmuxinator) that solves
//! the scattered configuration problem while maintaining full compatibility.
//!
//! ## Key Features
//!
//! - **Drop-in tmuxinator replacement** - Use existing configs without changes
//! - **Centralized configuration** - All configs in `~/.config/tmuxrs/`
//! - **Directory-aware execution** - Auto-detects sessions from current directory
//! - **Layout support** - Complex window layouts with multiple panes
//! - **TTY-aware attachment** - Seamless terminal takeover
//!
//! ## Quick Start
//!
//! ```bash
//! # Install tmuxrs
//! cargo install tmuxrs
//!
//! # Create a configuration
//! mkdir -p ~/.config/tmuxrs
//! cat > ~/.config/tmuxrs/myproject.yml << EOF
//! name: myproject
//! root: ~/code/myproject
//! windows:
//! - editor:
//! layout: main-vertical
//! panes:
//! - vim
//! - rails server
//! EOF
//!
//! # Start the session
//! tmuxrs start myproject
//! ```
//!
//! ## Configuration
//!
//! tmuxrs uses YAML configuration files stored in `~/.config/tmuxrs/`. The format is fully
//! compatible with tmuxinator configurations.
//!
//! ### Simple Windows
//! ```yaml
//! name: simple-project
//! root: ~/code/simple-project
//! windows:
//! - editor: vim
//! - server: rails server
//! ```
//!
//! ### Layout Windows
//! ```yaml
//! name: layout-project
//! root: ~/code/layout-project
//! windows:
//! - main:
//! layout: main-vertical
//! panes:
//! - vim src/main.rs
//! - cargo watch -x run
//! ```
//!
//! ## Core Innovation
//!
//! tmuxrs combines **centralized configuration management** with **directory-aware execution**:
//!
//! - All configurations live in `~/.config/tmuxrs/`
//! - `tmuxrs start` auto-detects the right config based on your current directory
//! - No more scattered `.tmuxinator.yml` files across projects
//! - Works regardless of where your project is located