Need to check your twitter feed without anyone noticing? Tell your IDE to display the tweets as a python class! Sublime Text productivity plugin shows your twitter feed inside Sublime text without having to browse twitter.com.
The Problem to be solved
This plugin started as a joke between me and a colleague. We sit in an open office at work. I’ve always had my desk in a corner before, and no one could see whats on my computer monitors. One day this changed and i got a desk in the middle of the room, with my monitors facing a way so that all prying eyes could see what i did all day. How do i check my social medias without being caught? Well… you mask the tweets as a class in your IDE of course :=)
What it does
This plugin adds a new menu called “Productivity”, and asks twitter via oauth to get your twitter home feed. Then the plugin creates a python class(that is trying to follow the PEP8 standard). This way you don’t have to open a browser and go to twitter.com.
Installing and testing it
At the time of writing this post the plugin needs to be installed manually. But don’t worry, adding it to the package manager of sublime is to be done.
1. Download the repo from Github.
2. Extract the repo into the sublime plugin path of Sublime:
- (OSX): Users\”Username”\Library\Application Support\Sublime Text 3\Packages
- (WIN7): C:\Users\”Username”\AppData\Roaming\Sublime Text 3\Packages
3. This step will be unnecessary in the future, but for now you need to create a twitter app.
Open up the the file \Sublime Text 3\Packages\Productivity\twitterapicall.py and add the consumer key, consumer secret, access token and access token secret to the lines 8 - 11.
Currently there is a bug that stops the plugin from running the first time starting Sublime. But the work around this is to open \Sublime Text 3\Packages\Productivity\productivity.py and just resave it. This should be working in the latest version now.
Now you are done and can use the menu Productivity -> Twitter
This plugin is open sourced at Github and i’ve got a few issues that needs to be fixed. You are very welcome to fork it and help me with them. Or you are just as welcome to add your own ideas to the plugin.