More weirdness (in addition to page blanking multiple time s day)... files appear empty (empty window, line 1 only, no characters...).
Quick look at file on disk: yep, all there.
I do a lot of find using the "In Folder" setting.
A hassle is that actions often move the Find window to be not frontmost.
The only easy way to bring it to the from is cmd-F, but this re-sets the "In: <where>" dropping down to the default, which is document.
If possible, I'd love this behavior to change to leave things as they were. Preferably even between open/close of the Find window, but certainly when the only actin of cmd-F is to bring the window frontmost, not toggling to a default state would be GREAT.
thoughts?
When I say (in ruby)
`"#{ENV['TM_SUPPORT_PATH']}/bin/mate" '#{p}'`
where p is the pathname of a folder, what appears in the project browser is that folder plus (hierarchically down from it) all its contents.
But when I open a folder using TextMate, directly, what appears in the project browser is just the contents of the folder; the folder itself is not in the project browser.
How can I make the former (`mate`) behave like the latter (TextMate itself)?
Thx - m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 13! http://shop.oreilly.com/product/0636920310075.do
iOS 13 Fundamentals! http://shop.oreilly.com/product/0636920310068.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Hi all,
I'm a die-hard TextMate 1 user who upgraded to Catalina and am finally migrating to TextMate 2. That being said, I spent a lot of time in TextMate 1 on custom bundle snippets, themes, languages, macros, etc., so I'm hoping not to lose them.
Clicking on my original bundle brings up a TextMate 2 dialog box that asks if I want to install, but if I click "OK" it doesn't appear in the File menu, Bundle editor, or Preferences.
The TextMate wiki (https://github.com/textmate/textmate/wiki/FAQ), and past correspondence on this list, says this could be a problem with fs-events support, and suggests this fix:
rm ~/Library/Caches/com.macromates.TextMate/BundlesIndex.plist
Unfortunately there doesn't appear to be a plist in this directory--just BundlesIndex.binary. I tried deleting that to no effect.
After double clicking on my old personal bundle, a copy appears in ~/Library/Application Support/TextMate/Pristine Copy/Bundles. There is no error dialog box, and I see no errors or faults when I search for "textmate" in the Console after attempting the install.
Any help greatly appreciated!
jon
______________________________
Jon Ippolito
Professor of New Media
Co-director, Still Water
Director, Digital Curation graduate program
Does Anyone Actually Read These Titles
The University of Maine
1. open markdown document
2. select a word, say “multivariate”
2. Select Lookup Word / Selection on Wikipedia and link
EXPECTED: link to wikipedia wrapped about the selection
OBTAINED: Command error
/Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (OpenSSL::SSL::SSLError)
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/net/http.rb:586:in `connect'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/net/http.rb:542:in `start'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:242:in `open_http'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
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
The command is:
#!/usr/bin/env ruby18
require "#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui.rb"
require 'cgi'
require 'open-uri'
require 'erb'
require 'rexml/document'
def select_link(links)
linklist = links.map { |p| p['Text'] }
item = TextMate::UI.request_item :title => "Multiple Definitions", :prompt => "Please select a definition", :items => linklist
TextMate.exit_discard if item.nil?
return links[linklist.index(item)]
end # select_link
def getWikiEntries(phrase)
res = []
response = open("https://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=#{CG… <https://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=#{CG…>", "User-Agent" => "TextMate 2.0")
doc = REXML::Document.new(response.read)
doc.elements.each('SearchSuggestion/Section/Item') do |item|
hash = { }
%w[ Text Url Description ].each { |tag| item.elements.each(tag) { |inner| hash[tag] = inner.text } }
res << hash
end
res.sort { |a, b| a['Text'].downcase <=> b['Text'].downcase }
end
def getWikiDef(phrase)
entries = getWikiEntries(phrase)
TextMate.exit_show_tool_tip "No definition found" if entries.empty?
entry = entries.size > 1 ? select_link(entries) : entries.first
return entry['Url'], "Wikipedia Entry: #{entry['Text']}", phrase
end
url, title, input = getWikiDef(STDIN.read)
print ERB.new(ENV['TM_LINK_FORMAT']).result
The column interface that you use to select a bundle item is very short
and can’t be resized.

The cursor changes when you hover over the resize handle, but I can’t
move it. Resizing the window makes no difference, no matter which side I
resize from.
I don’t use the Bundle Editor very often, so I’m afraid I can’t
say when this started. I’m currently on 2.0.8, macOS 10.14.6.
Thanks.
--
Rob McBroom
Hi, I just updated to 2.0.8, and there are a few bugs:
• Running a Python script with ⌘R hangs, producing no output in the HTML
output window – the spinny thing continues to spin throughout
– the Ruby stacktrace you get when closing the window with ⌘W – which
comes up in a modal window alert – specifies an exception in a “kill”
method, which is not an evidently obvious visible part of the bundle
command text to which the window alert offers to take you
• Starting up immediately after updating from TextMate 2.0.6 reset the
theme of every open code window to plain black-and-white (this was easily
remedied and wasn’t a showstopper in any way, though)
• There have been a number of odd hard-crashes – the “Submit Crash Log”
dialog would come up, saying that TextMate crashed, but the TextMate UI
would still appear to be up and running; in some cases a part of the UI
would prove to have been rendered unresponsive; in any case a force-quit
was always necessary.
Here are logs from two of these hard-crash events:
• https://gist.github.com/fish2000/2b6957a0f722d006b5673b7440767a9a
Let me know if I can be of further assistance w/r/t this. 2.0.8 looks like
it’ll be awesome, once some of these kinks are ironed out. Yes!
-fish (née Alexander Böhn)
Opened a file from an email attachment
On save from textmate, I get this error:
The document “BadFactorScoresExample.R” could not be saved.
Failed replacing BadFactorScoresExample.R with /var/folders/66/wrbbw2d11gzds_76wqw367f00000gn/T/TemporaryItems/(A Document Being Saved By TextMate)/BadFactorScoresExample.R: You don’t have permission to save the file “BadFactorScoresExample.R” in the folder “7DBA5AD0-07BF-4399-B649-CDE020317A4B”.
FYI, it also generates errors from commands that need to read/write
Hi,
just installed TM Test Build 2.0.7.
It seems like that the file browser behaves a bit strange. Namely the
"toplevel" is not any more the Project root, but the folder current file is
locates
> ProjectFolder
> ProjectFolder > Include
> ProjectFolder > Include > FileName.php
When having FileName.php open, the file browser select Include als "top"
folder and not the ProjectFolder. It seems related to "Keep Current Document
Selected".
When returning to 2.0.6 the file browser behaves as expected again (top
level is Project Folder).
== feek
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
BBEdit has a feature to auto-create backup files. I just tripped over this, it seems like a great thing that I'd like to figure out how to do with Textmate.
This is from BBedit 9's release notes:
The options and behavior for backing up files at save have changed, as follows:
* "Make backup before saving" is now a global preference only, and is no longer controlled per file. The "Make Backup when Saving" and "Make Backup Now" options have been removed from the File menu.
* The settings controlling backup location (in the Text Files prefs) have been removed. Backups are always made to a specific location, as follows:
* If "Keep historical backups" is turned on, backups are kept in `~/Documents/BBEdit Backups/`. Within that folder is one folder for each day's backups. The format of the dated folder name is static and non-localized: `YYYY-MM-DD`. Inside of each day's backup folder will be all of the backups made on that day, each named using the 8.7.x timestamp format.
If you want the backups to live somewhere else, lay down a folder alias named "BBEdit Backups" in `~/Documents/` and BBEdit will follow the alias.
* If "Keep historical backups" is turned *off*, BBEdit makes only a single backup, located in the same directory as the original, so "backup creep" is a thing of the past. The backup is named according to current OS conventions (which themselves follow the old Emacs convention): the backup file is named as the original file, with a tilde appended: "`foo.html~`" is the backup of "`foo.html`".
If you want the backup to have the same file name extension as the original, turn on the "Preserve file name extension" in the Text Files prefs. This will cause BBEdit to place the tilde after the "base" name of the file: "`foo~.html`".
Is there already support for anything similar to this somewhere? A bundle maybe? It'd be a save-hook, obviously.
Thanks!
--
Marc Wilson
posguy99(a)gmail.com
Hello,
Every time i start up TextMate (2.0.6.) a message box appears with the
following error:
Could not bind to socket: /tmp/textmate-501.sock
Error: Undefined error: 0
After closing the message box, the application works just fine.
I use macOS Mojave 10.14.6
Thanks in advance!
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
FYI: When I run selected lines of R code in textmate, I now get this pane of errors: (code runs fine)
PS: The blank-regions bug is way worse with current catalina (10.15.4 (19E264b))
Hi,
Textmate (version: 2.0.6 ) on macOS Hign Sierra (10.13.6)
I use electron-vue to automatically reload the page if file modified, and every time I close the tab, textmate automatically update mtime of the file. Are there any configuration option that do not modify the mtime of the file when the tab is closed?
The Post HO CHI MINH city , ditrric 2
DC : 223 Nguyen Duy Trinh , phuong binh trung tay, quan 2 .
Telephone : 0583802935
Full name : luc Tai Nguyen
Company : anh van hoi viet my
I have put off upgrading to Catalina because of people here reporting
TextMate issues after upgrading. Problems with menus, etc.
Could anyone who is using Catalina offer any advice on whether it would be
best to stay with Mojave or if the problems with Catalina are minor and no
big deal. I use TextMate daily for work and don't want to upgrade if it is
going to cause prblems with my productivity.
Thanks.
When I have multiple tabs opened with soft wrap enabled Textmate loses the
focus on cursor after switching tabs.
The same does not happen when soft wrap is disabled.
How to fix that?
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
Hi
My question is perhaps stupid … When I edit my source section with the latex bundle, section, subsection, etc.…use a different style.
How to use the same style for all the text ?
Thanks,
Alain
Hello,
I have a project and inside I have a folder with several files .tex.
I would like to compile all the files at the same time how I can proceed ?
I think with a ruby script but I’m not an expert.
Regards,
Alain
If I open a Plain Text window and paste in the following line of text, TextMate 2.0.3 CPU usage goes to 100% and never stops. Syntax highlighting ends at the line containing the text. Here's the string:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=
Since updating to Catalina, I notice that some of the bundle menus are double-spaced. Not all of them, but some. It also seems like any option that has sub-options does not behave this way.
Walter
I have encountered a problem running bundle commands that are implemented as ruby scripts with a shebang line
#!/usr/bin/env ruby18
I get an alert like this:
Here I was trying to use Insert Color… from the CSS bundle, but the same thing happens with other commands, including from bundles I made myself.
I am pretty sure that this only started when I upgraded to Catalina. (Presently on 10.15.1, TM 2.0.3. It doesn’t happen with 2.0.3 running on another machine with High Sierra.) Possibly this is related to the problem of loading plug-ins that was fixed in 2.0.1.
If I change the shebang to point to the version of ruby I installed with Homebrew commands work fine, but I don’t much want to edit every command in every bundle.
Has anybody else seen this? Do you know of any workrounds?
Hi all,
after a few months not using TextMate, I have returned to it, updated the version, and upon running LaTex cmd-R, consistently get the error message
/bin/sh: /Users/robertmilton/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin/find_app: Bad CPU type in executable Preview does not appear to be installed on your system.
This is indepependent of the pdf viewer (I prefer to use skim, but get the same error). Any idea what is wrong, and how I can fix it?
Thanks
Robert
I’ve had this issue pop up often, but not currently. I am never quite sure what I do to fix it. PATH issues or gem issues?
> On Dec 2, 2019, at 4:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Date: Sun, 1 Dec 2019 13:10:19 -0700 (MST)
> From: feek <feekdiv(a)gmail.com <mailto:feekdiv@gmail.com>>
> To: textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>
> Subject: [TxMt] Re: Problem running ruby commands
> Message-ID: <1575231019120-0.post(a)n5.nabble.com <mailto:1575231019120-0.post@n5.nabble.com>>
> Content-Type: text/plain; charset=us-ascii
>
> I just updated to Catalina today...
>
> is this message also related to not bundled Ruby in Catalina :( ?
>
> https://feek.d.pr/Y1mSwd/3q2OYQOmNo <https://feek.d.pr/Y1mSwd/3q2OYQOmNo>
>
> == Feek
Same here with current Catalina and TM 2.0. I had noticed it, but was focusing on whatever needed doing and forgot about it.
> On Dec 2, 2019, at 4:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Subject: [TxMt] Re: Double-spaced menus in Catalina
Hello
The command « set master file » does not seem to work anymore.
I may have forgotten something.
How should I use this command?
Best regards,
Alain Matthes
This won’t be very helpful.
But Markdown preview works on my MBP with Catalina and I installed Python for QGIS. HomeBrew install didn’t work with QGIS, so ended up using the installer at https://www.python.org/downloads/ <https://www.python.org/downloads/>
> On Nov 11, 2019, at 10:19 AM, textmate-request(a)lists.macromates.com wrote:
>
> Send TextMate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of TextMate digest..."
>
>
> Today's Topics:
>
> 1. Problem with Markdown Preview (Tao Zha)
> 2. Re: Problem with Markdown Preview (Graham Heath)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 11 Nov 2019 11:39:53 -0500
> From: Tao Zha <zmail(a)tzha.net>
> To: tm-support(a)macromates.com, textmate(a)lists.macromates.com
> Subject: [TxMt] Problem with Markdown Preview
> Message-ID: <A7A0E9C7-ACE3-4176-8210-2225D3B72375(a)tzha.net>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi:
>
> After I updated macOS Catalina, Markdown Preview no longer works. I got the following error message:
>
> Please install the Redcarpet and Pygments.rb RubyGems by running the following:
> /usr/bin/gem install --user redcarpet pygments.rb
>
> After I ran the above command, I received the following error message from the Terminal:
>
> $ /usr/bin/gem install --user redcarpet pygments.rb
> Building native extensions. This could take a while...
> ERROR: Error installing redcarpet:
> ERROR: Failed to build gem native extension.
>
> current directory: /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0/ext/redcarpet
> /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20191111-836-11oqvm2.rb extconf.rb
> mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h
>
> You might have to install separate package for the ruby development
> environment, ruby-dev or ruby-devel for example.
>
> extconf failed, exit code 1
>
> Gem files will remain installed in /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0 for inspection.
> Results logged to /Users/tzha/.gem/ruby/2.6.0/extensions/universal-darwin-19/2.6.0/redcarpet-3.5.0/gem_make.out
> Successfully installed pygments.rb-1.2.1
> Parsing documentation for pygments.rb-1.2.1
> Done installing documentation for pygments.rb after 0 seconds
> 1 gem installed
>
> Can someone help me to resolve this issue?
>
> Thanks,
>
> Tao
>
Hello TM2 users,
just created a miniconda environment called `py37` which I activate via `conda activate py37`. In my endeavour to tell TM2 how to execute a python code with this environment I found this stackoverflow "solution": https://stackoverflow.com/a/8989779
If this is the way to go – I am a novice and need some help:
- assuming I put this into `/usr/local/bin/`
- I guess the file extension is sh and I call it via `sh wrapperscript.sh`? -- is this somehow affected by the new shell in Terminal in Catalina?
- is "MY-ENV" = "py37" in my case? -- or should this be replaced with `conda activate py37`?
- what does "$@" mean
If this is not the way to go, then what should I do? ;-)
Thanks for your help.
Cheers,
Claus
I’ve been getting this abnormal exit issue with the latest TM (2.0.3). There seems to be a problem saving the opened tabs state in projects on closing of the App.
When I reopen TM, the Disable Session Restore dialog appears. I click on Restore Documents and the tabs from a previous state (before 2.0.3) is always brought back.
Anyone else have this issue?
My Info.plist ~/Library/Application Support/TextMate/Session remains dated Oct. 26 so isn’t being updated.
Ed Wong
As seen in screen shot the Stats for selection menu item of the text bundle is garbled too wide, I guess (at least under 10.15.1 Beta (19B77a) & TM version 2.0.3)
Hi:
After I updated macOS Catalina, Markdown Preview no longer works. I got the following error message:
Please install the Redcarpet and Pygments.rb RubyGems by running the following:
/usr/bin/gem install --user redcarpet pygments.rb
After I ran the above command, I received the following error message from the Terminal:
$ /usr/bin/gem install --user redcarpet pygments.rb
Building native extensions. This could take a while...
ERROR: Error installing redcarpet:
ERROR: Failed to build gem native extension.
current directory: /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0/ext/redcarpet
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20191111-836-11oqvm2.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0 for inspection.
Results logged to /Users/tzha/.gem/ruby/2.6.0/extensions/universal-darwin-19/2.6.0/redcarpet-3.5.0/gem_make.out
Successfully installed pygments.rb-1.2.1
Parsing documentation for pygments.rb-1.2.1
Done installing documentation for pygments.rb after 0 seconds
1 gem installed
Can someone help me to resolve this issue?
Thanks,
Tao
Hello,
After installing the latest security update on macOS 10.13 I no longer
seem to be able to launch TextMate.
When I try to open it, a number of windows get opened in the launchpad
(those that were "hidden"), but before opening all other windows
finishes, the program crashes (crash log is in attachment).
Does anyone have any idea how I could do any of the following:
- find the contents of unsaved snippets
- potentially "purge" the open windows and at least try to see if I
can start TM in a clean fashion.
The only "useful" information I see in the crash log is:
Application Specific Information:
old selected document ‘nil’, new selected document ‘Portfile’
I most definitely had a lot of files called "Portfile" opened when
TextMate still worked, but I don't know where 'nil' comes into play.
The rest looks the same as the garbage I get when mixing libc++ and
libstdc++, but it's probably completely unrelated anyway.
Thank you very much,
Mojca
PS: A bit of background information, in case it is relevant in any way
(probably not).
I usually had quite some windows open, very often using TextMate as a
"random notes, TODO lists, temporary copy-and-paste snippets which I
get from somewhere and plan to use later, ...", a bunch of documents I
had opened might no longer exist after the system reboot (I put a lot
of stuff under /tmp/), a lot of them were never saved, but were
automatically reopened every time when I rebooted the system (which
has worked very reliably ever since Lion), ...
Mac has been nagging me to install security updates for quite a while,
and I kept pushing "remind me again tomorrow", until I finally did it,
but ever since I wasn't able to fire up TextMate again, and this is
one of my top programs I use. I'm still on 10.13, I did download both
10.14 and 10.15, but never decided to actually upgrade. Curious
enough, during the last security update the computer suddenly notified
me that it failed to upgrade the OS (gosh, I never asked my mac to do
even do that, but at least I'm happy that it didn't do an automatic
upgrade). I don't know if any of that has anything to do with
TextMate, but I would be grateful for any advice or hint about
proceeding.
Hi *,
sometimes I open some text file just for reference or to copy something from it. I’d like to open those read-only to avoid erronously introducing changes. Could not find some easy way up to now. Which bright red button in front of me did I miss?
-Moss-
--
Debugging? Klingons do not debug. Our software does not coddle the weak.
– not by Peter Dyballa (as he vows)
Hi,
I experience lately on a regular base a high CPU usage of TextMate (TextMate
version 2.0-rc.23, macOS 10.14.3 18D109). I did not install new plugins
(besides of regular updates TM-build in plugins). TM does not crash so I
cannot provide a crash log.
Could it be related to performing a search in a project folder with a large
number of files?
== feek
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
I’ve noticed this a lot and I’m wondering if there is anyway to fix it.
If I have this code:
function findEnvironmentConfig(environment, config) {
if (!Array.isArray(environment)) {
environment = [environment];
} else {
// Clone the array so any mutations aren't received on the other end
environment = [...environment];
}
}
And try to code fold on the line "if ( !Array.isArraty(environment)) {“ then it ends up folding the entire function declaration.
How can I make this work as expected? I have a sneaky suspicion that this is a fatal flaw with TextMate.
Note, this works if the “else {“ is on its own line.
Thanks!
Hello there,
I would like to make my bundle (grammar and theme) to work for C and C++ sources only. How can I achieve it?
This is my actual Grammar configuration, but I would need to restrict the theme to C and C++ too (Since my custom changes are not good for other source files too).
Best
[cid:3E4A02AB-3066-4D86-83D5-51DEB58B0BD9@home-life.hub]
Let's suppose I have a command written in Ruby, that is outputting to HTML
in a new window.
Is there a way to create a link in the HTML output that, when clicked, will
actually execute a Ruby function that I define in the command?
For example, something like:
def do_something(x)
# do something with x
end
puts "<a href=\"command:do_something(42)\">Edit X</a>"
My end goal is to provide an interface for manipulating the current
document; maybe the answer is to do the logic in JS within the HTML window,
and then update the document from there, but I'm equally unsure of how to
do that.
Hi everyone,
I love TM but since I upgraded to v2.0 (also occurs in 2019-10-07 (v2.0.1)) the code folding arrows in the margin have disappeared!
I miss them, how can I get them back?
Thanks,
Ian
Howdy, I maintain the EditorConfig plugin for TextMate (https://github.com/Mr0grog/editorconfig-textmate <https://github.com/Mr0grog/editorconfig-textmate>). I haven’t had much time to work on it recently, but I was trying to update it for the latest TextMate this morning. However, MacOS won’t actually load my bundle inside TextMate. I see this message when TextMate starts:
Failed to load ‘editorconfig-textmate’ (~/Library/Application Support/TextMate/PlugIns/editorconfig-textmate.tmplugin): The bundle “editorconfig-textmate” couldn’t be loaded because it is damaged or missing necessary resources.
I’m fairly certain the cause is that TextMate now uses the hardened runtime (https://github.com/textmate/textmate/commit/412e6798ca206b15cdc8f86a1387835… <https://github.com/textmate/textmate/commit/412e6798ca206b15cdc8f86a1387835…>).
I saw Allan’s message about a similar issue with the Emmet plugin on July 13th: https://lists.macromates.com/textmate/2019-July/041039.html <https://lists.macromates.com/textmate/2019-July/041039.html>
…but enabling the hardened runtime when signing the bundle doesn’t solve the issue for me.
I think the actual problem in this case is that TextMate (not my plug-in) is missing the `com.apple.security.cs.disable-library-validation` entitlement for hardening. Apple’s docs (https://developer.apple.com/documentation/bundleresources/entitlements/com_… <https://developer.apple.com/documentation/bundleresources/entitlements/com_…>) say:
> Typically, the Hardened Runtime’s library validation prevents an app from loading frameworks, plug-ins, or libraries unless they’re either signed by Apple or signed with the same team ID as the app. The macOS dynamic linker (dyld) provides a detailed error message when this happens. Use the Disable Library Validation Entitlement to circumvent this restriction.
Obviously I can’t and shouldn’t sign the plug-in with TextMate’s team ID! So it sounds like this is probably required for third-party plug-ins. Are there other third-party plug-ins that are functioning with the latest version of TextMate? Something else I might be missing here?
Thanks,
Rob Brackett
rob(a)robbrackett.com <mailto:rob@robbrackett.com>
@Mr0grog
I am using the latest 2.0 release of Textmate on a 2017 Macbook Pro. MacOS
10.14.6
I have experienced this only twice in the last two days.
Both times, I had three open documents in Textmate and with the project
drawer visible.
I clicked in the Tab bar to select a different document. And the program
becomes unresponsive. I cannot type any characters and clicking on any
part of the editor view in Textmate has no effect.
Clicking on Tabs has not effect Clicking in the File Browser has no effect.
Interestingly, dragging a Tab to the desktop will make a copy of the
Document on the desktop.
Clicking on the "Menus" at the bottom of the window such as Tabs, or
Language, or the GoTo menu will show the menu. Clicking on an item in the
Goto Menu does not move the editor that that location.
If I switch to another app I cannot use Cmd-Tab to bring TextMate to the
front. The TextMate icons is visible when I press Cmd-Tab but selecting it
has not effect.
I can bring TextMate to the front by clicking on it.
Activity Monitor shows that TextMate is not using any CPU.
I have to Force Quit TextMate.
Now that TextMate is at version 2.0 could I ask what the status of the Bundle editor is ? A lot of functionality that was available in v1.x is missing — for example:
(1) Moving an item from Other Actions to Menu Actions (eg BibDesk Completion)
(2) Moving items within a menu
(3) Creating submenus
(5) Deleting an item
(6) Inserting a separator in a menu
Phil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phil Molyneux E: molyneux(a)pobox.com
T: 020 8549 0045
M: 07885 426 323
71 Deacon Road, Kingston upon Thames KT2 6LS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the preview column in Finder, and when I use spacebar to have a quick look, the color coding that used to show up either in my .tex or .text files doesn’t show anymore. Not much of a problem, but my attempts to touch TextMate.app or clean up the Quick Look cache (qlmanage -r cache) led nowhere. Suggestions?
I’m on OS 10.15 and TextMate 2.0.1.
—Gildas