Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Sublime Text 2 プラグイン開発 - ゼロからPackageControlへ登録まで
Search
blue planet
November 07, 2012
Programming
2.2k
5
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Sublime Text 2 プラグイン開発 - ゼロからPackageControlへ登録まで
第0回 Sublime Text 2 勉強会 #st2jp
http://atnd.org/events/33305
blue planet
November 07, 2012
More Decks by blue planet
See All by blue planet
dapp 開発における big number の落とし穴 / Pitfalls of the big number in dapp development
blueplanet
0
130
join.me使用方法
blueplanet
0
140
rails cn
blueplanet
0
220
Other Decks in Programming
See All in Programming
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
630
残高管理から台帳サービスへの進化
artoy
1
200
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
4
3.5k
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
420
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
Featured
See All Featured
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Six Lessons from altMBA
skipperchong
29
4.5k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Ruling the World: When Life Gets Gamed
codingconduct
0
400
Code Review Best Practice
trishagee
74
20k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
Transcript
Sublime Text 2 プラグイン開発 θϩ͔Β1BDLBHF$POUSPMొ·Ͱ
None
http://gopollgo.com/what-is-your-primary-text-editor-for-ruby-slash-rails
質問
agenda Hello, world!!! 開発トピックス PackageControl 登録手順
None
None
None
None
None
None
おめでとうございます!!
agenda Hello, world!!! 開発トピックス PackageControl 登録手順
開発トピックス 基本概念 CommandPaletteに表示 設定ファイルの使い方 メニューの追加 Shellコマンドの実行
基本概念 http://www.sublimetext.com/docs/2/api_reference.html
Base Classes TextCommand WindowCommand ApplicationCommand EventListener
TextCommand WindowCommand EventListener
ApplicationCommand ドキュメント なし
CommandPaletteに表示
None
None
None
設定ファイル
None
None
None
Menu追加
None
None
[{ "caption": "Preferences", "mnemonic": "n", "id": "preferences", "children":[{ "caption": "Package
Settings", "mnemonic": "P", "id": "package-settings", "children":[{
"caption": "Octopress", "children": [{ "command": "open_file", "args": { "file": "${packages}/Octopress/
octopress.sublime-settings" }, "caption": "Settings â Default" }, { "command": "open_file", ...
Sheelコマンド実行
環境変数の値は Shellと異なる
.bash_profileや.zshrcは ロードされない
rake rake aborted! no such file to load -- bundler/setup
... subprocess.Popen(“rake ...”, ... shell=True)
解決方法は2つ
CommandLineから SublimeTextを起動する
2. 自分で必要なファイル をロード
exec_cmd =“source ~/.bash_profile ; rake ...”
agenda Hello, world!!! 開発トピックス PackageControl登録手順
手 順 http://wbond.net/sublime_packages/package_control/ package_developers#Submitting_a_Package 面倒くさい ・・・
前提 github / bitbucket で管理
3ステップ 1.package_control_channelをFork 2.自分のリポジトリURLを追加 3.Pull Request
1.package_control_channelをFork github: https://github.com/wbond/package_control_channel bitbucket • https://bitbucket.org/wbond/package_control_channel
2.自分のリポジトリURLを追加
None
3.Pull Request
補足 1.名称を別名称にしたい 2.OSを限定したい 3.新しいバージョンを出す方法
1.名称を別名称にしたい "https://github.com/maltize/sublime- text-2-ruby-tests", ...... "sublime-text-2-ruby-tests": "RubyTest",
1.名称を別名称にしたい
2.OSを限定したい リポジトリ直下に packages.json を作成
2.OSを限定したい { "schema_version": "1.2", "packages": [ { "name": "Octopress", "description":
"Execute comma...", "author": "blueplanet", "homepage": "https://github.com/bl...", "last_modified": "2012-11-03 16:31:00",
2.OSを限定したい "platforms": { "osx": [ { "version": "1.1.0", "url": "https://nodeload.github.com/
blueplanet/sublime-text-2-octopress/zipball/master" } ], "linux": [ ...
2.新しいバージョンを出す packages.json を使ってる場合
packages.json "platforms": { "osx": [ { "version": "1.1.0", "url": "https://nodeload.github.com/blueplanet/
sublime-text-2-octopress/zipball/master" } ], "linux": [ ... { "schema_version": "1.2", "packages": [ { "name": "Octopress", "description": "Execute comma...", "author": "blueplanet", "homepage": "https://github.com/bl...", "last_modified": "2012-11-03 16:31:00",
agenda Hello, world!!! 開発中トピックス PackageControl 登録手順
参考 How to Create a Sublime Text 2 Plugin (ӳޠ)
Submitting_a_Package (ӳޠ) sublime-text-2-ruby-tests (github)
Q & A
ご清聴有難う ございました