Skip to content

Commit

Permalink
fix: Add help description for select deselect
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmoellerch committed Feb 10, 2022
1 parent 275c809 commit ea082a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmd/group-editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"io"

"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
Expand Down Expand Up @@ -169,6 +170,16 @@ func startGroupEditor(ctx context.Context, store *base.Store, initialRefs []cant
l.Styles.Title = titleStyle
l.Styles.PaginationStyle = paginationStyle
l.Styles.HelpStyle = helpStyle
bdindings := []key.Binding{
key.NewBinding(key.WithHelp("␣", "select/deselect")),
key.NewBinding(key.WithHelp("↩", "confirm changes")),
}
l.AdditionalShortHelpKeys = func() []key.Binding {
return bdindings
}
l.AdditionalFullHelpKeys = func() []key.Binding {
return bdindings
}

aborted := false
quit := false
Expand Down

0 comments on commit ea082a1

Please sign in to comment.