mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-25 18:55:28 -06:00
move more view model logic into the files view model
This commit is contained in:
@@ -81,6 +81,18 @@ type IListContext interface {
|
||||
Context
|
||||
}
|
||||
|
||||
type IList interface {
|
||||
IListCursor
|
||||
GetItemsLength() int
|
||||
}
|
||||
|
||||
type IListCursor interface {
|
||||
GetSelectedLineIdx() int
|
||||
SetSelectedLineIdx(value int)
|
||||
MoveSelectedLine(delta int)
|
||||
RefreshSelectedIdx()
|
||||
}
|
||||
|
||||
type IListPanelState interface {
|
||||
SetSelectedLineIdx(int)
|
||||
GetSelectedLineIdx() int
|
||||
|
||||
Reference in New Issue
Block a user