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
Copy file name to clipboardExpand all lines: docs-master/Custom_Command_Keybindings.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,7 @@ These fields are applicable to all prompts.
102
102
| type | One of 'input', 'confirm', 'menu', 'menuFromCommand' | yes |
103
103
| title | The title to display in the popup panel | no |
104
104
| key | Used to reference the entered value from within the custom command. E.g. a prompt with `key: 'Branch'` can be referred to as `{{.Form.Branch}}` in the command | yes |
105
+
| condition | A Go template expression; if it resolves to empty string or `false`, the prompt is skipped. See [Conditional prompts](#conditional-prompts) | no |
105
106
106
107
### Input
107
108
@@ -319,6 +320,41 @@ Here's an example using a command but not specifying anything else: so each line
In this example the 'Branch prefix' menu only appears if the user chose 'With prefix'. Otherwise it is skipped and `.Form.Prefix` defaults to empty string.
357
+
322
358
## Placeholder values
323
359
324
360
Your commands can contain placeholder strings using Go's [template syntax](https://jan.newmarch.name/golang/template/chapter-template.html). The template syntax is pretty powerful, letting you do things like conditionals if you want, but for the most part you'll simply want to be accessing the fields on the following objects:
Copy file name to clipboardExpand all lines: docs/Custom_Command_Keybindings.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,7 @@ These fields are applicable to all prompts.
102
102
| type | One of 'input', 'confirm', 'menu', 'menuFromCommand' | yes |
103
103
| title | The title to display in the popup panel | no |
104
104
| key | Used to reference the entered value from within the custom command. E.g. a prompt with `key: 'Branch'` can be referred to as `{{.Form.Branch}}` in the command | yes |
105
+
| condition | A Go template expression; if it resolves to empty string or `false`, the prompt is skipped. See [Conditional prompts](#conditional-prompts) | no |
105
106
106
107
### Input
107
108
@@ -319,6 +320,41 @@ Here's an example using a command but not specifying anything else: so each line
In this example the 'Branch prefix' menu only appears if the user chose 'With prefix'. Otherwise it is skipped and `.Form.Prefix` defaults to empty string.
357
+
322
358
## Placeholder values
323
359
324
360
Your commands can contain placeholder strings using Go's [template syntax](https://jan.newmarch.name/golang/template/chapter-template.html). The template syntax is pretty powerful, letting you do things like conditionals if you want, but for the most part you'll simply want to be accessing the fields on the following objects:
Copy file name to clipboardExpand all lines: docs/keybindings/Keybindings_en.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
107
107
|`` t ``| Revert | Create a revert commit for the selected commit, which applies the selected commit's changes in reverse. |
108
108
|`` T ``| Tag commit | Create a new tag pointing at the selected commit. You'll be prompted to enter a tag name and optional description. |
109
109
|`` <c-l> ``| View log options | View options for commit log e.g. changing sort order, hiding the git graph, showing the whole git graph. |
110
+
|`` G ``| Open pull request in browser ||
110
111
|`` <space> ``| Checkout | Checkout the selected commit as a detached HEAD. |
111
112
|`` y ``| Copy commit attribute to clipboard | Copy commit attribute to clipboard (e.g. hash, URL, diff, message, author). |
112
113
|`` o ``| Open commit in browser ||
@@ -180,6 +181,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
180
181
|`` N ``| Move commits to new branch | Create a new branch and move the unpushed commits of the current branch to it. Useful if you meant to start new work and forgot to create a new branch first.<br><br>Note that this disregards the selection, the new branch is always created either from the main branch or stacked on top of the current branch (you get to choose which). |
181
182
|`` o ``| Create pull request ||
182
183
|`` O ``| View create pull request options ||
184
+
|`` G ``| Open pull request in browser ||
183
185
|`` <c-y> ``| Copy pull request URL to clipboard ||
184
186
|`` c ``| Checkout by name | Checkout by name. In the input box you can enter '-' to switch to the previous branch. |
|`` N ``| コミットを新しいブランチに移動 | Create a new branch and move the unpushed commits of the current branch to it. Useful if you meant to start new work and forgot to create a new branch first.<br><br>Note that this disregards the selection, the new branch is always created either from the main branch or stacked on top of the current branch (you get to choose which). |
380
381
|`` o ``| プルリクエストを作成 ||
381
382
|`` O ``| プルリクエスト作成オプションを表示 ||
383
+
|`` G ``| Open pull request in browser ||
382
384
|`` <c-y> ``| プルリクエストURLをクリップボードにコピー ||
383
385
|`` c ``| 名前でチェックアウト | 名前でチェックアウトします。入力ボックスに「-」を入力すると、最後のブランチをチェックアウトすることができます。 |
Copy file name to clipboardExpand all lines: docs/keybindings/Keybindings_ko.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,6 +215,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
215
215
|`` N ``| Move commits to new branch | Create a new branch and move the unpushed commits of the current branch to it. Useful if you meant to start new work and forgot to create a new branch first.<br><br>Note that this disregards the selection, the new branch is always created either from the main branch or stacked on top of the current branch (you get to choose which). |
216
216
|`` o ``| 풀 리퀘스트 생성 ||
217
217
|`` O ``| 풀 리퀘스트 생성 옵션 ||
218
+
|`` G ``| Open pull request in browser ||
218
219
|`` <c-y> ``| 풀 리퀘스트 URL을 클립보드에 복사 ||
219
220
|`` c ``| 이름으로 체크아웃 | Checkout by name. In the input box you can enter '-' to switch to the previous branch. |
220
221
|`` - ``| Checkout previous branch ||
@@ -318,6 +319,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
318
319
|`` t ``| Revert | Create a revert commit for the selected commit, which applies the selected commit's changes in reverse. |
319
320
|`` T ``| Tag commit | Create a new tag pointing at the selected commit. You'll be prompted to enter a tag name and optional description. |
320
321
|`` <c-l> ``| 로그 메뉴 열기 | View options for commit log e.g. changing sort order, hiding the git graph, showing the whole git graph. |
322
+
|`` G ``| Open pull request in browser ||
321
323
|`` <space> ``| 체크아웃 | Checkout the selected commit as a detached HEAD. |
322
324
|`` y ``| 커밋 attribute 복사 | Copy commit attribute to clipboard (e.g. hash, URL, diff, message, author). |
Copy file name to clipboardExpand all lines: docs/keybindings/Keybindings_nl.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
105
105
|`` N ``| Move commits to new branch | Create a new branch and move the unpushed commits of the current branch to it. Useful if you meant to start new work and forgot to create a new branch first.<br><br>Note that this disregards the selection, the new branch is always created either from the main branch or stacked on top of the current branch (you get to choose which). |
106
106
|`` o ``| Maak een pull-request ||
107
107
|`` O ``| Bekijk opties voor pull-aanvraag ||
108
+
|`` G ``| Open pull request in browser ||
108
109
|`` <c-y> ``| Kopieer de URL van het pull-verzoek naar het klembord ||
109
110
|`` c ``| Uitchecken bij naam | Checkout by name. In the input box you can enter '-' to switch to the previous branch. |
110
111
|`` - ``| Checkout previous branch ||
@@ -178,6 +179,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
178
179
|`` t ``| Revert | Create a revert commit for the selected commit, which applies the selected commit's changes in reverse. |
179
180
|`` T ``| Tag commit | Create a new tag pointing at the selected commit. You'll be prompted to enter a tag name and optional description. |
180
181
|`` <c-l> ``| View log options | View options for commit log e.g. changing sort order, hiding the git graph, showing the whole git graph. |
182
+
|`` G ``| Open pull request in browser ||
181
183
|`` <space> ``| Uitchecken | Checkout the selected commit as a detached HEAD. |
182
184
|`` y ``| Copy commit attribute to clipboard | Copy commit attribute to clipboard (e.g. hash, URL, diff, message, author). |
Copy file name to clipboardExpand all lines: docs/keybindings/Keybindings_pl.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,7 @@ _Legenda: `<c-b>` oznacza ctrl+b, `<a-b>` oznacza alt+b, `B` oznacza shift+b_
80
80
|`` t ``| Cofnij | Utwórz commit cofający dla wybranego commita, który stosuje zmiany wybranego commita w odwrotnej kolejności. |
81
81
|`` T ``| Otaguj commit | Utwórz nowy tag wskazujący na wybrany commit. Zostaniesz poproszony o wprowadzenie nazwy tagu i opcjonalnego opisu. |
82
82
|`` <c-l> ``| Zobacz opcje logów | Zobacz opcje dla logów commitów, np. zmiana kolejności sortowania, ukrywanie grafu gita, pokazywanie całego grafu gita. |
83
+
|`` G ``| Open pull request in browser ||
83
84
|`` <space> ``| Przełącz | Przełącz wybrany commit jako odłączoną HEAD. |
84
85
|`` y ``| Kopiuj atrybut commita do schowka | Kopiuj atrybut commita do schowka (np. hash, URL, różnice, wiadomość, autor). |
85
86
|`` o ``| Otwórz commit w przeglądarce ||
@@ -146,6 +147,7 @@ _Legenda: `<c-b>` oznacza ctrl+b, `<a-b>` oznacza alt+b, `B` oznacza shift+b_
146
147
|`` N ``| Move commits to new branch | Create a new branch and move the unpushed commits of the current branch to it. Useful if you meant to start new work and forgot to create a new branch first.<br><br>Note that this disregards the selection, the new branch is always created either from the main branch or stacked on top of the current branch (you get to choose which). |
0 commit comments