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:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user