mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +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:
parent
d102f12304
commit
b9a75ee0ed
2 changed files with 14 additions and 0 deletions
|
@ -109,6 +109,14 @@ func (gui *Gui) scrollDownConfirmationPanel() error {
|
|||
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 {
|
||||
return gui.handleCopySelectedSideContextItemToClipboardWithTruncation(-1)
|
||||
}
|
||||
|
|
|
@ -247,6 +247,12 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
|
|||
Modifier: gocui.ModNone,
|
||||
Handler: self.scrollDownConfirmationPanel,
|
||||
},
|
||||
{
|
||||
ViewName: "confirmation",
|
||||
Key: gocui.MouseLeft,
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: self.handleConfirmationClick,
|
||||
},
|
||||
{
|
||||
ViewName: "confirmation",
|
||||
Key: gocui.MouseWheelUp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue