mux-sesh 1.1.4 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mux-sesh",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "description": "A beautiful tmux session manager built with OpenTUI - fuzzy search sessions, manage projects, clone from GitHub",
5
5
  "type": "module",
6
6
  "bin": {
package/src/app.tsx CHANGED
@@ -278,14 +278,14 @@ export function App() {
278
278
 
279
279
  const title =
280
280
  appMode === AppMode.Search
281
- ? ' Search Sessions'
281
+ ? ' Search Sessions'
282
282
  : appMode === AppMode.NewSession
283
- ? ' New Session'
283
+ ? '󰏌 New Session'
284
284
  : appMode === AppMode.Rename
285
285
  ? '󰏫 Rename Session'
286
286
  : appMode === AppMode.OpencodeManage
287
- ? ' Opencode Sessions'
288
- : ' Tmux Session Manager'
287
+ ? ' Opencode Sessions'
288
+ : ' Tmux Session Manager'
289
289
 
290
290
  const listStyle =
291
291
  appMode === AppMode.NewSession
@@ -82,7 +82,7 @@ export function handleNormalMode(
82
82
  // Handle delete/kill (d for vim, Ctrl+D for standard)
83
83
  if ((!isStandard && key.name === 'd') || (isStandard && key.ctrl && key.name === 'd')) {
84
84
  if (ctx.viewMode === ViewMode.Sessions && ctx.items[ctx.cursor]?.isSession) {
85
- ctx.handleKillSession(ctx.items[ctx.cursor].title)
85
+ ctx.handleKillSession(ctx.regularSessions[ctx.cursor].title)
86
86
  }
87
87
  return
88
88
  }
@@ -94,8 +94,8 @@ export function handleNormalMode(
94
94
  ) {
95
95
  if (ctx.viewMode === ViewMode.Sessions && ctx.items[ctx.cursor]?.isSession) {
96
96
  ctx.setAppMode(AppMode.Rename)
97
- ctx.setRenameTarget(ctx.items[ctx.cursor].title)
98
- ctx.setSearchQuery(ctx.items[ctx.cursor].title)
97
+ ctx.setRenameTarget(ctx.regularSessions[ctx.cursor].title)
98
+ ctx.setSearchQuery(ctx.regularSessions[ctx.cursor].title)
99
99
  }
100
100
  return
101
101
  }
@@ -143,7 +143,7 @@ export function handleNormalMode(
143
143
  // Handle selection
144
144
  if (key.name === 'return') {
145
145
  if (ctx.items[ctx.cursor]) {
146
- ctx.handleSelect(ctx.items[ctx.cursor])
146
+ ctx.handleSelect(ctx.regularSessions[ctx.cursor])
147
147
  }
148
148
  return
149
149
  }
@@ -151,8 +151,8 @@ export function handleNormalMode(
151
151
  // Handle number shortcuts (vim only)
152
152
  if (!isStandard && key.name >= '1' && key.name <= '9') {
153
153
  const num = parseInt(key.name) - 1
154
- if (num >= 0 && num < ctx.items.length) {
155
- ctx.handleSelect(ctx.items[num])
154
+ if (num >= 0 && num < ctx.regularSessions.length) {
155
+ ctx.handleSelect(ctx.regularSessions[num])
156
156
  }
157
157
  }
158
158
  }