Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split right #39

Merged
merged 1 commit into from
Aug 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)