Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Latest commit

 

History

History
78 lines (51 loc) · 3.5 KB

README.md

File metadata and controls

78 lines (51 loc) · 3.5 KB

Archived

JetBrains has made it difficult to create a plugin that works this way. First "actions" are meant to be statically registered, it's possible to create dynamic actions, but it's poorly documented: https://plugins.jetbrains.com/docs/intellij/grouping-action.html#adding-child-actions-to-the-dynamic-group Actions would be an item to click on in a dialog, like a pairing partner.

Second, after I go through the work of making actions dynamic, I still won't have a popup, or be able to dock the popup into the bottom corner because they removed the old APIs that I was using. And finally, after years of getting deprication warnings users are experiencing flat out crashing from removed apis: #17.

I think it will be about a week of work to fix these issues, I tried a few nights. But I don't have the motivation to work on it because I have many other better projects to work on.

Let me know if you want to be the maintainer or to remove the git-pair plugin from the marketplace. I've already marked the highest version as 203.

-- Robert (May 10th 2021)

Git Pair

Pair programming plugin for the Idea platform (IntelliJ, AppCode, Android Studio).

Like Pivotal Lab's Git Scripts, but for the best IDE ever built.

On my teams we often ask "Wait, who's paired right now?" It's a bit inconvenient to find that information. This plugin shows on screen who is paired, and allows you to change the pair. Modeled after the git4idea plugin which allows you to see the branch you are on and quickly switch branches.

Choose a pair Choose a different pair

Installation

Add a .pairs file to your project's root folder in this format:

# This is for the awesome git pair https://plugins.jetbrains.com/plugin/8135 plugin.
# But it works with the Pivotal Labs `git pair` plugin too.

pairs:
  gc: Grumpy Cat;grumpy.cat
  pp: Pinkie Pie; pinkie.pie
  rw: Robert A. Wallis; robert.wallis

email:
  prefix:
  domain: example.com

global: true

Multiple Domains

Maybe you have contractors that have different domains, or maybe you pair with personal email addresses. How can you configure your .pairs file to support multiple domains?

# This is for the awesome git pair https://plugins.jetbrains.com/plugin/8135 plugin.
# But it works with the Pivotal Labs `git pair` plugin too.

pairs:
  gc: Grumpy Cat
  rw: Robert Wallis

email_addresses:
  gc: [email protected]
  rw: [email protected]

The domain chosen is in alphabetical order based on name. So in the example above, example.com will always be chosen if Grumpy Cat pairs with Robert because "G" comes before "R". And the commit email will be [email protected].

FAQ

Why not just use the command line?

Because the current git pair is not visible on the screen at a glance. And typing git pair will reset your pair to nothing.

You could use the pivotal scripts since this plugin will not work in XCode or Visual Studio. On the other hand, there's always AppCode and CLion... (I can haz free licences jetbrains? For testing my plugin?)

Why not just do a pull-request on the git4idea plugin?

Because git pair is a not in core git, it's a plugin for git. Not everyone that uses git, also does pair programming.