tmux-tui 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -61
- package/dist/tmuxtui.js +82 -82
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# tmuxtui
|
|
2
2
|
|
|
3
|
+
[中文文档](README_zh.md)
|
|
4
|
+
|
|
3
5
|
Interactive terminal UI for managing tmux sessions. Browse, create, rename, detach, and kill sessions without memorizing tmux commands.
|
|
4
6
|
|
|
5
7
|
## Features
|
|
6
8
|
|
|
7
|
-
- **Session browser** — list all tmux sessions sorted by last used, with window count and creation time
|
|
8
|
-
- **Quick attach** — select and attach to any session instantly
|
|
9
|
+
- **Session browser** — list all tmux sessions sorted by last used, with window count, working directory, and creation time
|
|
10
|
+
- **Quick attach** — select and attach to any session instantly; auto sets terminal tab title to `[tmux] session_name`
|
|
9
11
|
- **Create sessions** — new session with custom name and working directory
|
|
12
|
+
- **Window manager** — press `c` to enter config mode: create, rename, delete windows, and initialize pane layouts
|
|
13
|
+
- **Pane layout presets** — 9 built-in layouts (IDE, Quad, Triple, etc.) with live preview
|
|
10
14
|
- **Rename / Detach / Kill** — full session lifecycle management
|
|
11
15
|
- **Works everywhere** — runs inside or outside tmux (auto-detects and uses `switch-client` or `attach-session`)
|
|
12
16
|
- **`init` command** — register the current directory as a new tmux session in one step
|
|
@@ -40,77 +44,49 @@ Keyboard shortcuts:
|
|
|
40
44
|
| `r` | Rename session |
|
|
41
45
|
| `x` | Detach session |
|
|
42
46
|
| `d` | Kill session (with confirm) |
|
|
47
|
+
| `c` | Config — window management |
|
|
43
48
|
| `q` | Quit |
|
|
44
49
|
|
|
45
50
|
When creating a new session, press `Tab` to switch between the name and path fields.
|
|
46
51
|
|
|
47
|
-
###
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
tmuxtui init
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Creates a new tmux session named after the current directory and opens it with tmuxtui.
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
[English](#tmuxtui) | [中文](#tmuxtui-1)
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
# tmuxtui
|
|
62
|
-
|
|
63
|
-
tmux 会话管理的交互式终端界面。无需记忆 tmux 命令,即可浏览、创建、重命名、分离和销毁会话。
|
|
64
|
-
|
|
65
|
-
## 功能
|
|
66
|
-
|
|
67
|
-
- **会话浏览** — 按最近使用排序列出所有 tmux 会话,显示窗口数和创建时间
|
|
68
|
-
- **快速接入** — 选中会话后一键 attach
|
|
69
|
-
- **创建会话** — 自定义名称和工作目录
|
|
70
|
-
- **重命名 / 分离 / 销毁** — 完整的会话生命周期管理
|
|
71
|
-
- **全场景适配** — 在 tmux 内外均可运行(自动检测并使用 `switch-client` 或 `attach-session`)
|
|
72
|
-
- **`init` 命令** — 一行命令将当前目录注册为新的 tmux 会话
|
|
73
|
-
|
|
74
|
-
## 环境要求
|
|
75
|
-
|
|
76
|
-
- Node.js >= 18
|
|
77
|
-
- tmux >= 3.2
|
|
78
|
-
|
|
79
|
-
## 安装
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
npm install -g tmux-tui
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## 使用
|
|
86
|
-
|
|
87
|
-
### 交互式 TUI
|
|
52
|
+
### Config mode (window management)
|
|
88
53
|
|
|
89
|
-
|
|
90
|
-
tmuxtui
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
快捷键:
|
|
94
|
-
|
|
95
|
-
| 按键 | 操作 |
|
|
96
|
-
|------|------|
|
|
97
|
-
| `↑` `↓` | 选择会话 |
|
|
98
|
-
| `Enter` | 接入会话 |
|
|
99
|
-
| `n` | 新建会话 |
|
|
100
|
-
| `r` | 重命名会话 |
|
|
101
|
-
| `x` | 分离会话 |
|
|
102
|
-
| `d` | 销毁会话(需确认) |
|
|
103
|
-
| `q` | 退出 |
|
|
54
|
+
Press `c` on any session to enter config mode. This lets you manage windows within the selected session.
|
|
104
55
|
|
|
105
|
-
|
|
56
|
+
| Key | Action |
|
|
57
|
+
|-----|--------|
|
|
58
|
+
| `↑` `↓` | Select window |
|
|
59
|
+
| `n` | New window |
|
|
60
|
+
| `r` | Rename window |
|
|
61
|
+
| `d` | Delete window (with confirm) |
|
|
62
|
+
| `i` | Init pane layout (only for single-pane inactive windows) |
|
|
63
|
+
| `Esc` | Back to session list |
|
|
64
|
+
|
|
65
|
+
#### Pane layout presets
|
|
66
|
+
|
|
67
|
+
When you press `i`, you can choose from 9 built-in pane layouts:
|
|
68
|
+
|
|
69
|
+
| Layout | Panes | Description |
|
|
70
|
+
|--------|-------|-------------|
|
|
71
|
+
| 1. Single | 1 | No splits |
|
|
72
|
+
| 2. H-Split | 2 | Horizontal 50/50 |
|
|
73
|
+
| 3. V-Split | 2 | Vertical 50/50 |
|
|
74
|
+
| 4. IDE | 2 | Left sidebar (25%) + main |
|
|
75
|
+
| 5. IDE+Term | 3 | IDE + bottom terminal |
|
|
76
|
+
| 6. Triple | 3 | Three equal columns |
|
|
77
|
+
| 7. IDE+Side | 3 | IDE with right sidebar |
|
|
78
|
+
| 8. Quad | 4 | 2x2 grid |
|
|
79
|
+
| 9. IDE Pro | 4 | IDE + split right panel |
|
|
106
80
|
|
|
107
|
-
###
|
|
81
|
+
### Quick register current project
|
|
108
82
|
|
|
109
83
|
```bash
|
|
110
84
|
tmuxtui init
|
|
85
|
+
# or
|
|
86
|
+
tmuxtui -i
|
|
111
87
|
```
|
|
112
88
|
|
|
113
|
-
|
|
89
|
+
Creates a new tmux session named after the current directory and opens it with tmuxtui.
|
|
114
90
|
|
|
115
91
|
## License
|
|
116
92
|
|