diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-12-31 16:01:00 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-12-31 16:01:00 +0900 |
commit | d210660ce8302fa54836f8682db213c1fac877ba (patch) | |
tree | e73c76883372aa4272edefc5c603a8829b4d5cef /src/terminal.go | |
parent | 863a12562b876bac87c9e06c9434251e59a11484 (diff) |
Add actions: show-header and hide-header
Diffstat (limited to 'src/terminal.go')
-rw-r--r-- | src/terminal.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go index be1c5ddc..0e378584 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -445,6 +445,8 @@ const ( actRebind actBecome actResponse + actShowHeader + actHideHeader ) func processExecution(action actionType) bool { @@ -3715,6 +3717,12 @@ func (t *Terminal) Loop() { t.track = trackEnabled } req(reqInfo) + case actShowHeader: + t.headerVisible = true + req(reqList, reqInfo, reqPrompt, reqHeader) + case actHideHeader: + t.headerVisible = false + req(reqList, reqInfo, reqPrompt, reqHeader) case actToggleHeader: t.headerVisible = !t.headerVisible req(reqList, reqInfo, reqPrompt, reqHeader) |