Atom.io Quick Scripting

Atom.io Quick Scripting

Atom.io の紹介と、"Script" plugin を使った Quick Scripting の話。
kanazawa.rb meetup 21 発表資料。

Cb057b585817007ba2a931a81ef9398f?s=128

Tomokazu Kiyohara

May 17, 2014
Tweet

Transcript

  1. Atom.io Quick Scripting 2014/05/17! Kanazawa.rb meetup 21

  2. Atom.io https://atom.io

  3. Atom.io ❖ A hackable text editor for the 21st Century!

    ❖ Modern UI! ❖ Many plugins! ❖ Corder friendly functions by GitHub, Inc.
  4. Plugins https://atom.io/packages/

  5. markdown-preview ❖ Markdown preview in Atom! ❖ https://atom.io/packages/markdown-preview

  6. color-picker ❖ A Color Picker for Atom! ❖ https://atom.io/packages/color-picker

  7. Quick Scripting

  8. Quick Scripting ❖ Run editing code in The editor! ❖

    Checking code behavior (or syntax)! ❖ Execute small small program! ! ❖ Immediately!!
  9. script (plugin) ❖ Run code in Atom!! ❖ https://atom.io/packages/script

  10. Demo

  11. How to Setup (Atom ver. 0.95.0)

  12. 1. Open Preference ❖ Menu → Atom → Preferences…

  13. 2. Select Packages pane

  14. 3. Search “script” plugin

  15. 4. Install “Script” plugin

  16. Usage (Script ver. 2.3.7)

  17. 1. Open Code ❖ Menu → File → Open…! !

    ❖ Menu → File → New File! ❖ Set code language! ❖ Ctrl-Shift-L! ❖ Input language filter & select
  18. 2. Run! ❖ Menu → Packages → Script → Run

    Script! ! ❖ ⌘-i
  19. Tips

  20. 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
  21. 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
  22. Vim + Quickrun plugin ❖ https://github.com/thinca/vim-quickrun ! ❖ $ bundle

    exec vim! ❖ :Quickrun! ❖ <Leader>r
  23. Thank you Tomokazu Kiyohara http://github.com/kiyohara http://facebook.com/tomokazu.kiyohara