1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

feat: introduce a copy menu into the file view

This commit is contained in:
AzraelSec
2023-11-02 23:31:38 +01:00
committed by Stefan Haller
parent 2162e5ff64
commit c7012528fc
8 changed files with 351 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
package filetree
import (
"path"
"github.com/jesseduffield/lazygit/pkg/commands/models"
"github.com/jesseduffield/lazygit/pkg/gui/types"
"github.com/samber/lo"
@@ -300,3 +302,7 @@ func (self *Node[T]) ID() string {
func (self *Node[T]) Description() string {
return self.GetPath()
}
func (self *Node[T]) Name() string {
return path.Base(self.Path)
}