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
490
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
530
Apple HIG 正式名称クイズ結果発表 / HIG Quiz Result
usamik26
0
110
ゆめみ大技林製作委員会の立ち上げの話 / daigirin project
usamik26
0
280
@ViewLoadingプロパティラッパの紹介と自前で実装する方法 / @ViewLoading property wrapper implementation
usamik26
0
430
これからUICollectionViewを実践活用する人のためのガイド / Guide to UICollectionView
usamik26
1
690
Xcodeとの最近の付き合い方のはなし / Approach To Xcode
usamik26
2
610
UICollectionView Compositional Layout
usamik26
0
680
Coding Swift with Visual Studio Code and Docker
usamik26
0
450
Swift Extension for Visual Studio Code
usamik26
2
910
Other Decks in Technology
See All in Technology
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.8k
Engineer Career Talk
lycorp_recruit_jp
0
190
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
日経電子版のStoreKit2フルリニューアル
shimastripe
1
140
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.5k
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
RubyのWebアプリケーションを50倍速くする方法 / How to Make a Ruby Web Application 50 Times Faster
hogelog
3
950
The Role of Developer Relations in AI Product Success.
giftojabu1
0
130
Platform Engineering for Software Developers and Architects
syntasso
1
520
Evangelismo técnico: ¿qué, cómo y por qué?
trishagee
0
360
Can We Measure Developer Productivity?
ewolff
1
150
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
390
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
43
13k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Become a Pro
speakerdeck
PRO
25
5k
Embracing the Ebb and Flow
colly
84
4.5k
Agile that works and the tools we love
rasmusluckow
327
21k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
Bash Introduction
62gerente
608
210k
Designing for humans not robots
tammielis
250
25k
Building Adaptive Systems
keathley
38
2.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
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 ͨ͠Βัଊ͞ΕΔ͔ʁʣ