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