mux-sesh 2.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Your Name
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,219 @@
1
+ # mux-sesh
2
+
3
+ > A beautiful, fast tmux session manager built with OpenTUI and TypeScript
4
+
5
+ <p align="center">
6
+ <img src="screenshot.png" alt="mux-sesh screenshot" width="800">
7
+ </p>
8
+
9
+ ## Features
10
+
11
+ - **Fuzzy search** - Find sessions and projects instantly
12
+ - **Lightning fast** - Built with Bun and OpenTUI
13
+ - **Beautiful UI** - Catppuccin-themed interface
14
+ - **Vim keybindings** - Navigate with j/k or arrow keys
15
+ - **Project scanning** - Browse and create sessions from local directories
16
+ - **GitHub integration** - Clone repos directly from URLs
17
+ - **Quick select** - Use number keys (1-9) for instant switching
18
+ - **Session management** - Create, switch, kill, and rename sessions
19
+
20
+ ## Installation
21
+
22
+ ### Prerequisites
23
+
24
+ - [Bun](https://bun.sh) - JavaScript runtime (required)
25
+ - [Zig](https://ziglang.org) - Required for building OpenTUI
26
+ - tmux - Terminal multiplexer
27
+ - git - For GitHub cloning feature
28
+
29
+ ```bash
30
+ # Install Bun
31
+ curl -fsSL https://bun.sh/install | bash
32
+
33
+ # Install Zig (macOS)
34
+ brew install zig
35
+
36
+ # Install Zig (Linux - check https://ziglang.org/download/)
37
+ ```
38
+
39
+ ### Install from npm/Bun
40
+
41
+ ```bash
42
+ bun install -g mux-sesh
43
+
44
+ # Then run
45
+ mux-sesh
46
+ ```
47
+
48
+ ### Install from Source
49
+
50
+ ```bash
51
+ git clone https://github.com/quiet-ghost/mux-sesh.git
52
+ cd mux-sesh
53
+ git checkout opentui-convert
54
+
55
+ # Install dependencies
56
+ bun install
57
+
58
+ # Build standalone executable
59
+ bun run build
60
+
61
+ # Install globally
62
+ sudo cp dist/mux-sesh /usr/local/bin/
63
+ # or
64
+ cp dist/mux-sesh ~/.local/bin/
65
+ ```
66
+
67
+ ## Keybindings
68
+
69
+ ### Normal Mode
70
+ | Key | Action |
71
+ |-----|--------|
72
+ | `j` / `k` or `↑` / `↓` | Navigate up/down |
73
+ | `1-9` | Quick select session/project |
74
+ | `Enter` | Switch to session / Create from project |
75
+ | `i` | Enter search mode |
76
+ | `n` | Create new session |
77
+ | `d` | Kill selected session |
78
+ | `r` | Rename selected session |
79
+ | `R` | Refresh list |
80
+ | `s` | Switch to sessions view |
81
+ | `p` | Switch to projects view |
82
+ | `q` or `Esc` | Quit |
83
+
84
+ ### Search Mode
85
+ | Key | Action |
86
+ |-----|--------|
87
+ | Type to search | Filter sessions/projects |
88
+ | `Enter` | Select first result |
89
+ | `↑` / `↓` | Navigate results |
90
+ | `Esc` | Cancel search |
91
+
92
+ ### New Session Mode
93
+ | Key | Action |
94
+ |-----|--------|
95
+ | Type project name | Filter projects |
96
+ | Paste GitHub URL | Clone and create session |
97
+ | Type custom name | Create named session |
98
+ | `Enter` | Confirm selection |
99
+ | `Esc` | Cancel |
100
+
101
+ ## Configuration
102
+
103
+ Configuration is stored at `~/.config/mux-sesh/config.json`:
104
+
105
+ ```json
106
+ {
107
+ "projectPaths": ["~/dev", "~/personal", "~/work"],
108
+ "reposPath": "~/dev/repos",
109
+ "editor": "nvim",
110
+ "editorCmd": "nvim -c \"lua vim.defer_fn(function() if pcall(require, 'telescope') then vim.cmd('Telescope find_files') end end, 100)\""
111
+ }
112
+ ```
113
+
114
+ ### Configuration Options
115
+
116
+ - **`projectPaths`** - Array of directories to scan for projects
117
+ - **`reposPath`** - Directory where GitHub repositories will be cloned
118
+ - **`editor`** - Default editor to use
119
+ - **`editorCmd`** - Command to run when opening editor
120
+
121
+ ## Usage Examples
122
+
123
+ ### Quick Session Switching
124
+ ```bash
125
+ # Open mux-sesh
126
+ mux-sesh
127
+
128
+ # Press 1-9 to instantly switch to that session
129
+ # Or use j/k to navigate and Enter to select
130
+ ```
131
+
132
+ ### Create Session from Project
133
+ ```bash
134
+ mux-sesh
135
+
136
+ # Press 'n' for new session
137
+ # Type project name to filter
138
+ # Press Enter to create session in that directory
139
+ ```
140
+
141
+ ### Clone from GitHub
142
+ ```bash
143
+ mux-sesh
144
+
145
+ # Press 'n' for new session
146
+ # Paste GitHub URL:
147
+ # https://github.com/user/repo
148
+ # or
149
+ # git@github.com:user/repo.git
150
+ # Press Enter to clone and create session
151
+ ```
152
+
153
+ ### Search Existing Sessions
154
+ ```bash
155
+ mux-sesh
156
+
157
+ # Press 'i' to search
158
+ # Type to filter sessions
159
+ # Press Enter to switch to first match
160
+ ```
161
+
162
+ ## Color Scheme
163
+
164
+ mux-sesh uses the beautiful [Catppuccin](https://github.com/catppuccin/catppuccin) color scheme with the following palette:
165
+
166
+ - **Primary**: `#f38ba8` (Pink)
167
+ - **Active**: `#a6e3a1` (Green)
168
+ - **Inactive**: `#6c7086` (Gray)
169
+ - **Border**: `#89b4fa` (Blue)
170
+ - **Key**: `#f9e2af` (Yellow)
171
+ - **Action**: `#cba6f7` (Mauve)
172
+
173
+ **Cross-Platform** - Works on Linux, macOS, Windows
174
+
175
+ ## Development
176
+
177
+ ```bash
178
+ # Install dependencies
179
+ bun install
180
+
181
+ # Run in dev mode (with hot reload)
182
+ bun run dev
183
+
184
+ # Type check
185
+ bun run typecheck
186
+
187
+ # Build for production
188
+ bun run build
189
+ ```
190
+
191
+ ## Contributing
192
+
193
+ Contributions are welcome! Please feel free to submit a Pull Request.
194
+
195
+ 1. Fork the repository
196
+ 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
197
+ 3. Commit your changes (`git commit -m 'Add some amazing feature'`)
198
+ 4. Push to the branch (`git push origin feature/amazing-feature`)
199
+ 5. Open a Pull Request
200
+
201
+ ## License
202
+
203
+ MIT License - see [LICENSE](./LICENSE) for details.
204
+
205
+ ## Acknowledgments
206
+
207
+ - Inspired by [ThePrimeagen's tmux-sessionizer](https://github.com/ThePrimeagen/.dotfiles/blob/master/bin/.local/scripts/tmux-sessionizer)
208
+ - Built with [OpenTUI](https://github.com/sst/opentui)
209
+ - UI design inspired by [nvim telescope plugin](https://github.com/nvim-telescope/telescope.nvim)
210
+
211
+ ## Related Projects
212
+
213
+ - [mux-manager](https://github.com/quiet-ghost/mux-manager) - Telescope-based tmux session manager for Neovim
214
+
215
+ ---
216
+
217
+ <p align="center">
218
+ Made with using <a href="https://github.com/sst/opentui">OpenTUI</a> and <a href="https://bun.sh">Bun</a>
219
+ </p>
@@ -0,0 +1,7 @@
1
+ {
2
+ "project_paths": ["~/dev", "~/personal", "~/work", "~/projects"],
3
+ "repos_path": "~/dev/repos",
4
+ "editor": "nvim",
5
+ "editor_cmd": "nvim -c \"lua vim.defer_fn(function() if pcall(require, 'telescope') then vim.cmd('Telescope find_files') end end, 100)\"",
6
+ "keybind_mode": "vim"
7
+ }
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "mux-sesh",
3
+ "version": "2.0.0",
4
+ "description": "A beautiful tmux session manager built with OpenTUI - fuzzy search sessions, manage projects, clone from GitHub",
5
+ "type": "module",
6
+ "bin": {
7
+ "mux-sesh": "./src/index.tsx"
8
+ },
9
+ "files": [
10
+ "src",
11
+ "README.md",
12
+ "LICENSE",
13
+ "config.example.json"
14
+ ],
15
+ "scripts": {
16
+ "dev": "bun run src/index.tsx",
17
+ "build": "bun build src/index.tsx --compile --outfile dist/mux-sesh",
18
+ "start": "bun run src/index.tsx",
19
+ "typecheck": "tsc --noEmit",
20
+ "format": "prettier --write \"src/**/*.{ts,tsx}\"",
21
+ "format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
22
+ "test": "bun test",
23
+ "prepublishOnly": "bun run typecheck"
24
+ },
25
+ "keywords": [
26
+ "tmux",
27
+ "tui",
28
+ "terminal",
29
+ "session-manager",
30
+ "opentui",
31
+ "cli",
32
+ "tmux-manager",
33
+ "terminal-ui",
34
+ "fuzzy-search",
35
+ "project-manager"
36
+ ],
37
+ "author": "quiet-ghost",
38
+ "license": "MIT",
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "https://github.com/quiet-ghost/mux-sesh.git"
42
+ },
43
+ "bugs": {
44
+ "url": "https://github.com/quiet-ghost/mux-sesh/issues"
45
+ },
46
+ "homepage": "https://github.com/quiet-ghost/mux-sesh#readme",
47
+ "engines": {
48
+ "bun": ">=1.0.0"
49
+ },
50
+ "dependencies": {
51
+ "@opentui/core": "latest",
52
+ "@opentui/react": "latest",
53
+ "react": "^19.0.0"
54
+ },
55
+ "devDependencies": {
56
+ "@types/bun": "latest",
57
+ "@types/react": "^19.0.0",
58
+ "typescript": "^5.0.0"
59
+ }
60
+ }