Showing all posts tagged #productivity:


Publish OmniFocus tasks as highlights in RescueTime

Posted on August 21st, 2016

I prepared a little script that allows to publish OmniFocus tasks as highlights in RescueTime. I found it useful for review of completed tasks, since RescueTime provides more convenient interface for such review and includes additional context like used apps and visited websites.
You can download the script here, or see source code at the and of this post. To use the script you'll need OmniFocus Pro (for AppleScript support) and RescueTime premium account (for highlights feature).

To install and run the script:

1) Generate API key for RescueTime: https://www.rescuetime.com/anapi/manage


2) Open Terminal and run defaults write io.postach.kholodilov 'rescuetime.api.key' yourkey

3) Download script and open it with double-click. Script Editor application will appear. Go to its preferences and check “Show Script menu in menu bar":

Close Script Editor.

4) Open OmniFocus. In menu bar find “script" icon and click “Open OmniFocus Scripts Folder":


Copy downloaded script to this folder.

5) Go back to OmniFocus. Select one or more tasks (with cmd-click):
I usually open “Completed" perspective and select all tasks for the day. Don’t select any items beside tasks (like “Yesterday" item on the screenshot above), otherwise the script will fail.

6) Click “script" icon in menu bar again - now the script is here in the list, click on it:


7) Gear icon will appear in menu bar showing that script works:


8) On completion it’ll disappear - now go to https://www.rescuetime.com/daily-highlights and open report for the date of your task(s) completion (or current date, if tasks weren’t completed):


Enjoy your task in the report! It’ll start with project name in square brackets and have context and at the end.

As a bonus, completed projects will appear as RescueTime projects in the timeline:



That’s it. You can find source code of the script in the following gist. I’ll appreciate any feedback. Thanks!

Sublime Text - GitHub and GitLab integration with Github Tools

Posted on June 10th, 2015

Every day in my work I use Sublime Text editor. It is quite powerful for code and configuration files editing, and a lot of its power comes from plugins.

One of the very handy plugins is Github Tools. It allows you to quickly jump from currently opened file to its page on GitHub, or copy GitHub link to clipboard (or do some other things related to repository, but these two are the most important). You can do it as simply as typing "github open" in command palette (Cmd+Shift+P) - super useful when you want to quickly share something:


Convenience of Github Tools is very addictive, so it was real pain when my employer decided to move all our code to internal self-hosted repository management tool - GitLab. Fortunately, GitLab guys cloned most of GitHub features up to the structure of repository urls. Today I finally figured out that Github Tools might be able to work with GitLab. And it works!

To setup Github Tools with GitLab you need:
1) Open plugin's settings file:

2) Add your GitLab installation hostname along with "github.com":

3) Restart Sublime Text to re-read the config.
4) Enjoy Github Tools functionality with you GitLab repositories.

Some commands like "Pull Requests" won't work (because GitLab has "Merge Requests" instead and different urls for them) - not a big deal.

Bonus:
Intellij IDEA has the same functionality for opening files both on GitHub and Gitlab - you'll easily find corresponding plugins.

Happy hacking!