You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a "Copy to clipboard" menu to the Commit Files panel (#4271)
- **PR Description**
Add a "Copy to clipboard" menu to the Commit Files panel
This is very similar to the same menu in the Files panel, except that it
works on whatever diff is currently shown in the main view, including
range diffs either in diffing mode (shift-W), or from a range selection
of commits.
The menu has some code duplication with the existing menu in the Files
panel, but actually not so much. The first two menu items could be
unified once we have generalized the filetrees, but these are pretty
trivial; the other two menu items are sufficiently different that
unifying them is not practical, I think.
Fixes#4254.
Copy file name to clipboardExpand all lines: docs/keybindings/Keybindings_en.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
56
56
| Key | Action | Info |
57
57
|-----|--------|-------------|
58
58
|`` <c-o> ``| Copy path to clipboard ||
59
+
|`` y ``| Copy to clipboard ||
59
60
|`` c ``| Checkout | Checkout file. This replaces the file in your working tree with the version from the selected commit. |
60
61
|`` d ``| Remove | Discard this commit's changes to this file. This runs an interactive rebase in the background, so you may get a merge conflict if a later commit also changes this file. |
61
62
|`` o ``| Open file | Open file in default application. |
Copy file name to clipboardExpand all lines: docs/keybindings/Keybindings_ja.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,7 @@ If you would instead like to start an interactive rebase from the selected commi
134
134
| Key | Action | Info |
135
135
|-----|--------|-------------|
136
136
|`` <c-o> ``| ファイル名をクリップボードにコピー ||
137
+
|`` y ``| Copy to clipboard ||
137
138
|`` c ``| チェックアウト | Checkout file. This replaces the file in your working tree with the version from the selected commit. |
138
139
|`` d ``| Remove | Discard this commit's changes to this file. This runs an interactive rebase in the background, so you may get a merge conflict if a later commit also changes this file. |
139
140
|`` o ``| ファイルを開く | Open file in default application. |
Copy file name to clipboardExpand all lines: docs/keybindings/Keybindings_pl.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,6 +238,7 @@ Jeśli chcesz zamiast tego rozpocząć interaktywny rebase od wybranego commita,
238
238
| Key | Action | Info |
239
239
|-----|--------|-------------|
240
240
|`` <c-o> ``| Kopiuj ścieżkę do schowka ||
241
+
|`` y ``| Kopiuj do schowka ||
241
242
|`` c ``| Przełącz | Przełącz plik. Zastępuje plik w twoim drzewie roboczym wersją z wybranego commita. |
242
243
|`` d ``| Usuń | Odrzuć zmiany w tym pliku z tego commita. Uruchamia interaktywny rebase w tle, więc możesz otrzymać konflikt scalania, jeśli późniejszy commit również zmienia ten plik. |
243
244
|`` o ``| Otwórz plik | Otwórz plik w domyślnej aplikacji. |
Copy file name to clipboardExpand all lines: docs/keybindings/Keybindings_pt.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,7 @@ Veja a documentação:
135
135
| Key | Action | Info |
136
136
|-----|--------|-------------|
137
137
|`` <c-o> ``| Copy path to clipboard ||
138
+
|`` y ``| Copy to clipboard ||
138
139
|`` c ``| Verificar | Checkout file. This replaces the file in your working tree with the version from the selected commit. |
139
140
|`` d ``| Remove | Discard this commit's changes to this file. This runs an interactive rebase in the background, so you may get a merge conflict if a later commit also changes this file. |
140
141
|`` o ``| Abrir arquivo | Abrir arquivo no aplicativo padrão. |
Copy file name to clipboardExpand all lines: docs/keybindings/Keybindings_zh-TW.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,6 +210,7 @@ If you would instead like to start an interactive rebase from the selected commi
210
210
| Key | Action | Info |
211
211
|-----|--------|-------------|
212
212
|`` <c-o> ``| 複製檔案名稱到剪貼簿 ||
213
+
|`` y ``| 複製到剪貼簿 ||
213
214
|`` c ``| 檢出 | 檢出檔案 |
214
215
|`` d ``| Remove | Discard this commit's changes to this file. This runs an interactive rebase in the background, so you may get a merge conflict if a later commit also changes this file. |
0 commit comments