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