Hello,
I needed to reinstall TexMate but I was surprised to see some variables like TM_FULLNAME etc. still present
as well as the previously opened files?
Everytime I reinstall textmate I always go back with my previous settings.
~/Library/Application Support/Textmate
~/Library/Caches/ ….
~/Library/Preferences/ ….
~/Library/HTTPStorage/ ….
Where is this data stored?
What to do?
Thanks,
Alain
Hi,
With Monterey on a Macbook Air (M1) when I try to insert a template,
I get the following error:
/Users/ego/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/command.rb:423:in `template_text': uninitialized constant OSX (NameError)
from /Users/ego/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Ruby/command.rb:430:in `insert_template'
from LaTeX Template:9
Is there a way around this?
Alain
Hi folks,
I’m developing a TextMate bundle for WakaTime [1]. It seems as though sufficient functionality is available now with Semantic Classes “callback.document.did-open” and “callback.application.did-activate” to trigger a call to the wakatime-cli [2]. (The goal here is to replace the WakaTime.tmplugin [3] which relies on a now-deprecated Python implementation of the WakaTime API, written in Python 2).
Cliff’s Notes on WakaTime: a shell script that can be called to update a web service with how much time has been spent viewing/editing a particular document.
The challenge I’m running into is that the Semantic Classes are triggering my tmCommand for every open window, and I’d like to limit that to the frontmost active tab.
TM_SELECTED_FILE doesn’t cut it, and TM_FILENAME, when populated, returns a value for the active tab of every open window.
I’ve started exploring AppleScript to get the frontmost window’s name and comparing that … but that’s a road I really don’t want to go down.
Is there another approach that I am just not seeing? I have looked through the source for “callback.document” and have dug into OakTabBarView looking for environment variables that may be set to indicate which window & tab is frontmost, and have also looked at the output from $TM_QUERY … and am not finding it anywhere.
Perhaps that’s the plugin I need to write to enable the behavior I want? Objective-C is sort of the final frontier for me, so I can go down that road … but will have questions. :)
Thanks in advance!
Best regards,
Clay
[1]: https://wakatime.com/
[2]: https://github.com/wakatime/wakatime-cli
[3]: https://github.com/wakatime/textmate-wakatime
I'm developing a TextMate bundle for Elm and implemented "Reformat Document" today. Unfortunately, I noticed a rendering glitch that seems to happen sporadically. I managed to record a video showcasing the behaviour. See https://i.fluffy.cc/JhkwfX3wxXvRFR9WPVdPhsLz3FPsfGg7.mov.
In the video, I add a couple of newlines, and elm-format removes them as expected. However, TextMate does not seem to like this (as can be seen in the video). Reopening the files shows that everything is in order and that it in fact was a rendering glitch.
Any ideas to why this happen?
Thanks,
Kevin
I’m seeing the same thing. Just tried to compile TextMate under Xcode 13.1, on macOS 12.0.1, and got the exact same error.
Allan have you bumped into this yourself yet?
Thanks,
Kevin