Hi, I'm on TM 1.5.5 (1368) and just recently, my fonts have become
all ugly. Here is an example of 10-pt non-AA Monaco: http://
img214.imageshack.us/img214/1407/picture1lm1.png . All other fonts
have the same issue, both with AA on and off. The fonts are just fine
in Terminal, with the exact same settings.
So far, I've tried:
• Deleting the com.macromates.textmate.plist preferences file.
• Checking for font corruption in Font Book
• Deleting Library/Caches and /Library/Caches in hopes of getting the
font caches (are they actually there?).
Any ideas?
Thanks,
Andy K.
Apologies for the ms with no subject - here is the ms again:
Whenever I try to execute the command Add Persistent Include from the
HTML bundle (using either the menu item or the Control-Commend-I
keystroke), I get the following text embedded in the file:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
HTML.tmbundle/Support/tminclude.rb:313:in `include_command':
undefined method `request_file' for TextMate::Dialog:Class
(NoMethodError)
from /tmp/temp_textmate.wx7fNU:3
I'm running TextMate 1.5.5 (1368) on Mac OS X 10.4.8 and ruby appears
to be installed as /usr/bin/ruby
Any idea what I'm doing wrong here ?
The lines around line 313 in the file tminclude.rb mentioned above are:
require "#{ENV['TM_SUPPORT_PATH']}/lib/dialog.rb"
cstart = (@escape_open).rstrip + ' '
cend = (' ' + @escape_close).rstrip
begin
Dialog.request_file do | file |
print <<-"EOT"
#{cstart}#tminclude "#{file}"#{cend}
#{cstart}end tminclude#{cend}
EOT
end
and the file dialog.rb does appear to exist in a lib subdirectory
with a request_file method but I don't have enough Ruby or textmate
knowledge to see where things have gone wrong or my use of Textmate
hasn't worked.
Phil Molyneux
This email has been scanned for all viruses by the MessageLabs Email
Security System.
Whenever I try to execute the command Add Persistent Include from the
HTML bundle (using either the menu item or the Control-Commend-I
keystroke), I get the following text embedded in the file:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
HTML.tmbundle/Support/tminclude.rb:313:in `include_command':
undefined method `request_file' for TextMate::Dialog:Class
(NoMethodError)
from /tmp/temp_textmate.wx7fNU:3
I'm running TextMate 1.5.5 (1368) on Mac OS X 10.4.8 and ruby appears
to be installed as /usr/bin/ruby
Any idea what I'm doing wrong here ?
The lines around line 313 in the file tminclude.rb mentioned above are:
require "#{ENV['TM_SUPPORT_PATH']}/lib/dialog.rb"
cstart = (@escape_open).rstrip + ' '
cend = (' ' + @escape_close).rstrip
begin
Dialog.request_file do | file |
print <<-"EOT"
#{cstart}#tminclude "#{file}"#{cend}
#{cstart}end tminclude#{cend}
EOT
end
and the file dialog.rb does appear to exist in a lib subdirectory
with a request_file method but I don't have enough Ruby or textmate
knowledge to see where things have gone wrong or my use of Textmate
hasn't worked.
Phil Molyneux
This email has been scanned for all viruses by the MessageLabs Email
Security System.
I'm a Textmate n00b, so maybe there is just something I have
misconfigured, but just in case it is a bug...
I noticed today that I wasn't seeing quotes correctly in comments at
my default settings. My default font is Monaco 12 pt. Anti-aliasing
is off. Inside of comments which are italicized, I noticed that I
don't see single quotes at all (just a space) and double quotes as
single quotes. This problem doesn't happen in the non-italicized code
text and goes away in italicized text if I boost the text size to 14
pt. It also goes away if I turn off the italics styling on comments.
So is there something I need to tweak to get quotes looking right in
the italicized text?
I checked TextEdit for comparison with antialiasing turned off in the
System Preferences for 12 pt and lower, and the quotes in Monaco are
normal there.
Hi!
Because of the troll-thread and one of the mails in it, I just came
along an issue I more or less ignored most of the time.
Is it somehow possible to create right out of TextMate a project out
of a single file?
E.g. you open TM and create a new file with cmd+n or open a single
file. You end up with a file which isn't in a project. Can I now
directly create a project which includes that file?
I'm aware that I can save the file, create a new project and then
move the file into the project (e.g. by dragging the file's icon from
the title of the window with the file into the project-drawer of the
new project) but it would be better if I could directly create a new
project out of a new file, including that file.
Niels
Hi TextMate Vim switchers (also BBEdit, Emacs, XCode, Eclipse, etc.
switchers).
I find that Vim users find the transition to a new editor much more
difficult than switchers from other editors. This speaks highly of
Vim's power, flexibility, and efficiency: there are aspects of its use
that are very hard for users to give up, and parts of Vim that work much
more efficiently than the equivalent TM features.
So, I ask that you come together to fill out this wiki page:
http://macromates.com/wiki/MigratingFrom/Vim
So that when the (not infrequent) question comes up from a Vim user
about why to use TextMate instead, there will be some resource to point
her at. I think it would be great to put tips, tricks, maybe some
thoughts about what TextMate could do better to meet the needs of those
used to powerful Vim features that can't quite be emulated. The goal
should be to (preferably in this order):
1. Convince Vim users that TextMate is worth trying.
2. Help Vim users through aspects of the editor that are likely to trip
them up.
3. Figure out how Vim features can inform new TextMate commands, etc.
Note, former users of other apps can make other subpages from this top
level page:
http://macromates.com/wiki/MigratingFrom/HomePage
It might be nice to put together a page for general Windows switchers as
well, with tips like how to get home/end key bindings working (that blog
post of Allan's), etc.
----
The wiki could probably use some general info for new users. Many
tutorials and tips have been posted around on various blogs, but it
would be nice to consolidate and clarify some of this information, and
put it somewhere where it can be kept up to date.
Note: the wiki can use markdown syntax by wrapping a page in
(:markdown:) and (:markdownend:)
-Jacob
I installed ruby 1.8.5 and appscript on my mac
(and it is hugely better that the schizolanguage
of AppleScript).
Now if I define a command in TextMate like
#!/usr/bin/env ruby
require "appscript"
include Appscript
te = app('TextEdit')
TextMate complains it (he) cannot find
appscript.rb (no use to give the explicit
path since then TextMate cannot find the
files require'd inside appscript, etc etc).
Clearly, I must set new paths,
but how? and maybe I should also tell
TextMate to use 1.8.5 instead of 1.8.2
I'm sure this is easy but have no idea
how to do it. Any help?
Thanks a lot,
Piero
I'm sure that a few of the developers of TextMate were not even born
when I first started using Emacs... Now, I know very well that ol'
Emacs ain't perfect, but by now my fingers and brain are so wedded to
Emacs that, despite a few attempts, I have never been able to switch
to a different text editor.
But several people whose opinions I value have urged me to give
TextMate a try, so here we go.
I imagine/hope, given that so many people in TextMate's target
audience use either Emacs or vi, that there will be extensive
resources to ease the transition *from these specific editors* to
TextMate. Am I right? If so, where are these resources?
More specifically, I'm hoping to find something like a "TextMate for
Emacs veterans FAQ", with answers to questions like:
1. will I be able to use TM entirely from the keyboard?
2. will I be able to set up the same key bindings as in Emacs? how easily?
3. can I work on a single window, switching between buffers from the
keyboard, or will I have a zillion windows floating around my desktop?
4. will I be able to preserve my workspace (including open buffers,
modes, and other settings) from one session to the next, à la Emacs
Desktop?
5. can I run a shell withiin TextMate?
6. does TextMate integrate with debuggers like gdb?
...etc., etc.
Thanks!
kj
Just thought I'd let you know that Textmate bombs out on me when I
try and commit changes to my subversion repository using the
subversion bundle.
To be honest I've not used this bundle for a long time as I use svnX,
but svnX has just stopped letting me open my repositories and working
copies (it bombs out also) so I thought I'd give it a go.
I can't comment on when this started happening to the subversion
bundle so I don't know if the two problems I'm having are connected,
but the only thing that's changed since yesterday (when svnX was
working fine) is that I've installed the iTunes (7.1) and Quicktime
(7.1.5) updates from Apple, so if the two are connected then
(although I can't see why) this may have something to do with it.....
[command line subversion is working fine ...although I'm having
problems remembering how to use it!?!?!]
Cheers n thanks for an awesome editor!
Rupert
I'm taking a fresh look at TM and using it 60/40 with BBEdit... one
of the things I'm missing is a "balance tags" or "balance blocks"
feature.
e.g. if I'm between two tags, I hit the key command I've assigned,
cmd-opt-B, and everything between the two current HTML tags gets
selected. If I press it again, everything within the parent tag gets
selected, and so on. Is this something hidden in one of the TM
bundles? I really miss this whenever I move over to TM.
Similarly, I like being able to double click on opening braces,
parens, brackets, and selecting their contents. I know there's the
code collapsing, but it's different and doesn't seem so universally
applicable. e.g. object literals in Javascript aren't collapsable in
TM. In BBedit they're both collapsable and the bracket-double-
clicking works.
Any suggestions?
Hi all,
Is there a way in text mate to highlight a number of lines in Ruby code and
then say "Comment/Un-comment", after which Textmate would apply the leading
"#" comment before each of the lines?
Tks in advance
Greg
TextMate installs a new 'mate' command that can be used to open files
and directories from the command line. I don't recall if it installs
the command automatically, or if you need to do something special to
invoke it, sorry.
Folding can be tricky, as it matches both open/close folding
characters for the language you're currently using, and the indent
level must be correct as well. Plus, of course, they need to balance
correctly.
Not sure about the beeps, I only recall TextMate beeping during a
search, if it's found the last occurance and I ask it to find the
next one (which there isn't one).
Hope this helps,
- Dave
Hi,
I am trying to come up with a solution and thought that some of the
brilliant members of the list would have some ideas/suggestions.
I work in an environment where 3-5 people edit files for multiple
sites that are in the webserver of a shared server (currently accessed
thru smb). most of the edits are html, and I don't want to "burden"
them with checkin/checkout/etc etc
However, I am setting up new development box (ubuntu) and want to use
svn/trac/etc.
I already have (and use) tm project files for each "site" and I keep
them in the parent directory of htdocs on the share.
can the project file have all the svn project info and handle things
on open/save?
thanks
--
dc
-----
David Clark
Database Developer
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
Hi,
Would it be possible to add support for correctly syntax highlighting
code in markdown blog posts?
I have the iG:Syntax Hiliter plugin <http://blog.igeek.info/wp-
plugins/igsyntax-hiliter/> which highlights the code when viewed
online, but it would be nice to have the code highlighted in
TextMate. The syntax for this plugin is ....
[perl]
# perl code here
[/perl]
[ruby]
# ruby code here
[/ruby]
etc.
What would be the best way to do this?
- Luke.
I've just noticed that template for XHTML/1.1 has been changed to include
application/xhtml+xml content type in <meta> element.
This is completly misguided as <meta> is there only for
backwards-compatibility non-XHTML user-agents -- that is only those which
*do not* support application/xhtml+xml.
From W3C XHTML FAQ:
"Note that a meta http-equiv statement will not be recognized by XML
processors, and authors SHOULD NOT include such a statement in an XHTML
document served as 'application/xml' (and 'application/xhtml+xml' as well
for that matter)."
Please change it back to text/html or remove <meta> element completly.
--
regards, porneL
hello
With a a latex file the commands of textmate : create a html file and
creta a css file don't work
tm_dialog_v5: invalid option -- a
tm_dialog r6021 (2006-11-16)
Usage: tm_dialog [-cmqp] nib_file
Usage: tm_dialog [-p] -u
Options:
-c, --center Center the window on screen.
-d, --defaults <plist> Register initial values for user defaults.
-m, --modal Show window as modal.
-q, --quiet Do not write result to stdout.
-p, --parameters <plist> Provide parameters as a plist.
-u, --menu Treat parameters as a menu structure.
tm_dialog: you have updated the Dialog plug-in to v7 but the
tm_dialog tool is still at v5
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
dialog.rb:53:in `initialize': No such dialog ()
(TextMate::WindowNotFound)
} for command: /Applications/TextMate.app/Contents/SharedSupport/
Support/bin/tm_dialog -a -c -p \<\?xml\ version\=\"1.0\"\ encoding\=
\"UTF-8\"\?\>'
'\<\!DOCTYPE\ plist\ PUBLIC\ \"-//Apple\ Computer//DTD\ PLIST\ 1.0//EN
\"\ \"http\://www.apple.com/DTDs/PropertyList-1.0.dtd\"\>'
'\<plist\ version\=\"1.0\"\>'
'\<dict\>'
'\ \<key\>details\</key\>'
'\ \<string\>\</string\>'
'\ \<key\>isIndeterminate\</key\>'
'\ \<true/\>'
'\ \<key\>summary\</key\>'
'\ \<string\>Creating\ HTML\ version\ of\ selection…\</string\>'
'\ \<key\>title\</key\>'
'\ \<string\>Progress\</string\>'
'\</dict\>'
'\</plist\>'
' ProgressDialog.nib from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/dialog.rb:26:in `new'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
dialog.rb:26:in `dialog'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:40:in `call_with_progress'
from /tmp/temp_textmate.h1501H:5
and with create a css
/Users/ego/Library/Application Support/TextMate/Bundles/
TextMate.tmbundle/Support/lib/doctohtml.rb:47:in `require': No such
file to load -- /Applications/TextMate.app/Contents/SharedSupport/
Support/lib/plist (LoadError)
from /Users/ego/Library/Application Support/TextMate/Bundles/
TextMate.tmbundle/Support/lib/doctohtml.rb:47:in
`generate_stylesheet_from_theme'
from /tmp/temp_textmate.hIcEvZ:3
Alain
Hi all, I just downloaded the update to TextMate and my `new environment
based on current word' seems to have been broken: command { gives
/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/lib/config_helper.rb:1:in
/bin/bash: -c: line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 4: syntax error: unexpected end of filerequire'
from /tmp/temp_textmate.xBSaAH:4
It worked before. The new command code is:
#!/usr/bin/env ruby
SUPPORT = ENV['TM_BUNDLE_SUPPORT']
require ENV['TM_SUPPORT_PATH'] + '/lib/dialog'
require SUPPORT + '/lib/config_helper.rb'
@plist = Config.load
shortcuts = @plist['environments']
lshortcuts = @plist['labeled_environments']
if ENV['TM_SCOPE'].match('beamer') then
shortcuts.update(@plist['environments_beamer'])
lshortcuts.update(@plist['labeled_environments_beamer'])
end
name = STDIN.read
cmd = nil
if name == "" then
arr = ["custom…",nil] + (shortcuts.keys+lshortcuts.keys).sort
ind = Dialog.menu(arr)
if ind.nil? || ind == 0 then
name = ""
else
name = arr[ind]
end
end
for key in shortcuts.keys do
if shortcuts[key]['triggers'].index(name) then
cmd = key
setting = :no_label
dict = shortcuts
end
end
for key in lshortcuts.keys do
if lshortcuts[key]['triggers'].index(name) then
cmd = key
setting = :label
dict = lshortcuts
end
end
if !cmd.nil? then
print "\\begin{#{cmd}}"
print "\n" if setting == :no_label
print dict[cmd]["content"] || "\t$0"
print "\n\\end{#{cmd}}"
elsif name == ""
print "\\begin{${1:env}}\n\t$0\n\\end{${1:env}}"
else
print "\\begin{#{name}}\n\t$0\n\\end{#{name}}"
end
Thanks,
Anand Patil
Hi
I have changed
\s+
by
\s*
in the (L)anguage grammar for to C recognize also "name(args)" and
not only "name (args)" as function prototype in C.
I did easily the change in the C bundle, but my question es:
is it the best way of changing an standard bundle?
if that bundle is updated in the future by the TM developers, will
it be updated in my system?
Thanks
On Feb 27, 2007, at 9:14 AM, Allan Odgaard wrote:
> Could you btw make a case for the new Ruby syntax? I never figured
> out what problem it was supposed to solve.
The default Ruby syntax doesn't scope enough stuff.
There are very basic things that are completely missing like
method calls, operators and lambda variables.
My Ruby Experimental adds these basic things and a few other niceties
like leading space and core library method names and better
punctuation support.
The advantage is partly for the ability to better theme Ruby files,
which many people like myself are looking at all day every day.
Looking at mostly white on black text all day is enough to make you
go mad.
Another advantage is in using the Select Scope command to better and
more quickly select the current relevant scope.
When you don't know the language as well as you'd like, having the
core library methods colored slightly differently can really help you
to quickly notice any misspellings and such.
So, to sum up:
finish scoping the basic syntax of the language
different kinds of operators, methods, lambda variables, basic
punctuation like the => thing, etc…
core methods
Improved text interaction with select scope
improved readability with leading space scopes
improved awesomeness with the minimization of unscoped generic text
But, that's not really the point.
The point is that a syntax should scope as much as possible, not as
little as necessary.
Then it's up to each person to choose how you use those scopes.
Just take a bit of a peek for yourselves internet people!
Would you rather spend all day looking at this:
http://flickr.com/photo_zoom.gne?
id=404629435&context=photostream&size=o
or this?
http://flickr.com/photo_zoom.gne?
id=404629540&context=photostream&size=o
(if you hate that theme, just pretend you love it instead)
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Yep, Allan,
that did it.
sorry for reading only parts...
Thanks,
Claus
On 5-Mar-07, at 1:00 PM, textmate-request(a)lists.macromates.com wrote:
> From: Allan Odgaard <throw-away-1(a)macromates.com>
>
>
> Please see http://macromates.com/textmate/manual/
> bundles#setting_lc_ctype
Haris,
unfortunately, it still doesn't work for me to install the R bundle.
Here are the logs I get:
svn co http://macromates.com/svn/Bundles/trunk/Bundles/R.tmbundle/
A R.tmbundle/Commands
A R.tmbundle/Commands/Vector.tmCommand
A R.tmbundle/Commands/Show in R help.tmCommand
A R.tmbundle/Commands/Command Usage.tmCommand
A R.tmbundle/Commands/Wrap Selection in Function Call.tmCommand
subversion/libsvn_subr/utf.c:466: (apr_err=22)
svn: Can't convert string from 'UTF-8' to native encoding:
subversion/libsvn_subr/utf.c:464: (apr_err=22)
svn: R.tmbundle/Commands/Plots?\226?\128?\166.tmCommand
I don't really know what this could mean... but I'd appreciate any help!
Thanks,
Claus
On 4-Mar-07, at 10:04 PM, textmate-request(a)lists.macromates.com wrote:
> I added a new syntax file for Rd documentation, and forgot to also
> commit the info.plist file. Perhaps that was the problem? I just
> committed it, so try to svn up and tell me if you still have
> problems with it.
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
Is there some way to make TextMate not open documents that were last
open? For some reason - when editing files over FTP especially - it
likes to re-open a bunch of old documents, so I have to apple-W a
bunch of documents before apple-Q'ing.
Any way to do this?
--
Wells Oliver
wells.oliver(a)gmail.com
I'm getting the following stack trace when I select the 'Install Plugin'
command in the Rails bundle:
/Users/scott/Library/Application Support/TextMate/Pristine
Copy/Bundles/Rails.tmbundle/Support/lib/rails/text_mate.rb:69:in
`method_missing': undefined method `filepath' for TextMate:Module
(NoMethodError) from /Users/scott/Library/Application
Support/TextMate/Pristine
Copy/Bundles/Rails.tmbundle/Support/lib/rails/rails_path.rb:43:in
`initialize' from /Users/scott/Library/Application Support/TextMate/Pristine
Copy/Bundles/Rails.tmbundle/Support/bin/list_plugins.rb:25:in `new' from
/Users/scott/Library/Application Support/TextMate/Pristine
Copy/Bundles/Rails.tmbundle/Support/bin/list_plugins.rb:25
I'm using 'cuting edge' Textmate 1.5.4 (1360). I've attempted this with both
the distributed Rails bundle, and the version in svn (via the GetBundle
bundle).
I'm running ruby version 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.1],
installed via mac ports. I'm running Rails 1.2.2.
My apologies if this is already answered in the mailing lists; I couldn't
find any mention of this in the march or february archies, and a few
different google searches involving 'filepath textmate' don't bring back
anything interesting.
Many thanks for your help.
-Scott