diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-23 18:47:29 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-04-30 13:19:53 +1000 |
commit | db12853bbe825d69686ea71161497d1bbb120b8e (patch) | |
tree | ebfb066dfef8eb75acdc1ea2bd5f15ff4f4a6507 /pkg/gui/types/context.go | |
parent | 711674f6cd68ed3a35e5b0329ff0cf3289fbc7d1 (diff) |
lots of changes
Diffstat (limited to 'pkg/gui/types/context.go')
-rw-r--r-- | pkg/gui/types/context.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go index ef57e06bc..7ed0db1b2 100644 --- a/pkg/gui/types/context.go +++ b/pkg/gui/types/context.go @@ -198,3 +198,14 @@ type ListItem interface { // Description is something we would show in a message e.g. '123as14: push blah' for a commit Description() string } + +type IContextMgr interface { + Push(context Context, opts ...OnFocusOpts) error + Pop() error + Replace(context Context) error + Current() Context + CurrentStatic() Context + CurrentSide() Context + IsCurrent(c Context) bool + ForEach(func(Context)) +} |