@@ -25,7 +25,8 @@ import (
2525 "github.com/charmbracelet/crush/internal/tui/util"
2626)
2727
28−var copyKey = key.NewBinding(key.WithKeys("c", "y", "C", "Y"), key.WithHelp("c/y", "copy"))
28+// CopyKey is the key binding for copying message content to the clipboard.
29+var CopyKey = key.NewBinding(key.WithKeys("c", "y", "C", "Y"), key.WithHelp("c/y", "copy"))
2930
3031// MessageCmp defines the interface for message components in the chat interface.
3132// It combines standard UI model interfaces with message-specific functionality.
@@ -99,7 +100,7 @@ func (m *messageCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
99100 return m, cmd
100101 }
101102 case tea.KeyPressMsg:
102− if key.Matches(msg, copyKey) {
103+ if key.Matches(msg, CopyKey) {
103104 err := clipboard.WriteAll(m.message.Content().Text)
104105 if err != nil {
105106 return m, util.ReportError(fmt.Errorf("failed to copy message content to clipboard: %w", err))