Skip to content

Commit

Permalink
PR #15 Allow the Atom app name to be configurable
Browse files Browse the repository at this point in the history
Make Atom app name configurable to make it work with Atom Beta.
  • Loading branch information
mdeboer committed Dec 12, 2017
1 parent ead6107 commit 88e3ed3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
5 changes: 2 additions & 3 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,14 @@ Simply type atom and press space to list all projects. Optionally type a search
</dict>
<key>variables</key>
<dict>
<key>nodePath</key>
<string>/usr/local/bin/node</string>
<key>atomApp</key>
<string>Atom</string>
<key>terminalApp</key>
<string>Terminal</string>
</dict>
<key>variablesdontexport</key>
<array>
<string>terminalApp</string>
<string>nodePath</string>
</array>
<key>version</key>
<string>2.3.2</string>
Expand Down
2 changes: 1 addition & 1 deletion project.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions project.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const fs = require('fs');
const octicons = require('octicons');
const path = require('path');

const atomAppName = process.env.atomAppName || 'Atom';
const atomApp = process.env.atomApp || 'Atom';
const terminalApp = process.env.terminalApp || 'Terminal';

/**
* Atom Project
Expand Down Expand Up @@ -155,28 +156,28 @@ class Project {
icon: {
path: this._icon(project)
},
arg: this._openArgument(project, atomAppName),
arg: this._openArgument(project, atomApp),
valid: project.paths && project.paths.length > 0,
mods: {
alt: {
valid: true,
subtitle: 'Open project path(s) in terminal',
arg: this._openArgument(project, process.env.terminalApp || 'Terminal')
arg: this._openArgument(project, terminalApp)
},
cmd: {
valid: true,
subtitle: 'Open in new window',
arg: this._openArgument(project, atomAppName, ['-n'])
arg: this._openArgument(project, atomApp, ['-n'])
},
ctrl: {
valid: true,
subtitle: 'Open in development mode',
arg: this._openArgument(project, atomAppName, ['-d'])
arg: this._openArgument(project, atomApp, ['-d'])
},
fn: {
valid: true,
subtitle: 'Append project path(s) to last open window',
arg: this._openArgument(project, atomAppName, ['-a'])
arg: this._openArgument(project, atomApp, ['-a'])
},
shift: {
valid: true,
Expand Down
Loading

0 comments on commit 88e3ed3

Please sign in to comment.