These are chat archives for Glavin001/atom-gitter

15th
Jun 2014
Glavin Wiechert
@Glavin001
Jun 15 2014 04:34
:smile:
Glavin Wiechert
@Glavin001
Jun 15 2014 04:42
;)
:D
:open_mouth:
:fire:
:shipit:
this is a test :shipit: wow
;)
:D
This is a test :smile:
I think this is all working! :shipit:
:fire:
I :heart: Gitter
Glavin Wiechert
@Glavin001
Jun 15 2014 05:42
Hey! :smile:
Glavin Wiechert
@Glavin001
Jun 15 2014 05:54
Hey! :D
This is awesome!
:d
:smile:
Glavin Wiechert
@Glavin001
Jun 15 2014 06:03
Hey :smile:
This is exciting :tongue:
so this is cool :smile:
Glavin Wiechert
@Glavin001
Jun 15 2014 06:33
    if text
    if text
    if text
[object Object]
Glavin Wiechert
@Glavin001
Jun 15 2014 06:40
    @div class: 'atom-gitter overlay from-top panel', =>
[object Object]
[object Object]
[object Object]
Glavin Wiechert
@Glavin001
Jun 15 2014 06:50
var url = require('url');
var emoji = require('emoji-images');
var emoji = require('emoji-images');
        'Send a message with Gitter'
'menu': [
Glavin Wiechert
@Glavin001
Jun 15 2014 07:07

        @gitter.currentRoom.send message
Glavin Wiechert
@Glavin001
Jun 15 2014 07:16
      @div
Glavin Wiechert
@Glavin001
Jun 15 2014 07:22
es'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
ePanelView = require('atom-message-panel').MessagePanelView;
var PlainMessageView = require('atom-message-panel').PlainMessageView;

var githubUrlFromGit = require('github-url-from-git');
var url = require('url');
var Gitter = require('node-gitter');
var emoji = require('emoji-images');

module.exports = {
  configDefaults: {
Glavin Wiechert
@Glavin001
Jun 15 2014 16:02
    atom.workspaceView.command "atom-gitter:toggle", => @toggle()
    atom.workspaceView.command "atom-gitter:toggle", => @toggle()
Glavin Wiechert
@Glavin001
Jun 15 2014 16:35
re GitHub link to this line with Gitter': 'gitter:send-github-line-link'

'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
        { 'label': 'Toggle send message panel', 'command': 'gitter:toggle' },
        { 'labe

module.exports =
class AtomGitterView extends View
  @content: ->
    @div class: 'atom-gitter overlay from-top panel', =>
      @div
        class: 'panel-heading'
        'Send a message with Gitter'
      @div class: 'panel-body padded', =>
        @textarea
          type: 'text'
          class: 'form-control native-key-bindings'
          placeholder: 'Enter your message to post on Gitter'
          value: ''
          outlet: 'inputMessage'

        @div class: 'block', =>
          @button
            class: 'btn btn-warning'
            click: 'toggle'
            'Close'
          @button
            class: 'btn btn-primary pull-right'
            click: 'sendMessage'
            'Send message'
Awesome!
Glavin Wiechert
@Glavin001
Jun 15 2014 16:45
'beautify'
  'cmd-alt-t': 'gitter:toggle'
  'cmd-alt-s': 'gitter:send-selected-code'
'context-menu':
  '.overlayer':
      'Send message with Gitter': 'gitter:toggle'
      # 'Send selected code with Gitter': 'gitter:send-selected-code'
  '.workspace .editor:not(.mini)':
      'Share GitHub link to this line with Gitter': 'gitter:send-github-line-link'

'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
        { 'label': 'Toggle send message panel', 'command': 'gitter:toggle' },
        { 'label': 'Send selected code with Gitter', 'command': 'gitter:send-selected-code' }
      ]
    ]
  }
]
Glavin Wiechert
@Glavin001
Jun 15 2014 16:56
Test
This is a test
test
Glavin Wiechert
@Glavin001
Jun 15 2014 17:02
AWESOME

'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
        { 'label': 'Toggle send message panel', 'command': 'atom-gitter:toggle' },
        { 'label': 'Send selected code with Gitter', 'command': 'gitter:send-selected-code' }
      ]
    ]
  }
test
This is awesome!
whoa this is awesome

'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
        { 'label': 'Toggle send message panel', 'command': 'atom-gitter:toggle' },
        { 'label': 'Send selected code with Gitter', 'command': 'gitter:send-selected-code' }
      ]
    ]
  }
]
Glavin Wiechert
@Glavin001
Jun 15 2014 17:09
'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
        { 'label': 'Toggle send message panel', 'command': 'atom-gitter:toggle' },
        { 'label': 'Send selected code with Gitter', 'command': 'gitter:send-selected-code' }
      ]
    ]
  }
]

  sendMessage: ->
    # Get input message
    msg = @inputMessage.val()
    # Send message
    if @gitter.currentRoom and msg
      @gitter.currentRoom.send msg
    # Clear inputMessage
    @inputMessage.val ''
Glavin Wiechert
@Glavin001
Jun 15 2014 17:16
Hey! :smile:
Hey! :smile:
Glavin Wiechert
@Glavin001
Jun 15 2014 17:21
ho
tset
test
Glavin Wiechert
@Glavin001
Jun 15 2014 17:47

  configDefaults: {
    token: "",
    openOnNewMessage: true,
    recentMessagesAtTop: true
  },

  emojiFolder: 'atom:/
Glavin Wiechert
@Glavin001
Jun 15 2014 17:57

'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
        { 'label': 'Toggle send message panel', 'command': 'atom-gitter:toggle' },
        { 'label': 'Send selected code with Gitter', 'command': 'gitter:send-selected-code' }
      ]
    ]
  }
]
Hey! :heart:
Hey!
Hey!

'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
        { 'label': 'Toggle send message panel', 'command': 'atom-gitter:toggle' },
        { 'label': 'Send selected code with Gitter', 'command': 'gitter:send-selected-code' }
      ]
    ]
  }
]
test
Glavin Wiechert
@Glavin001
Jun 15 2014 18:08
# See https://atom.io/docs/latest/creating-a-package#menus for more details
'context-menu':
  '.overlayer':
      'Send message with Gitter': 'gitter:toggle'
      # 'Send selected code with Gitter': 'gitter:send-selected-code'
  '.workspace .editor:not(.mini)':
      'Share GitHub link to this line with Gitter': 'gitter:send-github-line-link'

'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
        { 'label': 'Toggle send message panel', 'command': 'atom-gitter:toggle' },
        { 'label': 'Send selected code with Gitter', 'command': 'gitter:send-selected-code' }
      ]
    ]
  }
]
        { 'label': 'Toggle send message panel', 'command': 'atom-gitter:toggle' },
test
h

'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Gitter'
      'submenu': [
        { 'label': 'Toggle send message panel', 'command': 'atom-gitter:toggle' },
        { 'label': 'Send selected code with Gitter', 'command': 'gitter:send-selected-code' }
      ]
    ]
  }
]
test
Hey

'.editor': # Available from Editor only
  'ctrl-i': 'beautify'
  'cmd-ctrl-c': 'gitter:send-selected-code'
'.workspace': # Available Globally
  'cmd-ctrl-x': 'gitter:toggle'
'.gitter.panel': # Available from within the Gitter compose message panel
  'cmd-ctrl-s': 'gitter:send-message'

```GitHub Markdown

Example

For example, this is @Glavin001's personal keymap.cson for Atom.

'.editor': # Available from Editor only
  'cmd-ctrl-c': 'gitter:send-selected-code'
'.workspace': # Available Globally
  'cmd-ctrl-x': 'gitter:toggle'
'.gitter.panel': # Available from within the Gitter compose message panel
  'cmd-ctrl-s': 'gitter:send-message'

```

Glavin Wiechert
@Glavin001
Jun 15 2014 18:15
        { 'label': 'Toggle send message panel', 'command': 'atom-gitter:toggle' },

```GitHub Markdown

Example

For example, this is @Glavin001's personal keymap.cson for Atom.

'.editor': # Available from Editor only
  'cmd-ctrl-c': 'gitter:send-selected-code'
'.workspace': # Available Globally
  'cmd-ctrl-x': 'gitter:toggle'
'.gitter.panel': # Available from within the Gitter compose message panel
  'cmd-ctrl-s': 'gitter:send-message'

```