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.
![](cid:527163B1-A047-4E01-8C29-5880EF864360@skurfer.com "Screen Shot
2020-04-23 at 8.59.37 AM.png")
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)