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
- 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.
- 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
- 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.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.