-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Custom Commands Compendium
Jesse Duffield edited this page Sep 27, 2020
·
48 revisions
If you have implemented a custom command(s) that you find useful, please add it here so others can find it too. If a particular command proves popular, we will merge it into the codebase for all to use.
If you want to know how to implement your own custom commands see here
Creating a review in Gerrit
customCommands:
- key: '<c-p>'
command: "git push origin HEAD:refs/for/{{.CheckedOutBranch.Name}}"
context: 'global'
loadingText: 'pushing'
customCommands:
- key: '<c-p>'
context: 'global'
loadingText: 'pushing'
prompts:
- type: 'input'
title: 'which branch do you want to push to?'
command: "git push origin {{index .PromptResponses 0}}"
- key : 'N'
description: 'create annotated tag'
command: "git tag -a {{index .PromptResponses 0}} -m \"{{index .PromptResponses 1}}\""
context: 'tags'
prompts:
- type: 'input'
title: 'Annotated tag name:'
- type: 'input'
title: 'Annotated tag message:'