1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-27 22:38:09 +02:00

Make links clickable in confirmation panels

This is not opt-in, we do it always. I can't imagine a situation where we
wouldn't want it.
This commit is contained in:
Stefan Haller
2024-03-27 11:32:31 +01:00
parent d102f12304
commit b9a75ee0ed
2 changed files with 14 additions and 0 deletions

View File

@@ -109,6 +109,14 @@ func (gui *Gui) scrollDownConfirmationPanel() error {
return nil return nil
} }
func (gui *Gui) handleConfirmationClick() error {
if gui.Views.Confirmation.Editable {
return nil
}
return gui.handleGenericClick(gui.Views.Confirmation)
}
func (gui *Gui) handleCopySelectedSideContextItemToClipboard() error { func (gui *Gui) handleCopySelectedSideContextItemToClipboard() error {
return gui.handleCopySelectedSideContextItemToClipboardWithTruncation(-1) return gui.handleCopySelectedSideContextItemToClipboardWithTruncation(-1)
} }

View File

@@ -247,6 +247,12 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: self.scrollDownConfirmationPanel, Handler: self.scrollDownConfirmationPanel,
}, },
{
ViewName: "confirmation",
Key: gocui.MouseLeft,
Modifier: gocui.ModNone,
Handler: self.handleConfirmationClick,
},
{ {
ViewName: "confirmation", ViewName: "confirmation",
Key: gocui.MouseWheelUp, Key: gocui.MouseWheelUp,