Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
0
votes
0
answers
48
views
Sequoia always opens the TextMate app on the left side of the screen
Before I installed Sequoia, macOS would open the TextMate app in various places on the screen, likely depending on where I last closed it. Now, macOS always opens TextMate on the left side of the screen. I know this has been the case for the Preview app for years, but I'm surprised that I'm now expe...
Before I installed Sequoia, macOS would open the TextMate app in various places on the screen, likely depending on where I last closed it. Now, macOS always opens TextMate on the left side of the screen.
I know this has been the case for the Preview app for years, but I'm surprised that I'm now experiencing this with TextMate.
Has something changed from Sonoma to Sequoia to cause this?
bb8000
(1 rep)
Oct 16, 2024, 04:55 PM
10
votes
2
answers
1420
views
QuickLook for LaTeX (and other?) text files stopped working (macOS 13?)
Some time recently (possibly with the Ventura upgrade; I'm not sure) quicklook behaviour got worse. In particular, *.tex (TeX/LaTeX) files stopped previewing entirely; instead they show a message > The extension com.apple.tips.TipsAppQuicklook-macOS does not implement file previews which seems to be...
Some time recently (possibly with the Ventura upgrade; I'm not sure) quicklook behaviour got worse.
In particular, *.tex (TeX/LaTeX) files stopped previewing entirely; instead they show a message
> The extension com.apple.tips.TipsAppQuicklook-macOS does not implement file previews
which seems to be weirdly trying to assign the quicklook to something related to "Tips".
I note
*
~/Library/Application\ Scripts/com.apple.tips.TipsAppQuicklook-macOS
exists, but it is an empty folder.
* mdls -name kMDItemContentType
gives kMDItemContentType = "org.tug.tex"
* I *think* the previews used to be handled by TextMate which also showed full syntax-highlighted previews. TextMate still has an org.tex.tug
entry in its Info.plist.
* Preview icons are still shown correctly.
* Most other text file types seem to work, albeit without syntax highlighting, with an "Open with _some app_" button on the top of the preview window, pointing to TextEdit, Xcode, Textmate, or even Emacs depending on the file type. (Emacs files seem to get syntax highlighting?!)
* org.tug.tex
does not appear in qlmanage -m plugins
, although org.tug.tex.bibtex
and org.tug.tex.dvi
do.
* There is no ~/Library/QuickLook
directory.
* I have tried qlmanage -r
, qlmanage -r cache
and a restart, to no avail.
Other people have similar problems, as seen on [tex.SE](https://tex.stackexchange.com/questions/663924/quicklook-on-macos-ventura-not-working-anymore-for-tex-files)
**Update**: This [Apple support forum thread](https://discussions.apple.com/thread/254334388) seems to have some more information. It implies that Apple has deprecated old quick look generators, but I don't think that this can be the whole problem, since it seems to work -- including via TextMate -- for some types.
**Update 2**: not fixed in 13.1, alas.
**Update 3**: [This app](https://github.com/sbarex/SourceCodeSyntaxHighlight#install-with-homebrew-cask) seems to work as a quicklook previewer for a wide variety of file types, including TeX and CSS. (Thanks to [this answer on the related thread](https://tex.stackexchange.com/a/667435/72039).)
Any ideas?
Andrew Jaffe
(478 rep)
Nov 10, 2022, 01:47 PM
• Last activity: Feb 20, 2024, 02:14 PM
10
votes
4
answers
6207
views
How to launch TextMate (and probably other software) from the command line?
I am very new to Mac, coming from Linux. I am using TextMate, and I suddenly discovered I do not know how to launch TextMate from command line. Using completion, nothing looks like TextMate. Where is it located from a command line perspective? Sorry for this odd question that also applies to other s...
I am very new to Mac, coming from Linux.
I am using TextMate, and I suddenly discovered I do not know how to launch TextMate from command line. Using completion, nothing looks like TextMate. Where is it located from a command line perspective?
Sorry for this odd question that also applies to other software, I guess.
JCLL
(203 rep)
Jan 7, 2014, 09:22 PM
• Last activity: Dec 11, 2023, 10:05 AM
8
votes
7
answers
2936
views
What are some Textmate alternatives that have the completion key feature?
I am slowly beginning to fear the worst with Textmate and the impending release of Lion and how stable Textmate might be on it. So my question is, are there any Textmate alternatives out there that supports the completion feature (Esc key autocompleting) in the same way that Textmate does? It must b...
I am slowly beginning to fear the worst with Textmate and the impending release of Lion and how stable Textmate might be on it.
So my question is, are there any Textmate alternatives out there that supports the completion feature (Esc key autocompleting) in the same way that Textmate does?
It must be as similar as possible to textmate implementation ideally.
Meaning:
1. It can autocomplete various language keywords, based on existing language
2. It can autocomplete nearby words.
3. It doesn't generate a dropdown showing options, you should just keep pressing the key to cycle through the options.
navitronic
(103 rep)
Mar 11, 2011, 02:57 AM
• Last activity: Dec 8, 2022, 05:07 PM
0
votes
0
answers
180
views
How to solve "TextMate is running on a read-only file system and can therefore not be updated."
When using Textmate, I'm regularly prompted to upgrade: > TextMate 2.0.23 is now available. You have version 2.0.19. Would you like to download it now? However, if I choose the upgrade option, I immediately see a dialog with this error: > TextMate is running on a read-only file system and can theref...
When using Textmate, I'm regularly prompted to upgrade:
> TextMate 2.0.23 is now available. You have version 2.0.19. Would you like to download it now?
However, if I choose the upgrade option, I immediately see a dialog with this error:
> TextMate is running on a read-only file system and can therefore not be updated.
>
> If you downloaded TextMate from the internet then moving it out of the Downloads folder should solve the problem.
Textmate isn't in my Downloads folder; it's in
/Applications
. Its permissions look like this:
drwxr-xr-x@ 3 sam staff 96 15 Feb 2021 TextMate.app
It wasn't installed via brew, so upgrading it that way isn't an option. How could I do an upgrade? Is removing the app and reinstalling it the only way?
I'm on MacOS Catalina 10.15.7 (19H1519).
Sam
(101 rep)
Nov 9, 2021, 02:15 PM
• Last activity: Nov 10, 2021, 04:19 PM
1
votes
0
answers
382
views
How can I edit and run Apple Script with an editor other than Script Editor?
I've recently been writing more AppleScript, now that Apple has added Javascript support. But how can I edit and run Javascript Automation code in an editor other than the built-in Script Editor? My ideal editor would be TextMate, but anything that has good syntax highlighting and automatic indentin...
I've recently been writing more AppleScript, now that Apple has added Javascript support.
But how can I edit and run Javascript Automation code in an editor other than the built-in Script Editor? My ideal editor would be TextMate, but anything that has good syntax highlighting and automatic indenting would be good enough for me.
Bill
(442 rep)
Mar 13, 2021, 01:58 PM
5
votes
2
answers
937
views
Expand symlinked directory in finder
Is there a way to make it so that in list view in Finder a symbolically linked directory can be expanded like a regular directory? I would just switch to column view, but I'm using TextMate 2's file browser, which appears to use Finder's list view. I have no issue with getting my hands dirty with th...
Is there a way to make it so that in list view in Finder a symbolically linked directory can be expanded like a regular directory? I would just switch to column view, but I'm using TextMate 2's file browser, which appears to use Finder's list view.
I have no issue with getting my hands dirty with the console or editing plists if need be - I used Linux for years and fiddled with a Hackintosh for a while before switching to Mac. I'll also understand if The Mighty Apple Hath Spoken. I've just found very little on the topic. (And in my case it's on Macintosh HD so unmounting and remounting is not an option.)
Alexander Clark
(151 rep)
Oct 25, 2013, 03:22 PM
• Last activity: Feb 7, 2020, 06:17 AM
7
votes
3
answers
904
views
Textmate alt-f to move forward by one word
I've recently switched from Linux to Mac. One thing that is really killing my emacs memory muscles right now is the lack of alt + f and alt + b to jump forward and backward by word. I've gotten the meta/option flag flipped in Terminal.app preferences (so alt + . now works as expected), but I haven't...
I've recently switched from Linux to Mac. One thing that is really killing my emacs memory muscles right now is the lack of alt+f and alt+b to jump forward and backward by word.
I've gotten the meta/option flag flipped in Terminal.app preferences (so alt+. now works as expected), but I haven't found a similar option for Textmate. Even better if I could enable it as a MacOS global setting for the U.S. keyboard (so it would work in all input boxes). At the moment I get the following useless (for me) encodings:
alt+f: ƒ
alt+b: ∫
How do I remap alt+f and alt+b to jump forward and backward by word?
pithyless
(578 rep)
Dec 9, 2010, 03:09 PM
• Last activity: Sep 30, 2019, 12:00 AM
2
votes
1
answers
1301
views
Remove Quicklook Syntax Highlighting with TextMate2?
TextMate2 Alpha comes with a Syntax Highlighting plugin for macOS QuickLook. How can it be disabled without removing TextMate?
TextMate2 Alpha comes with a Syntax Highlighting plugin for macOS QuickLook.
How can it be disabled without removing TextMate?
janniks
(231 rep)
Apr 23, 2014, 09:18 PM
• Last activity: May 20, 2019, 08:05 AM
2
votes
1
answers
1248
views
BBEdit Code Completion and other features found in Textmate
Sometime back in the early 2000s I switched from BBEdit to TextMate, but now it seems TextMate gets to be long in the tooth while the good folks at BareBones are still at it. The most convenient feature I am missing is the code completion by pressing the esc-key, which will cycle through suggestions...
Sometime back in the early 2000s I switched from BBEdit to TextMate, but now it seems TextMate gets to be long in the tooth while the good folks at BareBones are still at it.
The most convenient feature I am missing is the code completion by pressing the esc-key, which will cycle through suggestions based on the current document as well as a code language library.
example:
with the following code:
private var _hello:String = "Hello";
in Textmate when entering the character
_
followed by a keyboard shortcut ( e.g. esc ) I would get the suggestion
_hello
as _hello is in the current document.
if I would type
Nu
followed by a esc I would get
Number
since it is defined for the source language.
The other feature would be the code snippets.
For example:
typing
fn
followed by the tab-key would give me
function ():void{
};
with the cursor conveniently placed in front of the parentheses.
The basic BBEdit code completion does not seem to achieve the same results.
Does anyone here know how to achieve these features?
Somehow BBEdit announced Kite support but judging by the absence of any documentation either with BareBones or Kite, I guess they had a fallout of sorts.
Any tips greatly appreciated, thanks.
zantafio
(257 rep)
Feb 26, 2019, 06:23 PM
• Last activity: Apr 2, 2019, 07:10 AM
2
votes
1
answers
545
views
How to create a new Snippet in TextMate 2's Bundle Editor?
I'm looking at an existing Bundle in TextMate 2's Bundle Editor. **How do I create a new (editable) Snippet in the currently selected Bundle?** Seems like this should be obvious, but I am stumped. Searching the Main Menu contents doesn't reveal any menu commands which would obviously allow Snippet c...
I'm looking at an existing Bundle in TextMate 2's Bundle Editor. **How do I create a new (editable) Snippet in the currently selected Bundle?**
Seems like this should be obvious, but I am stumped. Searching the Main Menu contents doesn't reveal any menu commands which would obviously allow Snippet creation. Right-clicking in various related areas of the UI (in hopes of opening a context menu) has proven fruitless.
Isn't there a way to create a new Snippet inside the TextMate 2 app itself (presumably in the Bundle Editor)? Or do I have to edit plist .tmbundles to create Snippets? I could have sworn you could easily do this in TextMate 1.
The official TextMate docs seem to be version 1.x-specific.
Todd Ditchendorf
(2169 rep)
Apr 8, 2014, 08:10 PM
• Last activity: Dec 25, 2018, 12:40 PM
7
votes
2
answers
13035
views
copy/paste of large amount of text to terminal leads to scrambled/missing characters
I work with TextMate and R over the terminal. When pasting a lot of code (CMD+C/CMD+V, e.g. 60 lines) it sometimes happens that few characters in the code are scrambled, which then leads to error messages and wrong code execution. For example: > col col onlyDF is turning into > oalyDF These characte...
I work with TextMate and R over the terminal.
When pasting a lot of code (CMD+C/CMD+V, e.g. 60 lines) it sometimes happens that few characters in the code are scrambled, which then leads to error messages and wrong code execution.
For example:
> col col onlyDF
is turning into
> oalyDF
These character-replacements seem very random and it is difficult to predict when it happens.
The problem is also described here for iterm2:
https://gitlab.com/gnachman/iterm2/issues/3160
The explanation provided there is that it is a bug in bash that can lead to buffered input to get lost due to paste speed.
Has anyone experienced these problems and found a work-around for the native terminal app in Mac OS? (e.g. by modifying the paste speed, if that is possible in terminal)
grueb
(71 rep)
Feb 3, 2018, 04:58 PM
• Last activity: Oct 27, 2018, 08:54 PM
9
votes
3
answers
9126
views
Split Windows on Textmate
Textmate has been around for a while, I bought it in 2006. Is it possible to split windows horizontally and or vertically on Textmate nowadays? Probably someone out there made a kind of Plugin for this :-/ Like `C-x 2` when I'm on GNU Emacs to split horizontally or `C-x 3` to split vertically and ha...
Textmate has been around for a while, I bought it in 2006. Is it possible to split windows horizontally and or vertically on Textmate nowadays? Probably someone out there made a kind of Plugin for this :-/ Like
C-x 2
when I'm on GNU Emacs to split horizontally or C-x 3
to split vertically and have flexible control on each windows' width or :split
on ViM.
Arie
(251 rep)
Jul 10, 2011, 11:23 AM
• Last activity: Aug 2, 2018, 03:56 PM
1
votes
2
answers
1505
views
How to copy and paste Javascript code from a PDF file to a texteditor (Textmate or Sublime Text)
Everytime, I want to copy and paste one Javascript code example from a book (in a pdf version) to Sublime Text or Textmate, any " " become “ ” >> the code doesn't work. Is there any way to fix this ? Thanks in advance. Config: OSX Lion, PDF reader : Skim **Update**: For Textmate. the solution is [he...
Everytime, I want to copy and paste one Javascript code example from a book (in a pdf version) to Sublime Text or Textmate, any " " become “ ” >> the code doesn't work.
Is there any way to fix this ?
Thanks in advance.
Config: OSX Lion,
PDF reader : Skim
**Update**: For Textmate. the solution is here .
politicus
(1233 rep)
Jan 26, 2012, 11:28 AM
• Last activity: Jul 15, 2018, 09:21 PM
3
votes
2
answers
154
views
Creating a new file blocks Textmate
When I want to create a new file through the button (left-bottom one) in the project drawer or in the file menu it takes a long time and blocks TextMate and even blocks TextMate totally in some cases. I've installed the latest version of TextMate and installed all updates available for Mac OS X. Any...
When I want to create a new file through the button (left-bottom one) in the project drawer or in the file menu it takes a long time and blocks TextMate and even blocks TextMate totally in some cases.
I've installed the latest version of TextMate and installed all updates available for Mac OS X.
Anyone any idea what the problem is?
Geert Van Laethem
(195 rep)
Aug 17, 2010, 08:26 PM
• Last activity: Sep 21, 2017, 12:19 PM
6
votes
2
answers
3963
views
AppleScript app started prompting to run or quit. How can I disable this?
I'm not entirely sure why this has started happening since this is completely new behaviour and I haven't done any system updates but I have a nice little toolbar app for my Snow Leopard Finder.app that opens the existing folder/or files in TextMate. It used to simply bring up TextMate with the chos...
I'm not entirely sure why this has started happening since this is completely new behaviour and I haven't done any system updates but I have a nice little toolbar app for my Snow Leopard Finder.app that opens the existing folder/or files in TextMate.
It used to simply bring up TextMate with the chosen content but since today it instead gives me a prompt asking me to run or quit the script.
Here is what the popup looks like:
Now… this app/script isn't new, I trust the script and I don't want this popup everytime I use it.
So 2 questions:
1. How do I disable this annoying prompt?
2. Why am I all of a sudden getting it when yesterday everything was working fine?
Any insight would be much appreciated.
For reference the script in question is this one: OpenInTextMate
However the MateDot.app script I was using also is doing the same thing.
Thanks for reading.
Jannis

Jannis
(163 rep)
Apr 23, 2011, 12:00 AM
• Last activity: May 25, 2017, 09:45 AM
2
votes
5
answers
1537
views
How to create TextMate project that contains all files in a folder (and updates dynamically)?
I'd like to create a TextMate project that consists of all files in a particular folder, with the added stipulation that as files are added to (or removed from) that folder that they be added/removed from the TextMate project. Is this possible? I'd love to have a TextMate project that can mirror the...
I'd like to create a TextMate project that consists of all files in a particular folder, with the added stipulation that as files are added to (or removed from) that folder that they be added/removed from the TextMate project.
Is this possible?
I'd love to have a TextMate project that can mirror the list of files being worked with by the folder storing Elements files...
ahockley
(183 rep)
Mar 29, 2011, 05:00 AM
• Last activity: Jan 29, 2017, 10:43 AM
1
votes
1
answers
1132
views
Why css files are opening in safari by default in MacBook?
I do not know what happened to my MacBook, but all the css files are appearing with the web browser icon as you can see in the following image. When I open it it is opening in safari instead of TextEdit/other any editor. This is not happening with other file like .php, .twig, .yml, those all are ope...
I do not know what happened to my MacBook, but all the css files are appearing with the web browser icon as you can see in the following image. When I open it it is opening in safari instead of TextEdit/other any editor. This is not happening with other file like .php, .twig, .yml, those all are opening in Text file?
Any idea why this is happening and how to correct that? Besides, in-built TextEdit of Mac, I am also using TextMate Editor(latest version 2.0).

codenext
(133 rep)
Nov 29, 2016, 04:50 PM
• Last activity: Nov 29, 2016, 05:17 PM
2
votes
2
answers
457
views
Make TextMate run php from a different binary, not the original php
I work with php and postgre, and since the stock php doesn't come with postgre I had to install a different php version. So I installed php5 from this website: http://php-osx.liip.ch It's a quick install, just downloaded php5 and its modules and put them in a different directory, now everything work...
I work with php and postgre, and since the stock php doesn't come with postgre I had to install a different php version.
So I installed php5 from this website: http://php-osx.liip.ch
It's a quick install, just downloaded php5 and its modules and put them in a different directory, now everything works, except the TextMate's "php run".
I couldn't find where TextMate makes the call to the php and I wanna change it, any ideas?
Thanks.
hfingler
(143 rep)
Feb 12, 2014, 05:00 PM
• Last activity: Nov 27, 2016, 12:31 PM
0
votes
2
answers
688
views
Recover application after it becomes unresponsive
Is there any way to recover an application once it freezes aside from killing it? --- Context being, I have been working on a couple of files in TextMate 1.5 and TextMate has stopped responding, I have not saved these files, and I really do not want to loose the work. I've killed all other running a...
Is there any way to recover an application once it freezes aside from killing it?
---
Context being, I have been working on a couple of files in TextMate 1.5 and TextMate has stopped responding, I have not saved these files, and I really do not want to loose the work. I've killed all other running applications and have let the computer idle for quite some time but TextMate still remains unresponsive.
Before it froze I was conducting a simple regex search query within TextMate. The files were only about 2kb in size.

davidcondrey
(1814 rep)
Nov 1, 2014, 03:24 AM
• Last activity: Nov 17, 2016, 10:52 PM
Showing page 1 of 20 total questions