Skip to content

Commit b9f4c43

Browse files
committed
Allow focusing the main view for the status panel
I left this out originally because it's not needed for the status "dashboard" view (except on really tiny screens); however, it *is* useful after pressing `a` to show the all branches log, and even more so for people who use the "statusPanelView: allBranchesLog" config. And it doesn't really hurt for the dashboard view either, so just enable it always rather than making a distinction which view we are showing.
1 parent 837efd9 commit b9f4c43

10 files changed

+10
-0
lines changed

docs/keybindings/Keybindings_en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
340340
| `` u `` | Check for update | |
341341
| `` <enter> `` | Switch to a recent repo | |
342342
| `` a `` | Show/cycle all branch logs | |
343+
| `` 0 `` | Focus main view | |
343344

344345
## Sub-commits
345346

docs/keybindings/Keybindings_ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
175175
| `` u `` | 更新を確認 | |
176176
| `` <enter> `` | 最近のリポジトリをチェックアウト | |
177177
| `` a `` | ブランチログの表示モードを順に切り替え | |
178+
| `` 0 `` | Focus main view | |
178179

179180
## セカンダリ
180181

docs/keybindings/Keybindings_ko.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
233233
| `` u `` | 업데이트 확인 | |
234234
| `` <enter> `` | 최근에 사용한 저장소로 전환 | |
235235
| `` a `` | Show/cycle all branch logs | |
236+
| `` 0 `` | Focus main view | |
236237

237238
## 서브모듈
238239

docs/keybindings/Keybindings_nl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
340340
| `` u `` | Check voor updates | |
341341
| `` <enter> `` | Wissel naar een recente repo | |
342342
| `` a `` | Show/cycle all branch logs | |
343+
| `` 0 `` | Focus main view | |
343344

344345
## Sub-commits
345346

docs/keybindings/Keybindings_pl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ _Legenda: `<c-b>` oznacza ctrl+b, `<a-b>` oznacza alt+b, `B` oznacza shift+b_
320320
| `` u `` | Sprawdź aktualizacje | |
321321
| `` <enter> `` | Przełącz na ostatnie repozytorium | |
322322
| `` a `` | Show/cycle all branch logs | |
323+
| `` 0 `` | Focus main view | |
323324

324325
## Sub-commity
325326

docs/keybindings/Keybindings_pt.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
349349
| `` u `` | Verificar atualização | |
350350
| `` <enter> `` | Mudar para um repositório recente | |
351351
| `` a `` | Mostrar/ciclo todos os logs de filiais | |
352+
| `` 0 `` | Focus main view | |
352353

353354
## Sub-commits
354355

docs/keybindings/Keybindings_ru.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ _Связки клавиш_
307307
| `` u `` | Проверить обновления | |
308308
| `` <enter> `` | Переключиться на последний репозиторий | |
309309
| `` a `` | Show/cycle all branch logs | |
310+
| `` 0 `` | Focus main view | |
310311

311312
## Теги
312313

docs/keybindings/Keybindings_zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ _图例:`<c-b>` 意味着ctrl+b, `<a-b>意味着Alt+b, `B` 意味着shift+b_
341341
| `` u `` | 检查更新 | |
342342
| `` <enter> `` | 切换到最近的仓库 | |
343343
| `` a `` | 显示/循环所有分支日志 | |
344+
| `` 0 `` | Focus main view | |
344345

345346
## 确认面板
346347

docs/keybindings/Keybindings_zh-TW.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ _說明:`<c-b>` 表示 Ctrl+B、`<a-b>` 表示 Alt+B,`B`表示 Shift+B
363363
| `` u `` | 檢查更新 | |
364364
| `` <enter> `` | 切換到最近使用的版本庫 | |
365365
| `` a `` | Show/cycle all branch logs | |
366+
| `` 0 `` | Focus main view | |
366367

367368
## 確認面板
368369

pkg/gui/controllers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ func (gui *Gui) resetHelpersAndControllers() {
260260
}
261261

262262
for _, context := range []types.Context{
263+
gui.State.Contexts.Status,
263264
gui.State.Contexts.Files,
264265
gui.State.Contexts.Branches,
265266
gui.State.Contexts.RemoteBranches,

0 commit comments

Comments
 (0)