There may be some uses for the Touch Bar in TextMate. (Rather than the dumb things some apps are doing, like adding a button for italic, when cmd-I is so near to hand).
1. Display the current inner-most scope on the touch bar.
2. Button for folding
3. Buttons for bookmark Set, Next, & Prev
3. Perhaps buttons for
1. ^⇧⌘-P (show scope (maybe touching the displayed scope does this)
2. ^⌘-T (select bundle item)
New feature: Add a field to bundle items to allow devs to mark them to show in the Touch Bar?
Best, tim
Hi:
Does anyone know how to input latex math equations in Markdown to be viewed in pdf? For example, I typed $$x_{t}^{h} = 2.3$$ in the Markdown file but the pdf preview does not show the typeset math equation.
Any help would be appreciated.
Tao
Hi,
I’m using TM 2.0-rc.10 on macOS 10.13.6
I bumped into a very rare case which is not handled correctly by TM.
TM can not handle cases when the very first character within a document is a lonely combining (diacritical) character as eg ́ U+0301. I know this should not happen but it can (while copying from other apps or using input methods which aren’t set up correctly, …)
To reproduce this issue you can do the following:
• open a new doc in TM
• open “Character Viewer”
• search for “combining”
• insert ́
Then type some characters and try to
• Select All
• navigate with arrow keys (eg ← many times)
• delete the this first character
• apply some basic text manipulation (from Bundles)
• etc.
Sometimes this character is responsible for crashing TM.
As I said, it’s a very rare case and it’s not urgent but it would be nice if TM can handle that case :)
Cheers, Hans
Hello !
Some time ago I posted a SO question about an [issue](https://stackoverflow.com/questions/50412613/scopeattributes-with-mu… <https://stackoverflow.com/questions/50412613/scopeattributes-with-multiple-…>) I encountered while running both the Strip-Whitespace-On-Save and Ensure-Newline-At-EOF bundles (the latter being the recently added one).
Since that question didn't gather any feedback, maybe I'll have more luck here, hence the "repost".
The gist of the issue is that either 1) couldn't read the manual hard enough to find the correct syntax to use, 2) scopeAttributes really are limited to 1 (which I didn't expect when I spec-ed the attribute thingy in the SWOS bundle).
Thanks for your time !
Regards,
Etienne Samson
--
samson.etienne(a)gmail.com
I use an XHTML template language for my web applications that allows me to
define my own tags such as <s:embed>...</s:embed>. I set the language for
these files to HTML so that embedded stylesheets, scripts, etc. are
formatted correctly.
With HTML bundle update yesterday, these custom tags are now highlighted as
errors with the scope invalid.illegal.unrecognized-tag.html
This has worked great for me for at least the last eight years at least.
This new behavior is rather annoying.
Is there a way that I can avoid the HTML bundle flagging these custom tags
as errors?
Hi y’all.
Are there any plans to bundle a more recent Ruby version in the app?
Ruby 2.5.1 is the latest.
Ruby 1.8.7 ships with the app.
The Ruby Core team has long ago stopped supporting 1.8.x.
They currently only support (security fixes, etc) Ruby 2.3 - 2.5 (and 2.6 preview).
Thanks
Shane
Hello there,
I've been using a tooltip based linter for a while, and recently
occationally the tooltips seem to be sticking around. Has anything changed
with that API, intentionally or otherwise?
Is there a way to clear these tips without relaunching the app?
The follow steps are what I feel might cause the issue, but does not
reproduce regularly. Not sure how to help debug except describe that I
think Save a "lintable" file, switch tabs via the keyboard, then switch
again (possibly switch back?).
I'm using callback.document.did-save, callback.document.did-open as a
trigger, maybe its an edge case of $DIALOG tooltip
and callback.document.did-save or callback.document.did-open?
Thanks for looking,
Graham
--
Thanks,
Graham P Heath
In Hyperlink helper command "Lookup Word / Selection on Wikipedia and link" is broken
Error is
/Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:174:in `open_loop': redirection forbidden: http://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=Mende… -> https://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=Mend… (RuntimeError)
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:518:in `open'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:30:in `open'
from Lookup Selection on Wikipedia and link:19:in `getWikiEntries'
from Lookup Selection on Wikipedia and link:31:in `getWikiDef'
from Lookup Selection on Wikipedia and link:37
Hi,
Under Mojave, applescripts from Textmate to R.app have broken.
I thought this would be fixed by adding TextMate and R.app to the apps allowed to control my computer
(prefs: security: privacy: accessibility)
But seems not. This repro script runs properly from terminal
osascript -e 'tell application "R" to cmd "2+2" '
But from textmate, the script below activates R.app, but doesn’t execute cmd in R…
Any thought?
This is the script of the TM command I use to send the selection to R.app
#!/usr/bin/env bash
# input is selection or document
rawText="`cat`"
curDir=''
if [[ ${#TM_DIRECTORY} -gt 0 ]]; then
curDir="$TM_DIRECTORY"
fi
osascript -e 'on run(theCode)' \
-e 'tell application "R" to activate' \
-e 'if (item 2 of theCode) is not "" then tell application "R" to cmd "setwd('\''" & (item 2 of theCode) & "'\'')"' \
-e 'tell application "R" to cmd (item 1 of theCode)' \
-e 'end run' -- "$rawText" "$curDir"
Hello again,
I've got indentedSoftWrap configured and enabled for json with the
following config:
indentedSoftWrap = {
match = '(\A[ \t]*)';
format = ' ⏎$1';
};
Which works, and I've been enjoying it, but I'm wondering if the special
character could go on the next line?
Right now I've got
{
"someLongKey": "with some really long value that just keeps ⏎
going and going",
}
but I'd like to see
{
"someLongKey": "with some really long value that just keeps
↘︎ going and going",
}
I tried altering the format, but was unsuccessful in getting anything to
appear on the next line.
Thanks,
Graham
--
Thanks,
Graham P Heath
I think I've mentioned this before, but I do wish it were fixed so I'm mentioning it again. Sometimes the global Find dialog shows (correctly) that my search text occurs on a certain line of a certain file but doesn't show the occurrence. In this screen shot, the first two occurrences are listed but the found text is at the end of the line whereas what we are being shown is the start of the line.
The occurrences listings are not horizontally scrollable so there seems no way to learn the context.
As the third line shows, this does work sometimes. It's a great feature and I've come to rely on it, so I do wish it worked all the time.
m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Hi all,
I've a strange encoding issue.
By default TM uses UTF-8 LF endoding.
When a file contaings spectial charaters, and one edit this file in an other
texteditor, TextEdit, save this file and open in TM again, the encoding
becomes Chinese GB18030.
How to reproduce:
Create in TM a new file with content:
"some text with some special characters: é ü à"
Save this file UTF-8 and LF encoding.
close file
open file in TextEdit and add a new line with some text, save
Reopen the file in TM => now encoding is Chinese GB18030
Does any body have a clue what is hapening? It is special character related!
macOS 10.13.4
TM 2.0 rc9
== feek
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
1. Open ⌘⇧-T window
2. Open a file that takes some time to syntax highlight
Expected: newly opened file highlights, and function window populates
Obtained: Spinning wheel of death
Alternative repro
1. Open a file that takes some time to syntax highlight
2. Open ⌘⇧-T window (you probably have a few seconds to do this)
Expected: Function window populates with function list
Obtained: Spinning wheel of death
Version: 2.0-rc.7.
Hello,
I am working on a publication with Language Science Press. and I have
problem compiling the template. I am running Textmate version 2.0-rc.4
on OSX 10.13.4. I have recently upgraded to MacTex 2018. The problem is
that no pdf is created from Textmate. It is a bit odd.
I would like to ask if someone here can try to compile
Language-Science-Press' monograph template which can be downloaded from
here <http://langsci-press.org/templatesAndTools>. (or the directlink
<https://github.com/langsci/latex-skeletons/raw/gh-pages/monographskeleton.z…>).
It works with other editors like Texshop as well as from the command
line. But not with Textmate. On the other hand, I can compile other .tex
files with Textmate. So I am a bit lost as to why this is happening.
Best
Christian
ps: I have tried some general things from a previous discussion in this
mailing list _and they worked fine__for me_:
After that I translated the following document:
\documentclass{article}
\begin{document}
Test
\end{document}
in TextMate without any problems. Could you please try the following:
1. Create a new file in TextMate
2. Paste the LaTeX code from above into the document
3. Save the file in the folder `Downloads` using the name `Test.tex`
4. Open Terminal
5. Enter the following commands:
cd ~/Downloads
latexmk -pdf Test.tex
6. Does the command `latexmk -pdf Test.tex` print any error messages?
7. Does the folder `Downloads` contain the PDF file `Test.pdf`?
I’ve recently moved to a new machine (an iMac Pro), and have successfully installed Texlive 2017 and TextMate. When I use other LaTeX editors, I can successfully typeset LaTeX files, but not when I use TextMate. I typeset in the old fashioned dvips->ps->pdf way, and the problem I seem to be having is with the ps2pdf utility, that finishes the conversion of the file from postscript to pdf. The error message says that this utility has run too many times. When I view the postscript file that is created during this process, it looks fine and I can get Preview (and Skim) to translate it into a pdf.
Because other editors can typeset fine, I’m thinking that there is something wrong with the way that TextMate calls the ps2pdf process on my machine. Has anyone experienced this problem?
Thanks in advance,
Kyle Johnson
Both are system, macOS, limitations for QuickLook.
For the second point, I believe, and I’m sure someone here will correct me, the images and videos that are supported formats (that is handled natively by macOS, don’t seems to have this issue. If the image or video format requires/relies on external app’s quicklook abilities then those will exhibit the same behavior.
Best,
Farhan
> On Mar 25, 2018, at 4:08 PM, Christian Rosentreter <karibu(a)gmx.net> wrote:
>
> * It cuts off files at a certain amount of lines. This wouldn't be so bad by itself, but there
> is zero visual indication that the displayed text is cut off (something like a special coloured
> ellipsis symbol at the end, or something)
>
> * if the system is under load (say something else, e.g. a raytracing application, is using 100%
> CPU) I only get the spinning indicator in the QL window and it never manages to actual display
> the text. It is as the TextMate QL generator runs with such low priority it doesn't get a share
> of CPU by the OS. Other file types (images, even videos) don't seem to share the same problem.
Hi,
I have a command (copied below) which grabs the paths of the selected items in the Finder, and inserts them into a textmate doc.
I'd like to do some post-processing of the result (replace e.g. replace "/Users/.*/" with "~", and strip trailing return character.
How does one take the resulting string from a script, and process it, say, in php or bash. or should I just work on post-processing theList in applescript?
Thanks!
#!/usr/bin/env bash
osascript -e 'tell application "Finder"
set theFiles to selection
set theList to ""
repeat with f in theFiles
set theList to theList & "\"" & POSIX path of (f as alias) & "\","
end repeat
return theList
end tell'
Revert to RC7. RC8 has this breakage trying to deal with files that
have no extensions.
--
Marc Wilson
msw(a)cox.net
On Thu, Mar 22, 2018, at 6:13 AM, Rob McBroom wrote:
> After the last update, I noticed some garbled Quick Look previews in
> my Downloads folder.>
> I’m pretty sure it results from this commit:
> https://github.com/textmate/textmate/commit/fd827fb8179cd74e553680d605d2172…> As you can see form the image, it doesn’t seem to affect all files,
> but I would argue that no application should claim Quick Look support
> for every file in existence.>
> --
> Rob McBroom
> http://www.skurfer.com/
>
>
> _________________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
Yes. I’ll second this. Having the same issue. Is there a better way to resolve the issue, as it is stated in the commit message?
Best,
Farhan
> On Mar 22, 2018, at 9:13 AM, Rob McBroom <mailinglist0(a)skurfer.com> wrote:
>
> After the last update, I noticed some garbled Quick Look previews in my Downloads folder.
>
> <Screen Shot 2018-03-22 at 9.06.59 AM.png>
>
> I’m pretty sure it results from this commit:
>
> https://github.com/textmate/textmate/commit/fd827fb8179cd74e553680d605d2172…
>
> As you can see form the image, it doesn’t seem to affect all files, but I would argue that no application should claim Quick Look support for every file in existence.
>
> --
> Rob McBroom
> http://www.skurfer.com/
After the last update, I noticed some garbled Quick Look previews in my
Downloads folder.

I’m pretty sure it results from this commit:
https://github.com/textmate/textmate/commit/fd827fb8179cd74e553680d605d2172…
As you can see form the image, it doesn’t seem to affect all files,
but I would argue that no application should claim Quick Look support
for every file in existence.
--
Rob McBroom
http://www.skurfer.com/
Hi all -
Something's gone wonky with my Javascript bundle (and only that one, as far as I can tel)l. Every time I hit cmd-/ to comment/uncomment some text, it uses an unindented block comment instead of the double-slash single line comment I expect. ("/* */", rather than "// ")
So:
" this line"
becomes
"/* this line*/"
when what I want and expect is
" // this line"
I suspect this has to do with some way I've edited the language bundle incorrectly. Does anyone know
A) how I could fix this particular issue, or
B) how I could remove all my changes to the Javascript bundle and revert simply to the repo version?
Cheers,
Evan