Skip to content

Commit

Permalink
Merge pull request #39 from lmrphud/split-right
Browse files Browse the repository at this point in the history
Split right
  • Loading branch information
ddavison authored Aug 2, 2016
2 parents 750efaf + 80e8684 commit c774ac3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/rest-client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@ module.exports =
description: 'number of recent requests to save'
type: 'integer'
default: 5
split:
title: 'Split setting'
description: 'Open in "left" or "right" pane'
type: 'string'
default: 'left'

activate: ->
# TODO Config not accessible in view due to addOpener
atom.workspace.addOpener (filePath) ->
createRestClientView(uri: restClientUri) if filePath is restClientUri

atom.commands.add 'atom-workspace', 'rest-client:show', ->
atom.workspace.open(restClientUri)
atom.workspace.open(restClientUri, split: atom.config.get('rest-client.split'), searchAllPanes: true)

0 comments on commit c774ac3

Please sign in to comment.