File tree Expand file tree Collapse file tree
internal/plugins/command-runner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ func (u *UIManager) showCustomResultModal(result ExecutionResult, targetType Tar
489489 // Build hint line; include whitelist shortcut only when the command succeeded.
490490 hintText := " [primary]ESC/Backspace[-] Close | [primary]↑/↓[-] Scroll"
491491 if result .Error == nil {
492- hintText += " | [primary]w[-] Save to Whitelist"
492+ hintText += fmt . Sprintf ( " | [primary]w[-] Save to %s Whitelist (session)" , targetType )
493493 }
494494 hintText += " "
495495
@@ -514,7 +514,7 @@ func (u *UIManager) showCustomResultModal(result ExecutionResult, targetType Tar
514514 onAddToWhitelist (result .Command )
515515 }
516516 // Update the hint to confirm the save (disable 'w' to prevent duplicates).
517- buttons .SetText (" [green]Saved to whitelist (session only)[-] | [primary]ESC/Backspace[-] Close | [primary]↑/↓[-] Scroll " )
517+ buttons .SetText (fmt . Sprintf ( " [green]Saved to %s whitelist (session only)[-] | [primary]ESC/Backspace[-] Close | [primary]↑/↓[-] Scroll " , targetType ) )
518518 return nil
519519 }
520520 return event
You can’t perform that action at this time.
0 commit comments