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

[WIP] Config #62

Closed
wants to merge 3 commits into from
Closed

[WIP] Config #62

wants to merge 3 commits into from

Conversation

rgbkrk
Copy link
Member

@rgbkrk rgbkrk commented Mar 10, 2014

This adds a config to script, addressing #5.

screen shot 2014-03-10 at 1 15 08 am

There are major issues though.

One is the fact that functions in the config get clobbered/coerced into empty object literals. To get around this I opted for using a "flags" array.

This brings us to the next issue. If there are no flags specified within the default or the settings pane, atom.config just doesn't pass that on. This makes it hard to tell the difference between a program that can't handle selections or just plain doesn't have flags.

Also, the config screen is ugly. See what it does with capital letters in keys?

PHP -> P H P
CoffeeScript -> Coffee Script

rgbkrk added 3 commits March 9, 2014 23:33
Major bug though currently since config appears to clobber functions:

  atom.config.get('script.grammars.Perl')["File Based"]()
  TypeError: Property 'File Based' of object #<Object> is not a function
  atom.config.get('script.grammars.Perl')["File Based"]
  Object {}
@rgbkrk
Copy link
Member Author

rgbkrk commented Apr 3, 2014

Closing in favor of using other configurables

  • The options dropdown
  • Having users set up their run settings in init.cson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant