Copy func in findings

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-05-19 21:29:41 +02:00
parent 87fa9448d6
commit 3463e51739
7 changed files with 20 additions and 7 deletions
+6
View File
@@ -209,6 +209,12 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, nil
case key.Matches(msg, keys.Keys.Global.Copy):
if m.page == pageFindings {
if md := m.findingsPage.CurrentMarkdown(); md != "" {
copyUI.WriteClipboard(md)
}
return m, nil
}
var raw, scheme string
var responseFocused bool
switch m.page {