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
Has anyone seen this situation (see screenshot). `Quit TextMate` is not selectable, with nothing apparent to block the quit: no open windows or dialogs. This happened once yesterday, and once a few weeks ago. 🤔
TextMate v2.0
macOS 10.14.6
Hello,
I've recently updated to Mojave and I noticed that a TextMate theme I
use called iPlastic doesn't allow a transparency for the background. For
the same background setting in High Sierra the background now is solid.
I've tried modifying the theme directly in the Bundle editor and tried
different color codes for the background entry, which was
background = '#EEEEEEEB';
before the OS update, but I haven't been able to add any transparency.
Does anyone have suggestions?
Angelo
Hi,
Is there a function to make TextMate 2 opens a certain file type using a specific theme? e.g. there is the default theme and then you can set TM to open html files using another theme.
Best, u
PS:
I need it!! I do not know why only few Text Editors have this feature…
Hello,
I would like to change the highlighted part to the same (pink) color of the rest.
What I have tried by now (all day) is by adding a new grammar and then change the color in the theme.
I tried many things like this one:
{
name = 'meta.new-line';
match = '\}\n.’;
}
[cid:99DEEF18-FC21-4A16-8AC7-0F38A367FAB0@home-life.hub]
[cid:00EDC7C9-E951-40B0-BE0F-DC45FB718038@home-life.hub]
Anyway, finally my idea is to make each block ( {...} ) of a different color.
I hope this is the correct place to post about this; the TextMate GitHub
repo doesn't seem to let anyone add issues. This setting:
defaults write com.macromates.TextMate.preview disableTabAutoClose
-bool YES
...is being ignored by RC 29, 30 and 31 (if not earlier, I didn't try).
The last "mainstream" release appears to be RC10, which works fine.
The setting is absolutely vital to me, so I'd really love to see this
issue fixed. In the mean time I'll stick to RC10.
To be honest, I'm surprised it isn't the default. This is of course just
a subjective opinion! For me, having tabs close and lose tab ordering
and positioning is quite destructive to workflow, especially when
working in projects with large numbers of files. I have to go scrolling
up and down in the file browser trying to relocate something I'd opened
for reference but has now closed again. The behaviour feels rather
arbitrary / random too; the threshold depends on window dimensions, so
it isn't very user-predictable. I never remember to right-click and
choose "Sticky"; it's not something I've ever had to do in any other
text editor or IDE, so it's just not in my muscle memory.
Has there been any consideration to using the current macOS system-wide
tab bar instead? This "compresses" tabs when the tab bar gets full &
automatically expands tabs towards the side of the tab bar most recently
selected (at least in Finder or Safari, but maybe Apple implemented
special subclasses and this isn't out-of-box Cocoa behaviour). If it's
good enough for web browsers, where having very large numbers of tabs
open is common, it's hopefully good enough for a text editor too. The
"hide if overflowing" behaviour, if it were kept, could then become
opt-in instead of opt-out. While other editors seem to be adopting
Sublime's "temporary tab" approach, I've never been sure I like it; and
going with the best-practice OS X core system approach has always felt
like the TextMate ethos.
--
TTFN, Andrew Hodgkinson
Find photos, software, music and more at my home site, Bandcamp and
GitHub:
https://pond.org.uk / https://pondnz.bandcamp.com /
https://github.com/pond
Hello,
I've noticed that sometimes files that are not empty sometimes appear so
when I open them in TextMate. If I close and reopen them, they still appear
blank. If I open them in TextEdit, they don't appear empty. The problem
goes away, though, when I quit TextMate and reopen it.
This is a little inconvenient, because I sometimes have several files open
and then have to close and reopen all of them, too.
Would anyone know how to have the file open properly without having to quit
TextMate?
Thank you and best wishes,
Anthony V. Pulido
Hi Quinn,
Perhaps this issue is related to this bug report (opened over a year ago) for the bundle: https://github.com/hiltmon/Gist.tmbundle/issues/13
Best,
Farhan
> On Sep 20, 2019, at 8:00 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. Background transparency no longer works in 2.0 (Sam Scherer)
> 2. Gist.tmbundle - tlsv1 alert protocol version (Quinn Comendant)
> <mime-attachment>
> <mime-attachment>
> _______________________________________________
> TextMate mailing list
> TextMate(a)lists.macromates.com
> https://lists.macromates.com/listinfo/textmate
I have been using the Gist.tmbundle from https://github.com/hiltmon/Gist.tmbundle, but today I tried to create a public Gist and got this error. Anybody know if this is a quick fix? The bundle hasn't had updates to its repo in 5 years, so it may be dead.
Thanks,
Quinn
-------------------------------------------------------
/Users/quinn/Library/Application Support/TextMate/Bundles/Gist.tmbundle/Support/bin/gistmate.rb:368:in `api_post_request': undefined method `code' for nil:NilClass (NoMethodError)
from /Users/quinn/Library/Application Support/TextMate/Bundles/Gist.tmbundle/Support/bin/gistmate.rb:203:in `create_temp_gist'
from /Users/quinn/Library/Application Support/TextMate/Bundles/Gist.tmbundle/Support/bin/gistmate.rb:177:in `create_from_selection'
from Gist from Selection:5
Received exception: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version
At line 586 in ‘http.rb’ (inside method ‘connect’)
At line 586 in ‘http.rb’ (inside method ‘connect’)
At line 553 in ‘http.rb’ (inside method ‘do_start’)
At line 542 in ‘http.rb’ (inside method ‘start’)
At line 1035 in ‘http.rb’ (inside method ‘request’)
At line 364 in ‘gistmate.rb’ (inside method ‘api_post_request’)
At line 38 in ‘progress.rb’ (inside method ‘call’)
At line 38 in ‘progress.rb’ (inside method ‘call_with_progress’)
At line 67 in ‘progress.rb’ (inside method ‘call’)
At line 67 in ‘progress.rb’ (inside method ‘call_with_progress’)
At line 22 in ‘ui.rb’ (inside method ‘dialog’)
At line 42 in ‘progress.rb’ (inside method ‘call_with_progress’)
At line 360 in ‘gistmate.rb’ (inside method ‘api_post_request’)
At line 203 in ‘gistmate.rb’ (inside method ‘create_temp_gist’)
At line 177 in ‘gistmate.rb’ (inside method ‘create_from_selection’)
At line 5 in ‘TextMate_command.44v9Kk’ (top level)
I’d really like TextMate to support the Language Server Protocol for
code completion, navigation etc. for various languages (in my case
primarily Ruby, but LSP as such is language-agnostic).
To be honest, I don't have any clue (yet) what exactly needs to be done.
However, there’s a already a vast amount of editors supporting LSP (see
https://langserver.org/#implementations-client ) and I’m quite sure that
investigating some of these implementations would give hints about how
to add LSP support to TextMate.
Is there anyone else interested in this topic? Maybe we could team up?
s.
Hi Phil,
Don't know the status of the Bundle Editor, but I had the same issue with menu items in my own tmBundles and whipped up a quick (drumroll...) tmBundle to help me with that. Not a full Bundle Editor, but available right away.
https://github.com/persquare/BundleMenuEditor.tmBundle
Hope that helps,
Per
On September 18, 2019 at 12:33 PM, Phil Molyneux <molyneux(a)pobox.com> wrote:
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
TextMate mailing list
TextMate(a)lists.macromates.com
https://lists.macromates.com/listinfo/textmate
I'm sorry to lose the feature where there was a pref to keep the tabs from appearing above the project browser. I'm not used to having to reach way over to the side, and I find the tab above the browser confusing visually. m.
If you create an empty file with no file extension (on your desktop for
example), then right click it, OSX/Finder offers various app choices to use
to 'Open With..'
A lot of other text and code editors appear in this list (Atom, Visual
Code, Sublime Text), but TextMate does not
It would be very useful if TM would register itself with OSX in the same
way.
I guess there's some way to do this manually, but if so, I haven't found it
yet
Hello,
I'm running TextMate version 2.0-rc.27.
It seems that I'm no longer able to edit files that are not owned by
me by using `sudo mate` or plain `mate`.
Steps:
1. Run `sudo mate /etc/hosts`
2. Enter my username and password in the terminal
3. Make a change
4. Save the file
Expected: The file is saved with the new contents
Actual: an error modal is show with the following contents:
Title: The document “hosts” could not be saved.
Body: Failed replacing hosts with
/var/folders/w8/0pc0dw1d4zd9knf_qm4ls1bc0000gn/T/TemporaryItems/(A
Document Being Saved By TextMate)/hosts: You don’t have permission to
save the file “hosts” in the folder “etc”.
So far I have tried:
- Granting "Full Disk Access" to TextMate in System Preferences ->
Security & Privacy -> Privacy
- Uninstalling and reinstalling `mate`
Please let me know if there's any more information I can provide.
Thanks!
Hello list,
when opening (existing) files from Terminal.app using the `mate` command, it occasionally (but not always) takes a fairly long time (more than 5secs) to open the file in TextMate. TM in all these instances is already running, but doesn't necessarily have any open windows.
This is for small files (e.g. 30 short lines of code), so it cannot be the file size making a difference. If I open the files directly through TM's File -> Open... menu, no such delay happens.
During such a delay, if I click on the already running TM in the dock to activate it, the desired document that `mate` is trying to open immediately appears.
If I close the document and retry immediately afterwards, then no delay seems to exist for a while. Swap also doesn't seem to be an issue, my swapfile has size 0 on a 32GB Macbook Pro, with 16GB free. If TM hasn't been activated in a while (even though supposedly running according to the Dock dot) then this seems more likely.
It seems to be the communication / connecting between mate and TM that causes this delay somehow. I've tried removing and reinstalling the `mate` command.
This is on TextMate version 2.0-rc.10, but is not new behavior, I've seen this for quite some time.
Does that sound familiar to anyone or have any diagnosis tips?
Thanks,
Daniel.
(I just asked this to irc so sorry for the duplicate)
I'm looking for guidance on how to change the javascript grammar so it'll
syntax highlight both, e.g., "if (...)" and "if(...)". Currently, only the
former works, and I believe this is for most control statements, e.g., if,
for, while, etc.
In java, for example, both work, and I tried to compare the grammars to
make my own edits, but found them too complicated and different, and
anything I tried didn't work.
Any guidance would be appreciated.
Thanks-
Robert
Hi,
Does anybody have problems with pushing to the remote repositories on Github?
What I see:
Pushing to remote source 'origin' for branch 'master'
Output:
fatal: could not read Username for 'https://github.com': Device not configured
This is the latest TM 2.0-rc.27 on OSX 10.14.6 (18G87). Configuration is set as before (user.name, user.email, github.user).
Yesterday late I’ve been pushing quite a lot and had no problems. Very weird, hence my question.
Of course, Github desktop works fine, I wonder...
Rob J Goedman
goedman(a)icloud.com
Hello everyone,
Who can explain me what these settings are for?
Specifically: Scope Selector, Key Equivalent, Tag Trigger options.
I’m in “Edit Bundles… > Themes”
[cid:AC15C356-0CB2-46DA-BB4D-71356BD035FC@home-life.hub]
Best, u
I have been playing with the touchbar support in texmate and have noticed
the following.
If I set bookmarks in my document the touchbar buttons with up/down
chevrons will correctly take me to the previous or next bookmark
respectively.
However, if I make a change to the document and save it. I now get a
change marker showing that it is different than what is in the git
repository. That is to be expected.
But now the up/down buttons on the touchbar stop at all of the git markers
as well as the bookmarks. Is this by design?
It makes jumping back and forth between a couple of bookmarks painful if
there are a lot of edits in the file.
I can still hold down the fn button and use F2/Shift F2 to achieve this,
but that sort of defeats the purpose of having the nifty touch bar buttons.
I think `ruby “file”` can be slow too. Don’t know if it’s related
> On Jul 18, 2019, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
>
> Re: `mate <file>` from Terminal is occasionally very slow to
> open <file> in TextMate
Hey all,
I tried to pull a new patch from master and found an error;
./configure && ninja
rm
/Users/heathg/build/TextMate/Frameworks/SoftwareUpdate/fixtures/secret.pem
ninja: error: build.ninja:17: loading '/build.ninja': No such file
or directory
include $builddir/build.ninja
^ near here
ninja: error: build.ninja:17: loading '/build.ninja': No such file
or directory
include $builddir/build.ninja
I did a `git bisect` and narrowed it down to b42cbb1f.
I don't know if I missed a memo (obviously it was still building for
Allan :) ) or if this is a bug.
I unblocked my self by reverting the commit locally.
Thanks,
Graham
Thank you Matt. That did it.
My knowledge hadn’t gone beyond Preferences and Application Support. Learned something today. Will I remember it tomorrow?
> On Jul 24, 2019, at 22:09, textmate-request(a)lists.macromates.com wrote:
>
> Date: Wed, 24 Jul 2019 22:09:35 -0700
> From: Matt Neuburg <matt(a)tidbits.com <mailto:matt@tidbits.com>>
> To: TextMate users <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
> Subject: [TxMt] Re: Keyboard gone crazy in TM 2.0-rc.10
> Message-ID: <34E15DA4-6383-4318-B99B-CC1EEF22A1B8(a)tidbits.com <mailto:34E15DA4-6383-4318-B99B-CC1EEF22A1B8@tidbits.com>>
> Content-Type: text/plain; charset="utf-8"
>
> Yes, it?s in Caches. m.
>
> --
> matt neuburg, phd = http://www.apeth.net/matt/ <http://www.apeth.net/matt/>
> pantes anthropoi tou eidenai oregontai phusei
> Programming iOS 12! http://shop.oreilly.com/product/0636920208662.do <http://shop.oreilly.com/product/0636920208662.do>
> iOS 12 Fundamentals! http://shop.oreilly.com/product/0636920208655.do <http://shop.oreilly.com/product/0636920208655.do>
> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html <http://www.apeth.com/RubyFrontierDocs/default.html>
>
>> On Jul 24, 2019, at 10:07 PM, Greg <web(a)web.knobby.ws <mailto:web@web.knobby.ws>> wrote:
>>
>> Matt
>>
>> Maybe that?s what started it, but I wiped the app and ~/Library/Application Support/TextMate and the problem persists. Is the cache elsewhere?
>>
>>> On Jul 24, 2019, at 05:00, textmate-request(a)lists.macromates.com <mailto:textmate-request@lists.macromates.com> wrote:
>>>
>>> Message: 2
>>> Date: Tue, 23 Jul 2019 11:18:45 -0700
>>> From: Matt Neuburg <matt(a)tidbits.com <mailto:matt@tidbits.com>>
>>> To: TextMate users <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
>>> Subject: [TxMt] Re: Keyboard gone crazy in TM 2.0-rc.10
>>> Message-ID: <7C4A3A59-3EE9-47CC-9D79-2C12782E679A(a)tidbits.com <mailto:7C4A3A59-3EE9-47CC-9D79-2C12782E679A@tidbits.com>>
>>> Content-Type: text/plain; charset=utf-8
>>>
>>> This could be irrelevant but I've got a point of similarity, namely, I have a bundle command and instead of doing what it was supposed to do, it deleted all the text in the file.
>>>
>>> I discovered that TextMate had mysteriously decided that my bundle command was empty. It had "reverted" to default settings and no code content.
>>>
>>> Well, the default setting is that the output should replace the entire text of the file. There was no code so the output was nothing, and thus nothingness replaced the text of the file.
>>>
>>> Fortunately I had a backup of the bundle. I had a very hard time getting TextMate to release its memory of the bad bundle but eventually by deleting the cache and restarting I was back in business. Very unnerving.
>>>
>>> m.
>>>
>>>
>>>> On Jul 23, 2019, at 9:04 AM, Greg <web(a)web.knobby.ws <mailto:web@web.knobby.ws>> wrote:
>>>>
>>>> I assume I did something, but, for example, Cmd-/ deletes all the text in a file (as if Cmd-A, delete)
>>>>
>>>> I?m using Ruby 2.6.3 and it?s a Rails project.
>>>>
>>>> If I open a .txt file via File>Open the page flickers twice and then it?s blank. If I Cmd-Z twice the text returns.
>>>>
>>>> I normally use Keyboard Maestro, but turned off the engine and it still happens.
>>>>
>>>> I reinstalled TextMate and deleted ~/Library/Application Support/TextMate/ and also the two prefs files.
>>>>
>>>> This reinstall helped with the initial problem the in general the clicks were ignored. I couldn?t edit Preferences.
>>>>
>>>> Cmd-S deletes everything on a page too.
>>>>
>>>> What did I do. I?m not thinking it?s a fundamental TM problem because my laptop is fine.
>>>>
>>>> I first noticed this when I tried to do a Cmd-/ in a Ruby file and the whole page di
Matt
Maybe that’s what started it, but I wiped the app and ~/Library/Application Support/TextMate and the problem persists. Is the cache elsewhere?
> On Jul 24, 2019, at 05:00, textmate-request(a)lists.macromates.com wrote:
>
> Message: 2
> Date: Tue, 23 Jul 2019 11:18:45 -0700
> From: Matt Neuburg <matt(a)tidbits.com <mailto:matt@tidbits.com>>
> To: TextMate users <textmate(a)lists.macromates.com <mailto:textmate@lists.macromates.com>>
> Subject: [TxMt] Re: Keyboard gone crazy in TM 2.0-rc.10
> Message-ID: <7C4A3A59-3EE9-47CC-9D79-2C12782E679A(a)tidbits.com <mailto:7C4A3A59-3EE9-47CC-9D79-2C12782E679A@tidbits.com>>
> Content-Type: text/plain; charset=utf-8
>
> This could be irrelevant but I've got a point of similarity, namely, I have a bundle command and instead of doing what it was supposed to do, it deleted all the text in the file.
>
> I discovered that TextMate had mysteriously decided that my bundle command was empty. It had "reverted" to default settings and no code content.
>
> Well, the default setting is that the output should replace the entire text of the file. There was no code so the output was nothing, and thus nothingness replaced the text of the file.
>
> Fortunately I had a backup of the bundle. I had a very hard time getting TextMate to release its memory of the bad bundle but eventually by deleting the cache and restarting I was back in business. Very unnerving.
>
> m.
>
>
>> On Jul 23, 2019, at 9:04 AM, Greg <web(a)web.knobby.ws <mailto:web@web.knobby.ws>> wrote:
>>
>> I assume I did something, but, for example, Cmd-/ deletes all the text in a file (as if Cmd-A, delete)
>>
>> I?m using Ruby 2.6.3 and it?s a Rails project.
>>
>> If I open a .txt file via File>Open the page flickers twice and then it?s blank. If I Cmd-Z twice the text returns.
>>
>> I normally use Keyboard Maestro, but turned off the engine and it still happens.
>>
>> I reinstalled TextMate and deleted ~/Library/Application Support/TextMate/ and also the two prefs files.
>>
>> This reinstall helped with the initial problem the in general the clicks were ignored. I couldn?t edit Preferences.
>>
>> Cmd-S deletes everything on a page too.
>>
>> What did I do. I?m not thinking it?s a fundamental TM problem because my laptop is fine.
>>
>> I first noticed this when I tried to do a Cmd-/ in a Ruby file and the whole page disappeared. (well at first nothing happened until I reinstalled TM and deleted Application Support)
I assume I did something, but, for example, Cmd-/ deletes all the text in a file (as if Cmd-A, delete)
I’m using Ruby 2.6.3 and it’s a Rails project.
If I open a .txt file via File>Open the page flickers twice and then it’s blank. If I Cmd-Z twice the text returns.
I normally use Keyboard Maestro, but turned off the engine and it still happens.
I reinstalled TextMate and deleted ~/Library/Application Support/TextMate/ and also the two prefs files.
This reinstall helped with the initial problem the in general the clicks were ignored. I couldn’t edit Preferences.
Cmd-S deletes everything on a page too.
What did I do. I’m not thinking it’s a fundamental TM problem because my laptop is fine.
I first noticed this when I tried to do a Cmd-/ in a Ruby file and the whole page disappeared. (well at first nothing happened until I reinstalled TM and deleted Application Support)
Hi all,
the [Emmet plugin](https://emmet.io) crashes since the latest test builds of
TM v2.0-rc.22.
The developer is aware of this issue, but unfortunately no fix till now.
Could someone here tell what the changes in TM are what could break the
Emmet plugin? So I can give the developer a hint :)
A crashlog can be found here: https://feek.d.pr/98mGNP
== feek
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
It would be nice if the Align Assignments command absorbed the smart code from the align bundle, which appears moribund (?), but which is much smarter about alignments.
https://github.com/mads379/align.tmbundle
I notice that after updating to 2.0-rc.25 and 2.0-rc.26, file permissions revert when saving a file. I presume this has to do with the new atomic save engine. E.g., a file which previously had -rwxr-xr-x permissions reverts to -rw-r--r-- after saving. I assume this is a bug?
# chmod 755 bin/resman.cli.php
# ls -l bin/resman.cli.php
-rwxr-xr-x@ 1 q staff 10184 Jul 8 01:01 bin/resman.cli.php
(Edit and save the file in TextMate 2.0-rc.26)
# ls -l bin/resman.cli.php
-rw-r--r--@ 1 q staff 10184 Jul 8 01:01 bin/resman.cli.php
Quinn
I just installed the public beta of macOS Catalina. I’ve noticed that the TextMate icon is missing in the Dock. It’s showing a generic application icon instead.
--
/Jacob Carlborg
Hi,
Dumb question for a 12-year user of Textmate (we missed the 10-yer anniversary, it seems: happy birthday TM!), but…
How is the project folder determined? Specifically, I’ve got a tab open which is in a folder marked in the filebrowser (^⌥⌘-D) as the project folder (at least ) it’s ticked in the little drop down menu (see image).
But… If I ⇧⌘-F (find in project), the Dropbox folder is selected… What determines what is set when one used command-shift-F?
In general, I’d appreciate if anyone has pointers to a decent tutorial on how to use project folders.
I have a command I'm trying to create that pastes multiple lines of code,
the problem is sequential lines are not indented properly. If my command
pastes 1, 2, 3 on newlines for example, I'll get something like this:
def foo
1
2
3
end
since I invoke my command from the proper indenting (2 spaces over), but
the following lines are not indented at all. Is there a recommended way to
fix this?
Thanks!
Are people using TextMate with Dark Mode? I see some issues with reading
text (find input text is black until unfocused, then changes to white), but
also curiously the icons in the outline view are also missing.
[image: Screen Shot 2018-10-04 at 8.04.30 PM.png]
I have a bundle command implemented in Ruby that uses TextMate.detatch. The tm/detach.rb requires ui.rb which requires plist.bundle. Loading the plist bundle crashes with a segmentation fault. The issue occurs on Mojave but not on High Sierra. I’m using "/usr/bin/env ruby20” as the Ruby for running the command. The command is available here [1].
[1] https://github.com/textmate/d.tmbundle/blob/master/Commands/Start%20DCD.tmC…
--
/Jacob Carlborg
Is there a hidden preference, modifier key, or some other way to make
“Jump to Selection” put the current line at the top of the window
instead of in the center?
Actually, one or two lines of context above the current line would be
even better. Like what `less -j4 file.txt` would do.
Thanks.
--
Rob McBroom
Hi,
I have started to use Homebrew's Perl and its CPAN to avoid having to
mess with the Macs Protection mechanism.
The CPAN libraries/modules are installed under ~/perl5 necesstitting to
run
PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib
and adding this to the end of ~/.profile
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"
which sets
PERL_MB_OPT='--install_base "/Users/el/perl5"'
PERL_MM_OPT=INSTALL_BASE=/Users/el/perl5
(in my case).
I have set TM_PERL to /usr/local/bin/perl and when I run a perl program
wit CMD-R it works, unless I use a CPAN module when I get this message
(under TextMate, but NOT from the command line):
Can't locate DBI.pm in @INC (you may need to install the DBI module)
(@INC contains: /Users/el/Library/Application
Support/TextMate/Managed/Bundles/Perl.tmbundle/Support
/usr/local/Cellar/perl/5.28.1/lib/perl5/site_perl/5.28.1/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.28.1/lib/perl5/site_perl/5.28.1
/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1
/usr/local/lib/perl5/site_perl/5.28.1) at /Users/el/Downloads/epplog.pl line 4.
BEGIN failed--compilation aborted at /Users/el/Downloads/epplog.pl line 4.
When I add this to the front of the script
BEGIN {
$WHOAMI = getpwuid($<);
$LOCALPERL5 = "/Users/$WHOAMI/perl5/lib/perl5";
push @INC, $LOCALPERL5;
} ## end BEGIN
use lib "/Users/$WHOAMI/perl5/lib/perl5";
it runs under TextMate.
If I run Tidy I get this message
Can't locate Perl/Tidy.pm in @INC (you may need to install the
Perl::Tidy module) (@INC contains:
/usr/local/Cellar/perl/5.28.1/lib/perl5/site_perl/5.28.1/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.28.1/lib/perl5/site_perl/5.28.1
/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.28.1/lib/perl5/5.28.1
/usr/local/lib/perl5/site_perl/5.28.1) at /usr/local/bin/perltidy line 2.
BEGIN failed--compilation aborted at /usr/local/bin/perltidy line 2.
which disappears if I prefix the above BEGIN/Use block into
/usr/local/bin/perltidy (which works from the command line).
I have tried to set TM_PERLTIDY to /usr/local/bin/perltidy but makes no
difference.
Does anyone have an idea what I must set to be able not have to use the
BEGIN/use block any longer (for both issues)?
greetings, el
--
Dr. Eberhard W. Lisse / Obstetrician & Gynaecologist (Saar)
el(a)lisse.NA / * | Telephone: +264 81 124 6733 (cell)
PO Box 8421 /
Bachbrecht, Namibia ;____/
Hello,
I am trying to make a snippet that adds ^{$1} associated to the ^ key
equivalent.
But ^ is a dead key on my french keyboard, and I can't seem to assign it in
the bundle editor.
Any idea?
Best,
S.
--
Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
I’m running the latest RC 2.0-rc.15. I’ve only noticed this since I've installed this version.
When I move between tabs (either by clicking on tab or using Option-Command left, right arrows) sometimes the page scrolls up by 1 to 3-4 lines each time. But once it does this scrolling then it will do so every time I come back to that tab.
I’m not sure how TM handles window draws but there seems to be a miscalculated line offset between a buffered text image that gets shown when the window first shows and then an actual redraw of lines afterwards. I’ve noticed in some cases a clipped portion of the window being shown first and then the remaining page showing but the clipping is off so the text appears to move downwards. Sorry I haven’t looked into the code to get a better idea of what’s happening with window draws.
Ed Wong
Hi Folks,
I'be had a recurring problem with one file. For some reason when TextMate
reads the film from disk it somehow corrupts the tail of the file. I've
attached two images of the corrupted and original versions. I've done a bit
of digging and have observed the following.
1. It only appears to happen for this one particular file (weird).
2. When I first launch Textmate and then open this file it appears
corrupted in Textmate but not when I use "tail" in the command line (i.e.,
the file is corrupted in TextMate's memory but not on disk).
3. If I close the (apparently) corrupted file and re-open it, the file is
now not corrupted.
4. If I save the file to disk then it is saved in corrupted form (oops).
5. If I delete ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary
before launching TextMate then the file is not corrupted.
6. I ran Apple's debug (reboot+D) to check my memory and it reported no
errors.
7. I'm running TextMate 2.0-rc.23 on macOS 10.14.4
Any suggestions would be most appreciated,
Cheers,
Leo
[image: fig-01.png]
[image: fig-02.png]
Hello everyone,
Does somebody successfully build TextMate 2 for Mac OS X Tiger?
I forgot I had to purchase a license for the 1.5.x version. Thing I do not want to do at the moment.
Best,
Umberto
I know there’s a semantic class for when a document is open: "callback.document.did-open”. Is there a corresponding semantic class for when a document is closed? Or even better when a project is closed. I know that TextMate technically doesn’t have a concept of projects. I would like to stop a completion daemon.
I had a look in the TextMate source code but I couldn't find anything
--
/Jacob Carlborg
The Ruby bundle currently supports reformatting a file with RuboCop
(“Reformat Document”), and checking the document’s syntax using `ruby -wc.
So far there is no support for automatically checking (or maybe even
reformatting) a file everytime it is saved.
For RuboCop, there are (at least) four stand-alone RuboCop bundles
providing additional features:
* https://github.com/fazibear/Rubocop.tmbundle
* https://github.com/mrdougal/textmate2-rubocop
* https://github.com/goyox86/rubocop-tmbundle
* https://github.com/noniq/RuboCop.tmbundle (Disclaimer: This bundle
was written by me).
Recently various alternatives to RuboCop emerged, especially:
* https://github.com/testdouble/standard (uses RuboCop internally, “No
configuration“)
* https://github.com/samphippen/rubyfmt (autoformatting only,
optimized for speed)
Both tools are still pre-1.0, but actively developed.
I’d like to add support for both standardrb and rubyfmt to TextMate.
However, I’m not yet sure about the following questions:
* Should the Ruby bundle be extended to support these? Or should one
or more stand-alone bundles be created?
* What would be the best way to tell TextMate which (if any) linting /
formatting tool it should use for a given ruby file or project?
Any thoughts?
s.
Hi y’all.
A while back, I bought the domain: textmate.app
I had hand wavy plans for a manual/documentation/book site. But when I’m honest with myself, I’m probably not going to ever make that.
So, would the open source projects / MacroMates / Allan like to have the domain for free? If so, I can coordinate with whomever to transfer from my registrar to yours.
If not, that’s fine too. I can just let it expire.
Best
Sb