diff --git a/docs/keybindings/Keybindings_en.md b/docs/keybindings/Keybindings_en.md index 5c56b6b83..7c6e48e43 100644 --- a/docs/keybindings/Keybindings_en.md +++ b/docs/keybindings/Keybindings_en.md @@ -18,6 +18,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct W: open diff menu ctrl+e: open diff menu @: open command log menu + ctrl+w: Toggle whether or not whitespace changes are shown in the diff view }: Increase the size of the context shown around changes in the diff view {: Decrease the size of the context shown around changes in the diff view :: execute custom command @@ -92,7 +93,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
ctrl+o: copy the file name to the clipboard
- ctrl+w: Toggle whether or not whitespace changes are shown in the diff view
d: view 'discard changes' options
space: toggle staged
ctrl+b: Filter files (staged/unstaged)
diff --git a/docs/keybindings/Keybindings_ja.md b/docs/keybindings/Keybindings_ja.md
index 2cf603abf..6a9f67b6c 100644
--- a/docs/keybindings/Keybindings_ja.md
+++ b/docs/keybindings/Keybindings_ja.md
@@ -18,6 +18,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
W: 差分メニューを開く
ctrl+e: 差分メニューを開く
@: コマンドログメニューを開く
+ ctrl+w: 空白文字の差分の表示有無を切り替え
}: Increase the size of the context shown around changes in the diff view
{: Decrease the size of the context shown around changes in the diff view
:: カスタムコマンドを実行
@@ -152,7 +153,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
ctrl+o: ファイル名をクリップボードにコピー
- ctrl+w: 空白文字の差分の表示有無を切り替え
d: view 'discard changes' options
space: ステージ/アンステージ
ctrl+b: ファイルをフィルタ (ステージ/アンステージ)
diff --git a/docs/keybindings/Keybindings_ko.md b/docs/keybindings/Keybindings_ko.md
index f49e6eb78..151f49129 100644
--- a/docs/keybindings/Keybindings_ko.md
+++ b/docs/keybindings/Keybindings_ko.md
@@ -18,6 +18,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
W: Diff 메뉴 열기
ctrl+e: Diff 메뉴 열기
@: 명령어 로그 메뉴 열기
+ ctrl+w: 공백문자를 Diff 뷰에서 표시 여부 전환
}: diff 보기의 변경 사항 주위에 표시되는 컨텍스트의 크기를 늘리기
{: diff 보기의 변경 사항 주위에 표시되는 컨텍스트 크기 줄이기
:: execute custom command
@@ -271,7 +272,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
ctrl+o: 파일명을 클립보드에 복사
- ctrl+w: 공백문자를 Diff 뷰에서 표시 여부 전환
d: view 'discard changes' options
space: Staged 전환
ctrl+b: 파일을 필터하기 (Staged/unstaged)
diff --git a/docs/keybindings/Keybindings_nl.md b/docs/keybindings/Keybindings_nl.md
index 01ea95417..bdb6b20f7 100644
--- a/docs/keybindings/Keybindings_nl.md
+++ b/docs/keybindings/Keybindings_nl.md
@@ -18,6 +18,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
W: open diff menu
ctrl+e: open diff menu
@: open command log menu
+ ctrl+w: Toggle whether or not whitespace changes are shown in the diff view
}: Increase the size of the context shown around changes in the diff view
{: Decrease the size of the context shown around changes in the diff view
:: voer aangepaste commando uit
@@ -45,7 +46,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
ctrl+o: kopieer de bestandsnaam naar het klembord
- ctrl+w: Toggle whether or not whitespace changes are shown in the diff view
d: bekijk 'veranderingen ongedaan maken' opties
space: toggle staged
ctrl+b: Filter files (staged/unstaged)
diff --git a/docs/keybindings/Keybindings_pl.md b/docs/keybindings/Keybindings_pl.md
index 23473ca2c..9f00b4cc0 100644
--- a/docs/keybindings/Keybindings_pl.md
+++ b/docs/keybindings/Keybindings_pl.md
@@ -18,6 +18,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
W: open diff menu
ctrl+e: open diff menu
@: open command log menu
+ ctrl+w: Toggle whether or not whitespace changes are shown in the diff view
}: Increase the size of the context shown around changes in the diff view
{: Decrease the size of the context shown around changes in the diff view
:: wykonaj własną komendę
@@ -115,7 +116,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
ctrl+o: copy the file name to the clipboard
- ctrl+w: Toggle whether or not whitespace changes are shown in the diff view
d: pokaż opcje porzucania zmian
space: przełącz stan poczekalni
ctrl+b: Filter files (staged/unstaged)
diff --git a/docs/keybindings/Keybindings_zh.md b/docs/keybindings/Keybindings_zh.md
index 6650d0f71..9bc663783 100644
--- a/docs/keybindings/Keybindings_zh.md
+++ b/docs/keybindings/Keybindings_zh.md
@@ -18,6 +18,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
W: 打开 diff 菜单
ctrl+e: 打开 diff 菜单
@: 打开命令日志菜单
+ ctrl+w: 切换是否在差异视图中显示空白字符差异
}: 扩大差异视图中显示的上下文范围
{: 缩小差异视图中显示的上下文范围
:: 执行自定义命令
@@ -157,7 +158,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
ctrl+o: 将文件名复制到剪贴板
- ctrl+w: 切换是否在差异视图中显示空白字符差异
d: 查看'放弃更改'选项
space: 切换暂存状态
ctrl+b: Filter files (staged/unstaged)
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 383b52b32..ce935b661 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -356,7 +356,7 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Description: self.c.Tr.LcCopySubmoduleNameToClipboard,
},
{
- ViewName: "files",
+ ViewName: "",
Key: opts.GetKey(opts.Config.Universal.ToggleWhitespaceInDiffView),
Handler: self.toggleWhitespaceInDiffView,
Description: self.c.Tr.ToggleWhitespaceInDiffView,