diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-24 22:07:30 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-26 18:00:46 +1100 |
commit | 13b90ac37f40baa648c25fab6d299ae0fa59118b (patch) | |
tree | 61dd23273a4b32c3c8d191759cc0ce3ae9d7c08a /pkg/gui/types | |
parent | e039429885996f1335430a856b846d8dc6279325 (diff) |
support viewing commits of reflog entry and show better view title
Diffstat (limited to 'pkg/gui/types')
-rw-r--r-- | pkg/gui/types/context.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go index 58dee1c0e..bf4051538 100644 --- a/pkg/gui/types/context.go +++ b/pkg/gui/types/context.go @@ -33,6 +33,13 @@ type IBaseContext interface { SetWindowName(string) GetKey() ContextKey IsFocusable() bool + // if a context is transient, then when it loses focus, its corresponding view + // returns control of the window to the default view for that window + IsTransient() bool + + // returns the desired title for the view upon activation. If there is no desired title (returns empty string), then + // no title will be set + Title() string GetOptionsMap() map[string]string |