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
Can we use Slack on Vim?
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
higashi
November 03, 2019
1
320
Can we use Slack on Vim?
I announced this slide in VimConf 2019 LT session.
higashi
November 03, 2019
Tweet
Share
More Decks by higashi
See All by higashi
Neovim × リアルタイムチャット
higashi000
1
180
Go! Go! WebAssembly!!
higashi000
0
74
VimでSlackがしたい
higashi000
0
980
Featured
See All Featured
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
440
My Coaching Mixtape
mlcsv
0
48
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
Ruling the World: When Life Gets Gamed
codingconduct
0
140
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Writing Fast Ruby
sferik
630
62k
Context Engineering - Making Every Token Count
addyosmani
9
660
Facilitating Awesome Meetings
lara
57
6.8k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
260
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.9k
Transcript
Can we use Slack on Vim? in VimConf 2019 LT
Session @higashi136_2
My Profile Name : higashi Usually : Student in Okinawa
Favorite Language : VimScript, Dlang, Golang Like : Vim, Linux GitHub : higashi000 Twitter : @higashi136_2
Do you want to use Slack on Vim?
Yes!!
If we can use Slack on Vim... ・Post message from
Vim ・Check channel history from Vim ・Registration reminder from Vim etc...
Let’s Implementation ・higashi000/sarahck.vim ・higashi000/sleahck ・higashi000/sleahck.vim
How to use Slack on Vim ・Slack API ・Slack Legacy
Token ・HTTP requests using Python or Ruby or etc… ・HTTP requests using webapi-vim created by Mr.mattn
Implementation on Python ・Use requests module and Vim module ・User
must install the modules →
Implementation on Python ・Use requests module and Vim module ・User
must install the modules →Can I not implement it only in VimScript?
Implementation on webapi-vim ・Use mattn/webapi-vim ・User only needed to install
Vim Plugin →
Implementation on webapi-vim ・Use mattn/webapi-vim ・User only needed to install
Vim Plugin →higashi000/sarahck.vim
Post message from sarahck.vim
Check Channel List and History from sarahck.vim
Isssue ・Delay until message display
Isssue ・Delay until message display I want to display it
earlier
Before HTTP requests Response GET /api/channels.history {“ok”:true}
Proposal local cache server {“ok”:true} Response GET Request to Channel
History Request cache Return cache
Implemented ・higashi000/sleahck ・higashi000/sleahck.vim
higashi000/sleahck ・”sleahck” implemented in Golang ・Use gin-gonic/gin and nlopes/slack ・Update
messages every 1minute
higashi000/sleahck.vim ・”sleahck.vim” implemented in VimScript and mattn/webapi-vim ・Reference of local
cache from Vim ・A function in sarahck.vim formerly →
higashi000/sleahck.vim ・”sleahck.vim” implemented in VimScript and mattn/webapi-vim ・Reference of local
cache from Vim ・A function in sarahck.vim formerly → Structure is different, separated from sarahck.vim.
Check Channel List and History from sleahck.vim
Summary Can we use Slack on Vim? →
Summary Can we use Slack on Vim? →Yes!!
Summary But, I can’t display the images due to my
lack of my knowledge Either cannot display reaction and cannot enter and leave the channel
Summary But, I can’t display the images due to my
lack of my knowledge Either cannot display reaction and cannot enter and leave the channel Future task
Thank you for listening to my LT!!