Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Sublime Text 2 プラグイン開発 - ゼロからPackageControlへ登録まで
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
blue planet
November 07, 2012
Programming
2.1k
5
Share
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
130
rails cn
blueplanet
0
220
Other Decks in Programming
See All in Programming
ECR拡張スキャンでSBOMを収集して サプライチェーン攻撃の影響調査を 爆速で終わらせてみた
akihisaikeda
1
160
inferと仲良くなる10分間
ryokatsuse
1
120
AWSはOSSをどのように 考えているのか?
akihisaikeda
0
130
iOS26時代の新規アプリ開発
yuukiw00w
0
160
決定論 vs 確率論:Gemini 3 FlashとTF-IDFを組み合わせた「法規判定エンジン」の構築
shukob
0
170
「なんか〇〇ライブラリで脆弱性あるみたいなんだけど。。。」から始める脆弱性対応 / First Steps in Vulnerability Response
mackey0225
2
130
今さら聞けないCancellationToken
htkym
0
120
ふにゃっとしない名前の付け方 〜哲学で茹で上げる、コシのあるソフトウェア設計〜
shimomura
0
120
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.9k
[BalkanRuby 2026] Drop your app/services!
palkan
3
600
RailsTokyo 2026#4: AI様があれば、 Hotwireの弱点は消えるか?
naofumi
3
450
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
160
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Amusing Abliteration
ianozsvald
1
170
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
180
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
340
Docker and Python
trallard
47
3.8k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Embracing the Ebb and Flow
colly
88
5k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
800
The Mindset for Success: Future Career Progression
greggifford
PRO
0
330
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
370
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
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
ご清聴有難う ございました