Skip to content

Commit

Permalink
feat(ui): use right mouse click to go back in the files tab
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 24, 2023
1 parent 50b33bc commit f97846f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/ui/pages/repo/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ func (f *Files) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
cmds = append(cmds, f.selectFileCmd)
}
}
case GoBackMsg:
switch f.activeView {

Check failure on line 254 in server/ui/pages/repo/files.go

View workflow job for this annotation

GitHub Actions / lint-soft

missing cases in switch of type repo.filesView: repo.filesViewLoading (exhaustive)
case filesViewFiles, filesViewContent:
cmds = append(cmds, f.deselectItemCmd())
}
case tea.KeyMsg:
switch f.activeView {
case filesViewFiles:
Expand Down

0 comments on commit f97846f

Please sign in to comment.