summaryrefslogtreecommitdiffstats
path: root/pkg/gui/list_context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-01 00:24:41 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-02 11:00:15 +1100
commitaf09223dd5cd50c5b2a2fe846632a7a0a6e02e1e (patch)
treed898ef987c4c553dce211deaa6ae9200c7a0f428 /pkg/gui/list_context.go
parent7d62f103e4a1b39b7e8fbd0e1f39815c525cd588 (diff)
refactor
Diffstat (limited to 'pkg/gui/list_context.go')
-rw-r--r--pkg/gui/list_context.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/gui/list_context.go b/pkg/gui/list_context.go
index 39fa8f6bf..ac345dd97 100644
--- a/pkg/gui/list_context.go
+++ b/pkg/gui/list_context.go
@@ -30,6 +30,11 @@ type ListContext struct {
WindowName string
}
+type IListPanelState interface {
+ SetSelectedLineIdx(int)
+ GetSelectedLineIdx() int
+}
+
type ListItem interface {
// ID is a SHA when the item is a commit, a filename when the item is a file, 'stash@{4}' when it's a stash entry, 'my_branch' when it's a branch
ID() string