Skip to content

Commit

Permalink
Update filter bindings to display on screen
Browse files Browse the repository at this point in the history
Update the controller (filter_controller.go) to set up the binding to be
didsplayed. Additionally, update the translations for the binding name
to be shorter, to make it more likely the text will fit at the bottom of
the screen

The keybinding screen in particular (which is a filterable popup) seems
frustrating for users. In #3141, @kadaan suggested that perhaps the
keybindings page should display a message in the footer about the
presence of this option as a way to increase discoverability.

This change enables this binding displaying on _all_ filterable views.
I'm not sure if it's valuable to restrict this to just the keybinding
view.

Update cheatsheets
  • Loading branch information
VeeDeltaVee committed Oct 5, 2024
1 parent d11e11d commit a21e289
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 49 deletions.
18 changes: 9 additions & 9 deletions docs/keybindings/Keybindings_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | View commits | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Main panel (merging)

Expand Down Expand Up @@ -242,7 +242,7 @@ If you would instead like to start an interactive rebase from the selected commi
|-----|--------|-------------|
| `` <enter> `` | Execute | |
| `` <esc> `` | Close | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Reflog

Expand All @@ -259,7 +259,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | View commits | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Remote branches

Expand All @@ -277,7 +277,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | View commits | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Remotes

Expand All @@ -288,7 +288,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
| `` e `` | Edit | Edit the selected remote's name or URL. |
| `` f `` | Fetch | Fetch updates from the remote repository. This retrieves new commits and branches without merging them into your local branches. |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Stash

Expand All @@ -301,7 +301,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` r `` | Rename stash | |
| `` <enter> `` | View files | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Status

Expand Down Expand Up @@ -342,7 +342,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` e `` | Update submodule URL | |
| `` i `` | Initialize | Initialize the selected submodule to prepare for fetching. You probably want to follow this up by invoking the 'update' action to fetch the submodule. |
| `` b `` | View bulk submodule options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Tags

Expand All @@ -356,7 +356,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | View commits | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Worktrees

Expand All @@ -366,4 +366,4 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <space> `` | Switch | Switch to the selected worktree. |
| `` o `` | Open in editor | |
| `` d `` | Remove | Remove the selected worktree. This will both delete the worktree's directory, as well as metadata about the worktree in the .git directory. |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |
18 changes: 9 additions & 9 deletions docs/keybindings/Keybindings_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` r `` | Stashを変更 | |
| `` <enter> `` | View files | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Sub-commits

Expand All @@ -89,7 +89,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` <space> `` | Switch | Switch to the selected worktree. |
| `` o `` | Open in editor | |
| `` d `` | Remove | Remove the selected worktree. This will both delete the worktree's directory, as well as metadata about the worktree in the .git directory. |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## コミット

Expand Down Expand Up @@ -164,7 +164,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` e `` | サブモジュールのURLを更新 | |
| `` i `` | Initialize | サブモジュールを初期化 |
| `` b `` | View bulk submodule options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## ステータス

Expand All @@ -188,7 +188,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | コミットを閲覧 | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## ファイル

Expand Down Expand Up @@ -245,7 +245,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | コミットを閲覧 | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## メインパネル (Merging)

Expand Down Expand Up @@ -313,7 +313,7 @@ If you would instead like to start an interactive rebase from the selected commi
|-----|--------|-------------|
| `` <enter> `` | 実行 | |
| `` <esc> `` | 閉じる | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## リモート

Expand All @@ -324,7 +324,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
| `` e `` | Edit | リモートを編集 |
| `` f `` | Fetch | リモートをfetch |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## リモートブランチ

Expand All @@ -342,7 +342,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | コミットを閲覧 | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## 参照ログ

Expand All @@ -359,7 +359,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | コミットを閲覧 | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## 確認パネル

Expand Down
18 changes: 9 additions & 9 deletions docs/keybindings/Keybindings_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | 커밋 보기 | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Stash

Expand All @@ -79,7 +79,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` r `` | Rename stash | |
| `` <enter> `` | View selected item's files | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Sub-commits

Expand All @@ -106,15 +106,15 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` <space> `` | Switch | Switch to the selected worktree. |
| `` o `` | Open in editor | |
| `` d `` | Remove | Remove the selected worktree. This will both delete the worktree's directory, as well as metadata about the worktree in the .git directory. |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## 메뉴

| Key | Action | Info |
|-----|--------|-------------|
| `` <enter> `` | 실행 | |
| `` <esc> `` | 닫기 | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## 메인 패널 (Merging)

Expand Down Expand Up @@ -201,7 +201,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | 커밋 보기 | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## 상태

Expand All @@ -225,7 +225,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` e `` | 서브모듈의 URL을 수정 | |
| `` i `` | Initialize | 서브모듈 초기화 |
| `` b `` | View bulk submodule options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## 원격

Expand All @@ -236,7 +236,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
| `` e `` | Edit | Remote를 수정 |
| `` f `` | Fetch | 원격을 업데이트 |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## 원격 브랜치

Expand All @@ -254,7 +254,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | 커밋 보기 | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## 커밋

Expand Down Expand Up @@ -329,7 +329,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | 커밋 보기 | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## 파일

Expand Down
18 changes: 9 additions & 9 deletions docs/keybindings/Keybindings_nl.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | Bekijk commits | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Commit bericht

Expand Down Expand Up @@ -182,7 +182,7 @@ If you would instead like to start an interactive rebase from the selected commi
|-----|--------|-------------|
| `` <enter> `` | Uitvoeren | |
| `` <esc> `` | Sluiten | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Mergen

Expand Down Expand Up @@ -237,7 +237,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | Bekijk commits | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Remote branches

Expand All @@ -255,7 +255,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | Bekijk commits | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Remotes

Expand All @@ -266,7 +266,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
| `` e `` | Edit | Wijzig remote |
| `` f `` | Fetch | Fetch remote |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Staging

Expand Down Expand Up @@ -301,7 +301,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` r `` | Rename stash | |
| `` <enter> `` | Bekijk gecommite bestanden | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Status

Expand Down Expand Up @@ -342,7 +342,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` e `` | Update submodule URL | |
| `` i `` | Initialize | Initialiseer submodule |
| `` b `` | Bekijk bulk submodule opties | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Tags

Expand All @@ -356,7 +356,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | Bekijk commits | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Worktrees

Expand All @@ -366,4 +366,4 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <space> `` | Switch | Switch to the selected worktree. |
| `` o `` | Open in editor | |
| `` d `` | Remove | Remove the selected worktree. This will both delete the worktree's directory, as well as metadata about the worktree in the .git directory. |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |
18 changes: 9 additions & 9 deletions docs/keybindings/Keybindings_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ _Связки клавиш_
| `` <space> `` | Switch | Switch to the selected worktree. |
| `` o `` | Open in editor | |
| `` d `` | Remove | Remove the selected worktree. This will both delete the worktree's directory, as well as metadata about the worktree in the .git directory. |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Главная панель (Индексирование)

Expand Down Expand Up @@ -136,7 +136,7 @@ _Связки клавиш_
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | Просмотреть коммиты | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Коммиты

Expand Down Expand Up @@ -201,15 +201,15 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | Просмотреть коммиты | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Меню

| Key | Action | Info |
|-----|--------|-------------|
| `` <enter> `` | Выполнить | |
| `` <esc> `` | Закрыть | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Панель Подтверждения

Expand Down Expand Up @@ -247,7 +247,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` e `` | Обновить URL подмодуля | |
| `` i `` | Initialize | Инициализировать подмодуль |
| `` b `` | Просмотреть параметры массового подмодуля | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Сводка коммита

Expand Down Expand Up @@ -294,7 +294,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | Просмотреть коммиты | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Удалённые ветки

Expand All @@ -312,7 +312,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` <c-t> `` | Open external diff tool (git difftool) | |
| `` <enter> `` | Просмотреть коммиты | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Удалённые репозитории

Expand All @@ -323,7 +323,7 @@ If you would instead like to start an interactive rebase from the selected commi
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
| `` e `` | Edit | Редактировать удалённый репозитории |
| `` f `` | Получить изменения | Получение изменения из удалённого репозитория |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |

## Файлы

Expand Down Expand Up @@ -366,4 +366,4 @@ If you would instead like to start an interactive rebase from the selected commi
| `` r `` | Переименовать хранилище | |
| `` <enter> `` | Просмотреть файлы выбранного элемента | |
| `` w `` | View worktree options | |
| `` / `` | Filter the current view by text | |
| `` / `` | Filter | |
Loading

0 comments on commit a21e289

Please sign in to comment.