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"