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
CotEditor Script
Search
USAMI Kosuke
August 06, 2014
Technology
0
500
CotEditor Script
Lightning Talk
フェンリル社内勉強会
USAMI Kosuke
August 06, 2014
Tweet
Share
More Decks by USAMI Kosuke
See All by USAMI Kosuke
Onsager代数とその周辺 / Onsager algebra tsudoi
usamik26
0
650
Apple HIG 正式名称クイズ結果発表 / HIG Quiz Result
usamik26
0
190
ゆめみ大技林製作委員会の立ち上げの話 / daigirin project
usamik26
0
340
@ViewLoadingプロパティラッパの紹介と自前で実装する方法 / @ViewLoading property wrapper implementation
usamik26
0
490
これからUICollectionViewを実践活用する人のためのガイド / Guide to UICollectionView
usamik26
1
760
Xcodeとの最近の付き合い方のはなし / Approach To Xcode
usamik26
2
680
UICollectionView Compositional Layout
usamik26
0
800
Coding Swift with Visual Studio Code and Docker
usamik26
0
520
Swift Extension for Visual Studio Code
usamik26
2
1.1k
Other Decks in Technology
See All in Technology
Vault meets Kubernetes
mochizuki875
0
270
まだ間に合う! StrandsとBedrock AgentCoreでAIエージェント構築に入門しよう
minorun365
PRO
11
910
Kubernetes における cgroup driver のしくみ: runwasi の bugfix より
z63d
2
170
なぜスクラムはこうなったのか?歴史が教えてくれたこと/Shall we explore the roots of Scrum
sanogemaru
3
920
ガチな登山用デバイスからこんにちは
halka
1
210
2025年になってもまだMySQLが好き
yoku0825
8
4k
エニグモ_会社紹介資料(エンジニア職種向け).pdf
enigmo_hr
0
2.2k
スプリントレトロスペクティブはチーム観察の宝庫? 〜チームの衝突レベルに合わせたアプローチ仮説!〜
electricsatie
1
160
カミナシ社の『ID管理基盤』製品内製 - その意思決定背景と2年間の進化 #AWSUnicornDay / Kaminashi ID - The Big Whys
kaminashi
3
800
ヒューリスティック評価を用いたゲームQA実践事例
gree_tech
PRO
0
540
AI駆動開発に向けた新しいエンジニアマインドセット
kazue
0
200
ここ一年のCCoEとしてのAWSコスト最適化を振り返る / CCoE AWS Cost Optimization devio2025
masahirokawahara
1
1.4k
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Music & Morning Musume
bryan
46
6.8k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.5k
The Cult of Friendly URLs
andyhume
79
6.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
910
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Transcript
CotEditor ͷ εΫϦϓτͷ࡞Γํ ! Ӊࠤݟ ެี
CotEditor ͷհ
http://coteditor.github.io/
ݱࡏgithubͰ։ൃ
CotEditor ͷओͳಛ • γϯλοΫεΧϥʔϦϯά • ΞτϥΠϯϝχϡʔ • ೖྗิ • ύϫϑϧͳݕࡧͱஔ
• ຊޠϑϨϯυϦʔ
CotEditor ͷεΫϦϓτػೳ
εΫϦϓτ • εΫϦϓτϝχϡʔʹεΫϦϓτొɾ࣮ߦ • ฤूதͷςΩετΛՃ • ֎෦ͷϓϩάϥϜΛىಈ
͑Δݴޠ • AppleScript • Python • Ruby • Perl •
PHP • UNIX Shell
۩ମྫʢαϯϓϧ͔Βൈਮʣ • ݱࡏ࣌ࠁΛૠೖ • ߦ಄ɾߦͷεϖʔεΛআ • HTMLλά࣮ମࢀরͷૠೖ • શ֯ΧλΧφͱ֯ΧλΧφͷม •
ݱࡏͷϑΝΠϧΛSafariͰ։͘
εΫϦϓτͷՃ
εΫϦϓτͷஔ • εΫϦϓτϑΥϧμʹϑΝΠϧΛஔ͘ • ʮεΫϦϓτϝχϡʔΛߋ৽ʯΛ࣮ߦ
εΫϦϓτݺͼग़͠ • γϣʔτΧοτΩʔɿϑΝΠϧ໊Ͱࢦఆ • ྫɿ"Insert
[email protected]
" → Command+E
ೖྗͷࢦఆʢAppleScriptҎ֎ʣ • εΫϦϓτͷ಄ʹҎԼΛهड़ • # %%%{CotEditorXInput=xxxx}%%% • None : ೖྗͳ͠
• Selection : બจࣈྻ • AllText : υΩϡϝϯτͷͯ͢ͷจࣈྻ
ग़ྗͷࢦఆʢAppleScriptҎ֎ʣ • # %%%{CotEditorXOutput=xxxx}%%% • Discard : ग़ྗͳ͠ • ReplaceSelection
/ ReplaceAllText • InsertAfterSelection / AppendToAllText • Pasteboard
ྫɿ ΧʔιϧҐஔʹग़ྗ #!/usr/bin/env ruby -Ku #%%%{CotEditorXInput=None}%%% #%%%{CotEditorXOutput=InsertAfterSelection}%%% ! now =
Time.now print now.strftime("%y-%m-%d")
AppleScriptͷ߹ • ৄࡉলུʢޙड़ͷϚχϡΞϧΛࢀরʣ • CotEditor ͷػೳͷҰ෦Λར༻Մೳ • ݕࡧɺஔɺ֯શ֯มɺͻΒΧλม • ΤϯίʔσΟϯάมɺUnicodeਖ਼نԽ
• ΩϟϨοτͷҠಈɺεΫϩʔϧ
υΩϡϝϯτྨ
CotEditor ϔϧϓ
εΫϦϓτϚχϡΞϧ
εΫϦϓτ࡞ͬͨΒ ͥͻެ։͍ͯͩ͘͠͞ ʢTweet ͨ͠Βัଊ͞ΕΔ͔ʁʣ