mux-sesh 1.1.2 → 1.1.3
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 +24 -5
- package/package.json +1 -1
- package/src/tmux/index.ts +1 -1
package/README.md
CHANGED
|
@@ -113,15 +113,34 @@ Configuration is stored at `~/.config/mux-sesh/config.json`:
|
|
|
113
113
|
}
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
|
|
117
116
|
### Configuration Options
|
|
118
117
|
|
|
119
|
-
- **`
|
|
120
|
-
- **`
|
|
118
|
+
- **`project_paths`** - Array of directories to scan for projects
|
|
119
|
+
- **`repos_path`** - Directory where GitHub repositories will be cloned
|
|
121
120
|
- **`editor`** - Default editor to use
|
|
122
|
-
- **`
|
|
121
|
+
- **`editor_cmd`** - Command to run when opening editor
|
|
123
122
|
- **`keybind_mode`** - alternative keybinds for those who do not want vim like binds
|
|
124
|
-
- **`start_in_search_mode`** -
|
|
123
|
+
- **`start_in_search_mode`** - Start in search mode by default
|
|
124
|
+
|
|
125
|
+
### tmux Integration
|
|
126
|
+
|
|
127
|
+
For the best experience, bind mux-sesh to a global tmux keybinding. Add this to your `~/.tmux.conf`:
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# Open mux-sesh in a popup with Alt+w (no prefix required)
|
|
131
|
+
bind-key -n M-w popup -E -w 62% -h 70% "mux-sesh"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
After adding the binding, reload your tmux config:
|
|
135
|
+
```bash
|
|
136
|
+
tmux source-file ~/.tmux.conf
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Now you can press `Alt+w` from anywhere in tmux (including inside nvim) to launch mux-sesh.
|
|
140
|
+
|
|
141
|
+
**Alternative Integration:**
|
|
142
|
+
- **From Neovim**: Use [mux-manager](https://github.com/quiet-ghost/mux-manager) - a Telescope-based tmux session manager that integrates directly into Neovim
|
|
143
|
+
- **With prefix**: Use `bind-key f popup -E -w 80% -h 80% "mux-sesh"` if you prefer requiring the tmux prefix key first
|
|
125
144
|
|
|
126
145
|
## Usage Examples
|
|
127
146
|
|
package/package.json
CHANGED
package/src/tmux/index.ts
CHANGED
|
@@ -144,7 +144,7 @@ export async function getSessionDetails(sessionName: string): Promise<SessionDet
|
|
|
144
144
|
const windows: WindowInfo[] = []
|
|
145
145
|
|
|
146
146
|
for (const line of windowLines) {
|
|
147
|
-
const [index, name] = line.split(':
|
|
147
|
+
const [index, name] = line.split(':')
|
|
148
148
|
|
|
149
149
|
// Get current directory
|
|
150
150
|
const dirProc = spawn([
|