mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Updated Custom Commands Compendium (markdown)
parent
4a073ad29a
commit
b8a11d164f
1 changed files with 15 additions and 5 deletions
|
@ -4,7 +4,7 @@ If you want to know how to implement your own custom commands see [here](https:/
|
|||
|
||||
## Creating a review in [Gerrit](https://gerrit-review.googlesource.com/Documentation/intro-gerrit-walkthrough.html)
|
||||
|
||||
```
|
||||
```yml
|
||||
customCommands:
|
||||
- key: '<c-p>'
|
||||
command: "git push origin HEAD:refs/for/{{.CheckedOutBranch.Name}}"
|
||||
|
@ -14,7 +14,7 @@ customCommands:
|
|||
|
||||
## Pushing to a specific remote branch
|
||||
|
||||
```
|
||||
```yml
|
||||
customCommands:
|
||||
- key: '<c-p>'
|
||||
context: 'global'
|
||||
|
@ -26,7 +26,7 @@ customCommands:
|
|||
```
|
||||
## Creating an annotated tag
|
||||
|
||||
```
|
||||
```yml
|
||||
- key : 'N'
|
||||
description: 'create annotated tag'
|
||||
command: "git tag -a {{index .PromptResponses 0}} -m \"{{index .PromptResponses 1}}\""
|
||||
|
@ -40,7 +40,7 @@ customCommands:
|
|||
|
||||
## Open GitHub Pull Request
|
||||
|
||||
```
|
||||
```yml
|
||||
customCommands:
|
||||
- key: "<c-r>"
|
||||
command: "gh pr create --fill --web"
|
||||
|
@ -52,7 +52,7 @@ This can be customized to fit your needs. Run `gh pr create --help` to see what
|
|||
|
||||
## Checkout branch via Github Pull Request id
|
||||
|
||||
```
|
||||
```yml
|
||||
customCommands:
|
||||
- key: "v" # couldn't think of a better keybinding
|
||||
prompts:
|
||||
|
@ -62,3 +62,13 @@ customCommands:
|
|||
context: "localBranches"
|
||||
loadingText: "checking out PR"
|
||||
```
|
||||
|
||||
## Opening git mergetool
|
||||
|
||||
```yml
|
||||
- key: "M"
|
||||
command: "git mergetool {{ .SelectedFile.Name }}"
|
||||
context: "files"
|
||||
loadingText: "opening git mergetool"
|
||||
subprocess: true
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue