atom-pair

所属分类:其他
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2017-08-30 09:45:57
上 传 者sh-1993
说明:  Atom包,允许史诗般的对编程,
(An Atom package that allows for epic pair programming,)

文件列表:
.travis.yml (182, 2017-08-30)
CHANGELOG.md (1785, 2017-08-30)
LICENSE.md (1050, 2017-08-30)
images/ (0, 2017-08-30)
images/demo.gif (2976888, 2017-08-30)
images/hipchat.jpg (279983, 2017-08-30)
images/invite.gif (117218, 2017-08-30)
images/slack.jpg (185494, 2017-08-30)
keymaps/ (0, 2017-08-30)
keymaps/atom_pair.cson (411, 2017-08-30)
lib/ (0, 2017-08-30)
lib/atom_pair.coffee (1918, 2017-08-30)
lib/helpers/ (0, 2017-08-30)
lib/helpers/chunk-string.coffee (252, 2017-08-30)
lib/helpers/colour-list.coffee (257, 2017-08-30)
lib/modules/ (0, 2017-08-30)
lib/modules/grammar_sync.coffee (225, 2017-08-30)
lib/modules/invitations/ (0, 2017-08-30)
lib/modules/invitations/hipchat_invitation.coffee (1572, 2017-08-30)
lib/modules/invitations/invitation.coffee (1032, 2017-08-30)
lib/modules/invitations/slack_invitation.coffee (1027, 2017-08-30)
lib/modules/message_queue.coffee (800, 2017-08-30)
lib/modules/presence_indicator.coffee (935, 2017-08-30)
lib/modules/session.coffee (6179, 2017-08-30)
lib/modules/share_pane.coffee (5231, 2017-08-30)
lib/modules/user.coffee (1277, 2017-08-30)
lib/pusher/ (0, 2017-08-30)
lib/pusher/pusher-js-client-auth.js (55468, 2017-08-30)
lib/pusher/pusher.js (112614, 2017-08-30)
lib/views/ (0, 2017-08-30)
lib/views/atom-pair-view.coffee (333, 2017-08-30)
lib/views/input-view.coffee (470, 2017-08-30)
menus/ (0, 2017-08-30)
menus/atom-pair.json (785, 2017-08-30)
package.json (517, 2017-08-30)
spec/ (0, 2017-08-30)
spec/fixtures/ (0, 2017-08-30)
spec/fixtures/basic-buffer-write.json (5595, 2017-08-30)
... ...

# AtomPair [![Build Status](https://travis-ci.org/pusher/atom-pair.svg?branch=tweaks)](https://travis-ci.org/pusher/atom-pair) Remote pairing within the [Atom](http://atom.io) text editor, powered by Pusher. ## Version 2.0.0 * This major release allows users to share multiple tabs. Any new tabs open within a window where a pairing session is active will be synchronized across. * Hand-made notifications views have now been ditched in favour of using Atom's Notifications API. * Initiating a session automatically writes the session ID to your clipboard, allowing you to simply paste it to your partner. * Using autocomplete no longer leaves clients out of sync. ## How Do I Get Started? ### Install First off, install Atom if you haven't already. Now type into your terminal: $ apm install atom-pair Alternatively, go to the command palette via Command+Shift+P and go to `Install Packages and Themes`. Then search for and install `atom-pair`. ### Invite You can either decide to pair on a blank slate, or on existing code. If you invite somebody to collaborate on existing code, they will see everything you can, and their syntax highlighting will be synchronized with yours. As detailed below, there are two ways you can invite others. Given a [free](https://pusher.com/signup?utm_source=Reddit&utm_medium=Atom.io_Package_Page&utm_campaign=AtomPair) Sandbox plan, there will be a maximum of 20 collaborators per session. *Note that you must enable client-events in App Settings when you create a new Pusher app, otherwise this plugin will not work.* #### Basic Invitation Hit Command+Shift+P, and in the command palette, hit `AtomPair: Start A New Pairing Session`. A session ID will be automatically copied to your clipboard. ![Basic Invite](https://raw.githubusercontent.com/pusher/atom-pair/master/images/invite.gif) #### HipChat Invitation The other way - one that we use quite often - is to invite collaborators over [HipChat](http://hipchat.com), a service for intra-company chat. You can sign up for a free account [here](https://www.hipchat.com/sign_up). We wanted this partly as an easy way of giving collaborators a session ID, but also so that other members of the team could join in if they wanted to. If you have admin privileges in a HipChat organization, go to your Package Settings (`+,` -> 'Packages' -> 'atom-pair'). Enter your HipChat API key and the room you wish the invitation to be sent through. Now, when you enter `AtomPair: Invite Over HipChat` and enter your collaborator's HipChat @mention_name in the command palette, they will receive an invitation with a session ID. ![HipChat Invite](https://raw.githubusercontent.com/pusher/atom-pair/master/images/hipchat.jpg) #### Slack Invitation If you use [Slack](https://slack.com/) instead of HipChat, we have you covered for that too. It works pretty much the same way as the HipChat integration. All you need to do is log into your Slack account and click "Configure Integrations" and configure an "Incoming Webhook". It will ask you to choose a channel you want to post messages to, but this doesn't really matter too much, you will manually specify the channel or recipient when you send the invite. Once you set up your integration, it will give you a "Webhook URL". You'll need to copy this URL, and put it in your atom-pair configuration where it asks for a "WebHook URL for Slack Incoming Webhook Integration". To send the invite, simply enter "AtomPair: Invite Over Slack" and enter either the channel you want to send the invite to _(#channel)_ or the person you want to send the invite to _(@person)_. Once you do, all they have to do is join the session with the session ID and you'll be pair programming! ![Slack Invite](https://raw.githubusercontent.com/pusher/atom-pair/master/images/slack.jpg) ### Collaborate! ![Demo](https://raw.githubusercontent.com/pusher/atom-pair/master/images/demo.gif) Once your partner has a session ID, they should go to the command pallette and hit `AtomPair: Join a pairing session`, and enter the ID. Once there are more than one of you in a session, your collaborators will be represented by a coloured marker in the gutter, which will changed position based on their selections and inputs. Any new files opened in that window will be automatically synced across, and you can work on different files at the same time. To end a pairing session, go to `AtomPair: Disconnect`, and you will be disconnected from Pusher, and the file will be free for you to save. ## Free And Open For Everyone Currently, you are given default Pusher credentials when you install the package, so that you can get started with as less friction as possible. Communication will take place over a randomly generated channel name. However, for improved security, we encourage you to [create a free account](https://pusher.com/signup?utm_source=Reddit&utm_medium=Atom.io_Package_Page&utm_campaign=AtomPair) and enter your own app key and app secret by going to your Package Settings. A free Sandbox plan should be more than enough for your pairing sessions. *Note that you must enable client-events in App Settings when you create a new Pusher app, otherwise this plugin will not work.* ### Contributing Here is a current list of features: * Text synchronization * Multiple tab syncing * File-sharing * HipChat invitations * Slack invitations * Synchronized syntax highlighting * Collaborator visibility. But if there are any features you find lacking, feel more than welcome to [get in touch](). ### Running Tests To run the tests, just type into your command line at the root of the project: $ apm test ### Adding New Methods of Invitation Currently there is support for inviting people over HipChat and Slack. If you would like to invite friends or colleagues through any other integration, there is a mini-API to make this more simple. All you have to do is inherit from our `Invitation` class and implement two methods: ```coffee class YourInvitation extends Invitation checkConfig: -> # Must be implemented # Returns false if they are missing your integration's API keys, otherwise true. send: (callback)-> # Must be implemented # Send your invitation and simple call the callback when you're done. ``` See [here](https://github.com/pusher/atom-pair/blob/master/lib/modules/invitations/slack_invitation.coffee) for an example. ## Credits This project is owned and maintained by [@jpatel531](http://github.com/jpatel531), a developer at [Pusher](http://pusher.com). Special thanks for contributing go to: * [@snollygolly](http://github.com/snollygolly)

近期下载者

相关文件


收藏者