Skip to content

Commit 916ea37

Browse files
committed
Add keybinding to focus secondary main view
1 parent e3d9083 commit 916ea37

17 files changed

Lines changed: 206 additions & 1 deletion

docs-master/Config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ keybinding:
627627
- "4"
628628
- "5"
629629
focusMainView: "0"
630+
focusSecondaryView: "9"
630631
nextMatch: "n"
631632
prevMatch: "N"
632633
startSearch: /

docs-master/keybindings/Keybindings_en.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
7171
| `` - `` | Collapse all files | Collapse all directories in the files tree |
7272
| `` = `` | Expand all files | Expand all directories in the file tree |
7373
| `` 0 `` | Focus main view | |
74+
| `` 9 `` | Focus secondary view | |
7475
| `` / `` | Filter the current view by text | |
7576

7677
## Commit summary
@@ -118,6 +119,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
118119
| `` <c-t> `` | Open external diff tool (git difftool) | |
119120
| `` * `` | Select commits of current branch | |
120121
| `` 0 `` | Focus main view | |
122+
| `` 9 `` | Focus secondary view | |
121123
| `` <enter> `` | View files | |
122124
| `` w `` | View worktree options | |
123125
| `` / `` | Search the current view by text | |
@@ -161,6 +163,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
161163
| `` - `` | Collapse all files | Collapse all directories in the files tree |
162164
| `` = `` | Expand all files | Expand all directories in the file tree |
163165
| `` 0 `` | Focus main view | |
166+
| `` 9 `` | Focus secondary view | |
164167
| `` / `` | Filter the current view by text | |
165168

166169
## Input prompt
@@ -197,6 +200,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
197200
| `` u `` | View upstream options | View options relating to the branch's upstream e.g. setting/unsetting the upstream and resetting to the upstream. |
198201
| `` <c-t> `` | Open external diff tool (git difftool) | |
199202
| `` 0 `` | Focus main view | |
203+
| `` 9 `` | Focus secondary view | |
200204
| `` <enter> `` | View commits | |
201205
| `` w `` | View worktree options | |
202206
| `` / `` | Filter the current view by text | |
@@ -226,6 +230,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
226230
| `` <tab> `` | Switch view | Switch to other view (staged/unstaged changes). |
227231
| `` <esc> `` | Exit back to side panel | |
228232
| `` 0 `` | Focus main view | |
233+
| `` 9 `` | Focus secondary view | |
229234
| `` / `` | Search the current view by text | |
230235

231236
## Main panel (patch building)
@@ -290,6 +295,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
290295
| `` <c-t> `` | Open external diff tool (git difftool) | |
291296
| `` * `` | Select commits of current branch | |
292297
| `` 0 `` | Focus main view | |
298+
| `` 9 `` | Focus secondary view | |
293299
| `` <enter> `` | View commits | |
294300
| `` w `` | View worktree options | |
295301
| `` / `` | Filter the current view by text | |
@@ -309,6 +315,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
309315
| `` g `` | Reset | View reset options (soft/mixed/hard) for resetting onto selected item. |
310316
| `` <c-t> `` | Open external diff tool (git difftool) | |
311317
| `` 0 `` | Focus main view | |
318+
| `` 9 `` | Focus secondary view | |
312319
| `` <enter> `` | View commits | |
313320
| `` w `` | View worktree options | |
314321
| `` / `` | Filter the current view by text | |
@@ -332,6 +339,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
332339
| `` <tab> `` | Switch view | Switch to other view (staged/unstaged changes). |
333340
| `` <esc> `` | Exit back to side panel | |
334341
| `` 0 `` | Focus main view | |
342+
| `` 9 `` | Focus secondary view | |
335343
| `` / `` | Search the current view by text | |
336344

337345
## Stash
@@ -344,6 +352,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
344352
| `` n `` | New branch | Create a new branch from the selected stash entry. This works by git checking out the commit that the stash entry was created from, creating a new branch from that commit, then applying the stash entry to the new branch as an additional commit. |
345353
| `` r `` | Rename stash | |
346354
| `` 0 `` | Focus main view | |
355+
| `` 9 `` | Focus secondary view | |
347356
| `` <enter> `` | View files | |
348357
| `` w `` | View worktree options | |
349358
| `` / `` | Filter the current view by text | |
@@ -359,6 +368,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
359368
| `` a `` | Show/cycle all branch logs | |
360369
| `` A `` | Show/cycle all branch logs (reverse) | |
361370
| `` 0 `` | Focus main view | |
371+
| `` 9 `` | Focus secondary view | |
362372

363373
## Sub-commits
364374

@@ -376,6 +386,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
376386
| `` <c-t> `` | Open external diff tool (git difftool) | |
377387
| `` * `` | Select commits of current branch | |
378388
| `` 0 `` | Focus main view | |
389+
| `` 9 `` | Focus secondary view | |
379390
| `` <enter> `` | View files | |
380391
| `` w `` | View worktree options | |
381392
| `` / `` | Search the current view by text | |
@@ -406,6 +417,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
406417
| `` g `` | Reset | View reset options (soft/mixed/hard) for resetting onto selected item. |
407418
| `` <c-t> `` | Open external diff tool (git difftool) | |
408419
| `` 0 `` | Focus main view | |
420+
| `` 9 `` | Focus secondary view | |
409421
| `` <enter> `` | View commits | |
410422
| `` w `` | View worktree options | |
411423
| `` / `` | Filter the current view by text | |

docs-master/keybindings/Keybindings_ja.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
9898
| `` <c-t> `` | 外部差分ツールを開く(git difftool) | |
9999
| `` * `` | 現在のブランチのコミットを選択 | |
100100
| `` 0 `` | メインビューにフォーカス | |
101+
| `` 9 `` | Focus secondary view | |
101102
| `` <enter> `` | ファイルを表示 | |
102103
| `` w `` | ワークツリーオプションを表示 | |
103104
| `` / `` | 現在のビューをテキストで検索 | |
@@ -120,6 +121,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
120121
| `` - `` | すべてのファイルを折りたたむ | ファイルツリー内のすべてのディレクトリを折りたたみます |
121122
| `` = `` | すべてのファイルを展開 | ファイルツリー内のすべてのディレクトリを展開します |
122123
| `` 0 `` | メインビューにフォーカス | |
124+
| `` 9 `` | Focus secondary view | |
123125
| `` / `` | 現在のビューをテキストでフィルタリング | |
124126

125127
## コミット概要
@@ -145,6 +147,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
145147
| `` <c-t> `` | 外部差分ツールを開く(git difftool) | |
146148
| `` * `` | 現在のブランチのコミットを選択 | |
147149
| `` 0 `` | メインビューにフォーカス | |
150+
| `` 9 `` | Focus secondary view | |
148151
| `` <enter> `` | ファイルを表示 | |
149152
| `` w `` | ワークツリーオプションを表示 | |
150153
| `` / `` | 現在のビューをテキストで検索 | |
@@ -173,6 +176,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
173176
| `` n `` | 新しいブランチ | 選択したスタッシュエントリから新しいブランチを作成します。これは、スタッシュエントリが作成されたコミットをgitがチェックアウトし、そのコミットから新しいブランチを作成した後、スタッシュエントリを追加のコミットとして新しいブランチに適用することで機能します。 |
174177
| `` r `` | スタッシュの名前を変更 | |
175178
| `` 0 `` | メインビューにフォーカス | |
179+
| `` 9 `` | Focus secondary view | |
176180
| `` <enter> `` | ファイルを表示 | |
177181
| `` w `` | ワークツリーオプションを表示 | |
178182
| `` / `` | 現在のビューをテキストでフィルタリング | |
@@ -188,6 +192,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
188192
| `` a `` | ブランチログの表示モードを順に切り替え | |
189193
| `` A `` | Show/cycle all branch logs (reverse) | |
190194
| `` 0 `` | メインビューにフォーカス | |
195+
| `` 9 `` | Focus secondary view | |
191196

192197
## セカンダリ
193198

@@ -196,6 +201,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
196201
| `` <tab> `` | ビューを切り替え | 他のビュー(ステージされた変更/ステージされていない変更)に切り替えます。 |
197202
| `` <esc> `` | サイドパネルに戻る | |
198203
| `` 0 `` | メインビューにフォーカス | |
204+
| `` 9 `` | Focus secondary view | |
199205
| `` / `` | 現在のビューをテキストで検索 | |
200206

201207
## タグ
@@ -210,6 +216,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
210216
| `` g `` | リセット | 選択した項目へのリセットオプション(ソフト/ミックス/ハード)を表示します。各リセットタイプの詳細は次の通りです:<br>- ソフトリセット:変更を保持し、ステージされた状態にします<br>- ミックスリセット:変更を保持し、ステージされていない状態にします<br>- ハードリセット:すべての変更を破棄します |
211217
| `` <c-t> `` | 外部差分ツールを開く(git difftool) | |
212218
| `` 0 `` | メインビューにフォーカス | |
219+
| `` 9 `` | Focus secondary view | |
213220
| `` <enter> `` | コミットを表示 | |
214221
| `` w `` | ワークツリーオプションを表示 | |
215222
| `` / `` | 現在のビューをテキストでフィルタリング | |
@@ -245,6 +252,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
245252
| `` - `` | すべてのファイルを折りたたむ | ファイルツリー内のすべてのディレクトリを折りたたみます |
246253
| `` = `` | すべてのファイルを展開 | ファイルツリー内のすべてのディレクトリを展開します |
247254
| `` 0 `` | メインビューにフォーカス | |
255+
| `` 9 `` | Focus secondary view | |
248256
| `` / `` | 現在のビューをテキストでフィルタリング | |
249257

250258
## メインパネル(ステージング)
@@ -310,6 +318,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
310318
| `` <tab> `` | ビューを切り替え | 他のビュー(ステージされた変更/ステージされていない変更)に切り替えます。 |
311319
| `` <esc> `` | サイドパネルに戻る | |
312320
| `` 0 `` | メインビューにフォーカス | |
321+
| `` 9 `` | Focus secondary view | |
313322
| `` / `` | 現在のビューをテキストで検索 | |
314323

315324
## メニュー
@@ -336,6 +345,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
336345
| `` <c-t> `` | 外部差分ツールを開く(git difftool) | |
337346
| `` * `` | 現在のブランチのコミットを選択 | |
338347
| `` 0 `` | メインビューにフォーカス | |
348+
| `` 9 `` | Focus secondary view | |
339349
| `` <enter> `` | コミットを表示 | |
340350
| `` w `` | ワークツリーオプションを表示 | |
341351
| `` / `` | 現在のビューをテキストでフィルタリング | |
@@ -367,6 +377,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
367377
| `` g `` | リセット | 選択した項目へのリセットオプション(ソフト/ミックス/ハード)を表示します。各リセットタイプの詳細は次の通りです:<br>- ソフトリセット:変更を保持し、ステージされた状態にします<br>- ミックスリセット:変更を保持し、ステージされていない状態にします<br>- ハードリセット:すべての変更を破棄します |
368378
| `` <c-t> `` | 外部差分ツールを開く(git difftool) | |
369379
| `` 0 `` | メインビューにフォーカス | |
380+
| `` 9 `` | Focus secondary view | |
370381
| `` <enter> `` | コミットを表示 | |
371382
| `` w `` | ワークツリーオプションを表示 | |
372383
| `` / `` | 現在のビューをテキストでフィルタリング | |
@@ -398,6 +409,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
398409
| `` u `` | アップストリームオプションを表示 | ブランチのアップストリームに関連するオプションを表示します(例:アップストリームの設定/解除やアップストリームへのリセット)。 |
399410
| `` <c-t> `` | 外部差分ツールを開く(git difftool) | |
400411
| `` 0 `` | メインビューにフォーカス | |
412+
| `` 9 `` | Focus secondary view | |
401413
| `` <enter> `` | コミットを表示 | |
402414
| `` w `` | ワークツリーオプションを表示 | |
403415
| `` / `` | 現在のビューをテキストでフィルタリング | |

docs-master/keybindings/Keybindings_ko.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
7676
| `` <c-t> `` | Open external diff tool (git difftool) | |
7777
| `` * `` | Select commits of current branch | |
7878
| `` 0 `` | Focus main view | |
79+
| `` 9 `` | Focus secondary view | |
7980
| `` <enter> `` | 커밋 보기 | |
8081
| `` w `` | View worktree options | |
8182
| `` / `` | Filter the current view by text | |
@@ -87,6 +88,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
8788
| `` <tab> `` | 패널 전환 | Switch to other view (staged/unstaged changes). |
8889
| `` <esc> `` | Exit back to side panel | |
8990
| `` 0 `` | Focus main view | |
91+
| `` 9 `` | Focus secondary view | |
9092
| `` / `` | 검색 시작 | |
9193

9294
## Stash
@@ -99,6 +101,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
99101
| `` n `` | 새 브랜치 생성 | Create a new branch from the selected stash entry. This works by git checking out the commit that the stash entry was created from, creating a new branch from that commit, then applying the stash entry to the new branch as an additional commit. |
100102
| `` r `` | Rename stash | |
101103
| `` 0 `` | Focus main view | |
104+
| `` 9 `` | Focus secondary view | |
102105
| `` <enter> `` | View selected item's files | |
103106
| `` w `` | View worktree options | |
104107
| `` / `` | Filter the current view by text | |
@@ -119,6 +122,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
119122
| `` <c-t> `` | Open external diff tool (git difftool) | |
120123
| `` * `` | Select commits of current branch | |
121124
| `` 0 `` | Focus main view | |
125+
| `` 9 `` | Focus secondary view | |
122126
| `` <enter> `` | View selected item's files | |
123127
| `` w `` | View worktree options | |
124128
| `` / `` | 검색 시작 | |
@@ -166,6 +170,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
166170
| `` <tab> `` | 패널 전환 | Switch to other view (staged/unstaged changes). |
167171
| `` <esc> `` | Exit back to side panel | |
168172
| `` 0 `` | Focus main view | |
173+
| `` 9 `` | Focus secondary view | |
169174
| `` / `` | 검색 시작 | |
170175

171176
## 메인 패널 (Patch Building)
@@ -233,6 +238,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
233238
| `` u `` | View upstream options | View options relating to the branch's upstream e.g. setting/unsetting the upstream and resetting to the upstream. |
234239
| `` <c-t> `` | Open external diff tool (git difftool) | |
235240
| `` 0 `` | Focus main view | |
241+
| `` 9 `` | Focus secondary view | |
236242
| `` <enter> `` | 커밋 보기 | |
237243
| `` w `` | View worktree options | |
238244
| `` / `` | Filter the current view by text | |
@@ -248,6 +254,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
248254
| `` a `` | Show/cycle all branch logs | |
249255
| `` A `` | Show/cycle all branch logs (reverse) | |
250256
| `` 0 `` | Focus main view | |
257+
| `` 9 `` | Focus secondary view | |
251258

252259
## 서브모듈
253260

@@ -290,6 +297,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
290297
| `` g `` | View reset options | View reset options (soft/mixed/hard) for resetting onto selected item. |
291298
| `` <c-t> `` | Open external diff tool (git difftool) | |
292299
| `` 0 `` | Focus main view | |
300+
| `` 9 `` | Focus secondary view | |
293301
| `` <enter> `` | 커밋 보기 | |
294302
| `` w `` | View worktree options | |
295303
| `` / `` | Filter the current view by text | |
@@ -332,6 +340,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
332340
| `` <c-t> `` | Open external diff tool (git difftool) | |
333341
| `` * `` | Select commits of current branch | |
334342
| `` 0 `` | Focus main view | |
343+
| `` 9 `` | Focus secondary view | |
335344
| `` <enter> `` | View selected item's files | |
336345
| `` w `` | View worktree options | |
337346
| `` / `` | 검색 시작 | |
@@ -354,6 +363,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
354363
| `` - `` | Collapse all files | Collapse all directories in the files tree |
355364
| `` = `` | Expand all files | Expand all directories in the file tree |
356365
| `` 0 `` | Focus main view | |
366+
| `` 9 `` | Focus secondary view | |
357367
| `` / `` | Filter the current view by text | |
358368

359369
## 커밋메시지
@@ -375,6 +385,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
375385
| `` g `` | 초기화 | View reset options (soft/mixed/hard) for resetting onto selected item. |
376386
| `` <c-t> `` | Open external diff tool (git difftool) | |
377387
| `` 0 `` | Focus main view | |
388+
| `` 9 `` | Focus secondary view | |
378389
| `` <enter> `` | 커밋 보기 | |
379390
| `` w `` | View worktree options | |
380391
| `` / `` | Filter the current view by text | |
@@ -410,6 +421,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
410421
| `` - `` | Collapse all files | Collapse all directories in the files tree |
411422
| `` = `` | Expand all files | Expand all directories in the file tree |
412423
| `` 0 `` | Focus main view | |
424+
| `` 9 `` | Focus secondary view | |
413425
| `` / `` | Filter the current view by text | |
414426

415427
## 확인 패널

0 commit comments

Comments
 (0)