We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ConfirmationController
1 parent 82daedb commit 8ee1f35Copy full SHA for 8ee1f35
pkg/gui/controllers/confirmation_controller.go
@@ -47,6 +47,21 @@ func (self *ConfirmationController) GetKeybindings(opts types.KeybindingsOpts) [
47
return nil
48
},
49
50
+ {
51
+ Key: opts.GetKey(opts.Config.Universal.CopyToClipboard),
52
+ Handler: func() error {
53
+ confirmationView := self.c.Views().Confirmation
54
+ text := confirmationView.Buffer()
55
+ if err := self.c.OS().CopyToClipboard(text); err != nil {
56
+ return err
57
+ }
58
+
59
+ self.c.Toast(fmt.Sprintf("Window content %s", self.c.Tr.CopiedToClipboard))
60
+ return nil
61
+ },
62
+ Description: self.c.Tr.CopyToClipboardMenu,
63
+ DisplayOnScreen: true,
64
65
}
66
67
return bindings
0 commit comments