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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
higashi
August 30, 2019
1.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
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
450
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Code Review Best Practice
trishagee
74
20k
Building Applications with DynamoDB
mza
96
7.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
610
Build your cross-platform service in a week with App Engine
jlugia
234
19k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Mind Mapping
helmedeiros
1
390
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
770
How to Think Like a Performance Engineer
csswizardry
28
2.9k
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