You are browsing as a guest. Sign up (or log in) to start making projects!

textmate-wakatime fixes

  • 1 Devlogs
  • 3 Total hours

Took the old broken version of textmate-wakatime (made while wakatime was still based on Python) and modified it to be modern, including cursor position, category (just Coding because it’s textmate), proper event handling + timeouts, sdk adjustment + refactor (since it was xcode 2.4 compatible but relied on the osx 10.10 sdk?), and about 2 hours of debugging issues with the extension working in textmate 2 for some reason.

Ship #1 Pending review

I forked the textmate-wakatime repo, a repo that had feature updates last in 2015, and updated it to work well with modern wakatime-cli. This includes a status indicator, proper time tracking, categories, and more. Check it out! video of action is included in the release, it does take 2 minutes since the heartbeats happens at a normal pace.

  • 1 devlog
  • 3h
Try project → See source code →
Open comments for this post

2h 54m 12s logged

well that was a while debugging. I unfortunately spent more hours than I’d care on this.

this is a fork of a textmate-wakatime, a wakatime plugin for textmate, a macos editor.

Compared to the previous release, the modified v2.0.0 release builds on the 1.0.2 release (since the 1.0.3 release doesn’t seem to exist). It adds cursor position, the current time coded today under the File menu, adds OSX 10.9 support, removes legacy references to back when wakatime-cli was a Python project, fixes issues where Textmate autosaves within 2 seconds of a modification, destroying performance by spamming heartbeats.

that’s a lot of things. the weird thing about this project is that

  1. it was very old. it doesn’t have configuration for stuff like a getter-setter-auto-synthesizer, but was compiled with the osx 10.10 sdk.
  2. The rate limiting must have been different, since a write heartbeat happens everytime the user touches a key, and write heartbeats bypass rate limiting, causing a ton of heartbeats to be generated in a 3 second period
  3. adding line number functionality wasn’t as fun as it was for xcode. Xcode’s editor is directly exposed, but you have to dig into the view hierachy in the window to search for a custom TextView and find the index of the cursor in there. It doesn’t just appear in the FirstResponder, which was annoying.

never the less, i got this working. The only reason I’m using Textmate is because it was on the mavericksforever.com website, and Webstorm and VS Code (at least the working ones for mavericks) are too old to work with Svelte 5, and Sublime text 3 is too ugly to use and doesn’t have a working LSP anyway. textmate isn’t even that bad of an option, considering there’s no way I’ll have LSP available.

if you still use TextMate on a version of OSX that doesn’t make a fuss about signed code injections, you should be able to use this! But it is a wakatime extension, so you probably don’t need to.

0
0
4

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…