Skip to content

Commit 125a7fe

Browse files
committed
chore: update CLI version to 0.1.6 and enable mouse support in tmux
1 parent 2e4502f commit 125a7fe

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

internal/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
const (
17-
CliVersion = "0.1.5"
17+
CliVersion = "0.1.6"
1818
CheckInterval = 10 * time.Minute
1919
repoOwner = "coollabsio"
2020
repoName = "jean"

session/tmux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ const jeanTmuxConfig = `
202202
# WARNING: Do not modify the marker lines above/below - they are used for automatic updates
203203
# You can safely delete this entire section if you no longer want these settings
204204
205-
# Disable mouse support completely
206-
set -g mouse off
205+
# Enable mouse support for scrolling and selection
206+
set -g mouse on
207207
208208
# Enable clickable links (URLs and local filesystem paths)
209209
set -g allow-passthrough on

tui/update.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,8 +2329,7 @@ func (m Model) handleSessionListModalInput(msg tea.KeyMsg) (tea.Model, tea.Cmd)
23292329
return m, nil
23302330
},
23312331
onCancel: func(m Model) (tea.Model, tea.Cmd) {
2332-
// Clear notifications when closing modal to avoid lingering messages
2333-
m.notification = nil
2332+
// Close modal without clearing notifications - let them auto-clear via timer
23342333
m.modal = noModal
23352334
return m, nil
23362335
},
@@ -2339,11 +2338,13 @@ func (m Model) handleSessionListModalInput(msg tea.KeyMsg) (tea.Model, tea.Cmd)
23392338
// Kill selected session
23402339
sess := m.sessions[m.sessionIndex]
23412340
if err := m.sessionManager.Kill(sess.Name); err != nil {
2342-
m.showErrorNotification("Failed to kill session", 3*time.Second)
2341+
return m, m.showErrorNotification("Failed to kill session", 3*time.Second)
23432342
} else {
2344-
m.showSuccessNotification("Session killed", 3*time.Second)
2345-
// Reload sessions
2346-
return m, m.loadSessions()
2343+
// Batch notification with session reload
2344+
return m, tea.Batch(
2345+
m.showSuccessNotification("Session killed", 3*time.Second),
2346+
m.loadSessions(),
2347+
)
23472348
}
23482349
}
23492350
return m, nil

tui/view.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ func (m Model) View() string {
1818

1919
// Show modal if active
2020
if m.modal != noModal {
21-
return m.renderModal()
21+
modalContent := m.renderModal()
22+
// Apply notification overlay if present
23+
if m.notification != nil {
24+
notification := m.renderNotification()
25+
return m.renderNotificationOverlay(modalContent, notification)
26+
}
27+
return modalContent
2228
}
2329

2430
// Render main view with panels

0 commit comments

Comments
 (0)