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
VimでSlackがしたい
Search
higashi
August 30, 2019
1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
VimでSlackがしたい
ゴリラ.vim 第七回で発表したスライド
higashi
August 30, 2019
More Decks by higashi
See All by higashi
Neovim × リアルタイムチャット
higashi000
1
200
Go! Go! WebAssembly!!
higashi000
0
92
Can we use Slack on Vim?
higashi000
1
360
Featured
See All Featured
Designing Experiences People Love
moore
143
24k
How to Ace a Technical Interview
jacobian
281
24k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
RailsConf 2023
tenderlove
30
1.5k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
310
A designer walks into a library…
pauljervisheath
211
25k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Done Done
chrislema
186
16k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
880
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Transcript
VimでSlackがしたい! @higashi136_2
自己紹介 ・Name : ひがし ・Twitter : @higashi136_2 ・GitHub : higashi000
・Like : Vim, D言語
本題
Slack使ってますか?
Slackとは ・チャットサービス ・ワークスペース(団体)の中にチャンネル(部署)を作り, チャンネルごとに色々話せる. ・企業内,部内で導入している団体も多い
VimでSlackがしたい!
したくない?
github.com/higashi000/sarahck.vim
sarahck.vim ・VimでSlackをするためのプラグイン ・レガシートークンを発行してもらい, そのトークンを使ってAPIを叩いている ・動作確認済み環境 : Ubuntu18.04
作ろうとしたきっかけ Slackのデスクトップ版 重い...
作ろうとしたきっかけ Vimでやれば解決じゃん!
作ろうとしたきっかけ Vimでやれば解決じゃん! Slack様
作ろうとしたきっかけ デスクトップ版も ブラウザ版も 高速化したよ Slack様
作ろうとしたきっかけ 神 デスクトップ版も ブラウザ版も 高速化したよ Slack様
作ろうとしたきっかけ でも楽しそうだからやるよ
使用言語 ・Python ・VimScript
使用ライブラリ ・requests ・Vim
Pythonでやってること ・Slackへのリクエスト送信 ・帰ってきたjsonのparse
VimScriptでやってること ・コマンドの定義 ・命令の入力 ・結果の出力
現在できること ・メッセージの送信 ・メッセージの確認 ・所属チャンネル一覧の確認
一つ一つ説明(デモ)
メッセージの送信 ・chat.postMessageを使用 ・SarahckPostMessage チャンネル名 テキスト で使用可能 ・テキストに :thinking_face: と入れるとちゃんと表示される
デモ
メッセージ確認 ・channels.historyを使用 ・SarahckDispChannel チャンネル名 で使用可能
デモ
所属チャンネル表示 ・users.conversationsを使用 ・SarahckChannelList で使用可能
所属チャンネル表示 ・チャンネルの一覧はpopupで表示 ・選択したチャンネルのメッセージが確認できる でも...
所属チャンネル表示 ・Vim8.1.1593以前,Neovimで実行した場合 「未実装〜」と出力するだけになっている ・ごめんなさい
デモ
苦労した部分 ・リクエストを送るときのパラメーターのチャンネル部分 ・チャンネル名ではなくチャンネルIDをつける必要がある ・channels.listですべてのチャンネルを引っ張ってきて その中からチャンネル名が一致するものを探した
今後追加予定の機能 ・メッセージにリアクションをつけたい ・メッセージの表示にpopupを使いたい ・チャンネルの入退出機能
アドバイスお願いします!
VimでSlackがしたい! @higashi136_2