Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Package と Theme の作り方と PackageControl 登録までの道のり

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Package と Theme の作り方と PackageControl 登録までの道のり

in Sublime Sonic 2014

Avatar for astronaughts

astronaughts

August 13, 2014

More Decks by astronaughts

Other Decks in Programming

Transcript

  1.  PHP, Ruby ͷΑ͏ͳεΫϦϓτݴޠ  όʔδϣϯ̎ͱ͕̏͋Δ  ̏ʹ͸ԼҐޓ׵ੑ͕ͳ͍  SublimeText3

    Ͱ͸̏Λ࢖༻  ւ֎Ͱ͸Α͘࢖ΘΕ͍ͯΔݴޠ  ྫɿDropbox, Instagram, Pinterest Python ͱ͍͏ݴޠ
  2.  Python3 ͷΠϯετʔϧ͸ෆཁ  ΋ͪΖΜ SublimeText3 ্Ͱ։ൃ  ͦͷ··ಈ࡞֬ೝͰ͖Δ 

    SublimeText3 ͑͋͞Ε͹͍͍  Ͱ΋؆୯ʹ࡞ΕΔͱ͸ݴ͍·ͤΜ SublimeText3 ͰύοέʔδΛ࡞Δ
  3. KeyBindings - User ʹ௥Ճ [ { "keys": ["super+alt+h"], "command": "example"

    } ]  ίϚϯυ͸খจࣈͰ  ޙ΄Ͳઆ໌͠·͢
  4. class ExampleCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.insert(edit, 0, "Hello, World!") 

    Ϋϥε໊͸ίϚϯυ໊ʹͳΔ෦෼  KeyBinding ͳͲʹઃఆ͢Δ  ͨͩ͠ɺઃఆ࣌͸ Command ΑΓલͷ෦ ෼Λখจࣈʹͨ͠΋ͷ ੜ੒͞Εͨ Python ͷίʔυ
  5. class ExampleCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.insert(edit, 0, "Hello, World!") 

    จࣈྻૢ࡞ͷίϚϯυͰ͋Δએݴ  ΍͍ͬͯΔ͜ͱ͸Ϋϥεͷܧঝ ੜ੒͞Εͨ Python ͷίʔυ
  6. class ExampleCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.insert(edit, 0, "Hello, World!") 

    ίϚϯυ࣮ߦ࣌ʹݺͼग़͞ΕΔ  ͜ͷ഑Լʹॲཧ͍ͨ͜͠ͱΛॻ͘ ੜ੒͞Εͨ Python ͷίʔυ
  7. class ExampleCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.insert(edit, 0, "Hello, World!") 

    ࠓ։͍͍ͯΔը໘Λૢ࡞͢Δ API  จ಄ʹ Hello,World Λૠೖ ੜ੒͞Εͨ Python ͷίʔυ
  8. ύοέʔδΛ࡞Δͱ͍͏͜ͱ  ৘ใ͕ඇৗʹগͳ͍ʢ೔ຊޠ  ެࣜυΩϡϝϯτ͕ඍົ  ͋Δఔ౓ Python ͷษڧ΋ඞཁ 

    Ͱ΋࡞ΕΔΑ͏ʹͳΔͱ͔ͳΓศརʂ  ผʹଟػೳͳ΋ͷΛ࡞Δඞཁ͸ͳ͍  ެ։΋ؾ͕޲͍ͨΒ͢Ε͹͍͍