implement copy paste much wow can you believe we went this long without it so stupid i blame adam

This commit is contained in:
Dax Raad
2025-07-20 19:05:38 -04:00
parent 733c9903ec
commit adc8b90e0f
3 changed files with 131 additions and 6 deletions

View File

@@ -191,7 +191,7 @@ func (a *App) Key(commandName commands.CommandName) string {
return base(key) + muted(" "+command.Description)
}
func (a *App) SetClipboard(text string) tea.Cmd {
func SetClipboard(text string) tea.Cmd {
var cmds []tea.Cmd
cmds = append(cmds, func() tea.Msg {
clipboard.Write(clipboard.FmtText, []byte(text))