```coffeescript
GitHubFile  = require './github-file'

module.exports =
  activate: ->
    return unless project.getRepo()?

    rootView.command 'github:open', ->
      if itemPath = rootView.getActivePaneItem()?.getPath?()
        GitHubFile.fromPath(itemPath).open()

    rootView.command 'github:blame', ->
      if itemPath = rootView.getActivePaneItem()?.getPath?()
        GitHubFile.fromPath(itemPath).blame()
```

Enable commands only when a file pane is active
user
```coffeescript
GitHubFile  = require './github-file'

module.exports =
  activate: ->
    return unless project.getRepo()?

    rootView.eachPane (pane) ->
      pane.command 'github:open', ->
        if itemPath = rootView.getActivePaneItem()?.getPath?()
          GitHubFile.fromPath(itemPath).open()

      pane.command 'github:blame', ->
        if itemPath = rootView.getActivePaneItem()?.getPath?()
          GitHubFile.fromPath(itemPath).blame()
```
assistant