mux-sesh 1.0.1

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,224 @@
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
+ "project_paths": ["~/dev", "~/personal", "~/work"],
108
+ "repos_path": "~/dev/repos",
109
+ "editor": "nvim",
110
+ "editor_cmd": "nvim -c \"lua vim.defer_fn(function() if pcall(require, 'telescope') then vim.cmd('Telescope find_files') end end, 100)\"",
111
+ "keybind_mode": "vim", #other option is 'standard'
112
+ "start_in_search_mode": false
113
+ }
114
+ ```
115
+
116
+
117
+ ### Configuration Options
118
+
119
+ - **`project_Paths`** - Array of directories to scan for projects
120
+ - **`repos_Path`** - Directory where GitHub repositories will be cloned
121
+ - **`editor`** - Default editor to use
122
+ - **`editor_Cmd`** - Command to run when opening editor
123
+ - **`keybind_mode`** - alternative keybinds for those who do not want vim like binds
124
+ - **`start_in_search_mode`** - alternative keybinds for those who do not want vim like binds
125
+
126
+ ## Usage Examples
127
+
128
+ ### Quick Session Switching
129
+ ```bash
130
+ # Open mux-sesh
131
+ mux-sesh
132
+
133
+ # Press 1-9 to instantly switch to that session
134
+ # Or use j/k to navigate and Enter to select
135
+ ```
136
+
137
+ ### Create Session from Project
138
+ ```bash
139
+ mux-sesh
140
+
141
+ # Press 'n' for new session
142
+ # Type project name to filter
143
+ # Press Enter to create session in that directory
144
+ ```
145
+
146
+ ### Clone from GitHub
147
+ ```bash
148
+ mux-sesh
149
+
150
+ # Press 'n' for new session
151
+ # Paste GitHub URL:
152
+ # https://github.com/user/repo
153
+ # or
154
+ # git@github.com:user/repo.git
155
+ # Press Enter to clone and create session
156
+ ```
157
+
158
+ ### Search Existing Sessions
159
+ ```bash
160
+ mux-sesh
161
+
162
+ # Press 'i' to search
163
+ # Type to filter sessions
164
+ # Press Enter to switch to first match
165
+ ```
166
+
167
+ ## Color Scheme
168
+
169
+ mux-sesh uses the beautiful [Catppuccin](https://github.com/catppuccin/catppuccin) color scheme with the following palette:
170
+
171
+ - **Primary**: `#f38ba8` (Pink)
172
+ - **Active**: `#a6e3a1` (Green)
173
+ - **Inactive**: `#6c7086` (Gray)
174
+ - **Border**: `#89b4fa` (Blue)
175
+ - **Key**: `#f9e2af` (Yellow)
176
+ - **Action**: `#cba6f7` (Mauve)
177
+
178
+ **Cross-Platform** - Works on Linux, macOS, Windows
179
+
180
+ ## Development
181
+
182
+ ```bash
183
+ # Install dependencies
184
+ bun install
185
+
186
+ # Run in dev mode (with hot reload)
187
+ bun run dev
188
+
189
+ # Type check
190
+ bun run typecheck
191
+
192
+ # Build for production
193
+ bun run build
194
+ ```
195
+
196
+ ## Contributing
197
+
198
+ Contributions are welcome! Please feel free to submit a Pull Request.
199
+
200
+ 1. Fork the repository
201
+ 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
202
+ 3. Commit your changes (`git commit -m 'Add some amazing feature'`)
203
+ 4. Push to the branch (`git push origin feature/amazing-feature`)
204
+ 5. Open a Pull Request
205
+
206
+ ## License
207
+
208
+ MIT License - see [LICENSE](./LICENSE) for details.
209
+
210
+ ## Acknowledgments
211
+
212
+ - Inspired by [ThePrimeagen's tmux-sessionizer](https://github.com/ThePrimeagen/.dotfiles/blob/master/bin/.local/scripts/tmux-sessionizer)
213
+ - Built with [OpenTUI](https://github.com/sst/opentui)
214
+ - UI design inspired by [nvim telescope plugin](https://github.com/nvim-telescope/telescope.nvim)
215
+
216
+ ## Related Projects
217
+
218
+ - [mux-manager](https://github.com/quiet-ghost/mux-manager) - Telescope-based tmux session manager for Neovim
219
+
220
+ ---
221
+
222
+ <p align="center">
223
+ Made with using <a href="https://github.com/sst/opentui">OpenTUI</a> and <a href="https://bun.sh">Bun</a>
224
+ </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": "1.0.1",
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
+ }