Skip to content

Commit

Permalink
feat: go to workspace from session (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaP106 authored Jan 11, 2025
1 parent af106c8 commit 42daefb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/app/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,16 @@ func (s *Sessions) init() {
toast("Killed session "+session.Workspace.Name, toastInfo)
}, fmt.Sprintf("Are you sure you want to delete session for %s?", session.Workspace.Name))
}).
Set('w', "Go to workspace", func() {
session := s.selected()
if session == nil {
return
}
a.topics.selectTopic(session.Workspace.Topic)
a.workspaces.refresh()
a.workspaces.selectWorkspace(session.Workspace)
a.workspaces.focus()
}).
Set('h', "Focus workspaces view", func() {
a.workspaces.focus()
}).
Expand Down

0 comments on commit 42daefb

Please sign in to comment.