Atom.io の紹介と、"Script" plugin を使った Quick Scripting の話。 kanazawa.rb meetup 21 発表資料。
Atom.io Quick Scripting 2014/05/17!Kanazawa.rb meetup 21
View Slide
Atom.iohttps://atom.io
Atom.io❖ A hackable text editor for the 21st Century!❖ Modern UI!❖ Many plugins!❖ Corder friendly functions by GitHub, Inc.
Pluginshttps://atom.io/packages/
markdown-preview❖ Markdown preview in Atom!❖ https://atom.io/packages/markdown-preview
color-picker❖ A Color Picker for Atom!❖ https://atom.io/packages/color-picker
Quick Scripting
Quick Scripting❖ Run editing code in The editor!❖ Checking code behavior (or syntax)!❖ Execute small small program!!❖ Immediately!!
script (plugin)❖ Run code in Atom!!❖ https://atom.io/packages/script
Demo
How to Setup(Atom ver. 0.95.0)
1. Open Preference❖ Menu → Atom → Preferences…
2. Select Packages pane
3. Search “script” plugin
4. Install “Script” plugin
Usage(Script ver. 2.3.7)
1. Open Code❖ Menu → File → Open…!!❖ Menu → File → New File!❖ Set code language!❖ Ctrl-Shift-L!❖ Input language filter & select
2. Run!❖ Menu → Packages → Script → Run Script!!❖ ⌘-i
Tips
Env❖ PATH env … ?!❖ rvm, nvm … ?!!❖ write ENV settings “.bash_profile (.zshenv)”!❖ NOT “.bashrc (.zshrc)”!!❖ .bash_profile!❖ PATH=${PATH}:/opt/local/bin!❖ source $HOME/.rvm/scripts/rvm
bundler ?❖ Prepare!❖ Menu → Atom → Install Shell Command!❖ /usr/local/bin/atom → Atom.app/Contents/Resources/app/atom.sh!❖ open -a Atom.app!!❖ Exec!❖ $ bundle exec atom
Vim + Quickrun plugin❖ https://github.com/thinca/vim-quickrun!❖ $ bundle exec vim!❖ :Quickrun!❖ r
Thank youTomokazu Kiyoharahttp://github.com/kiyoharahttp://facebook.com/tomokazu.kiyohara