My workplace has standardized (a long time ago) on CVS for version
control. I'm used to using Subverison with svnX and a bit of command
line tomfoolery and haven't used CVS very much.
After much searching and demoing of applications I have come to the
conclusion that all of the graphical CVS clients for OS X out there
either a) are ancient, or b) are written in Java and are slow and
resource-hungry.
I've noticed that TextMate has CVS support, so I'm wondering if
anyone here has any tips on using the CVS plugin?
Neil
---
hushBOOM design
Web design, development & hosting -- Writing & Editing
http://www.hushboom.com/
In Ruby mode, I'd been using cmd-R to run my trivial little scripts,
but recently I came back to them and cmd-R no longer works. It
simply pops up an HTML window that displays the shell error message,
'/usr/local/bin/ruby: no such file or directory.' Running scripts
directly from Terminal still works, and my Ruby is in fact in /usr/
local/bin, so I'm basically stumped. What did I unwittingly change?
Thanks,
--p.
I've bough TextMate now after using the trial version - and the short
keys when writing rhtml or plain ruby don't work any more. I can't
get <%= %> by pressing ^Z or anything like that.
Down at the bottom I've selected HTML (Rails), Ruby on Rails, Ruby,
and even just plain HTML, but it don't work with any one of them. I
suppose that HTML (Rails) is the one I want.
Any ideas?
Mikael
Thanks. You're a tad over my head here, but I looked in the
application contents and a couple of files that might be what you're
speaking of, but I don't really have Ruby knowledge. I'm just using
textmate to do work in Tex and R, mostly.
Anyway, in Contents/ShardSupport/Support/bin, there's a file called
LatexLabelCompletion.rb. Perhaps this is it?
My TeX install is at /us/local/gwTeX/bin/power-pc-current/. It's a
fairly standard installation, in that I haven't made any modifications
to the MacTeX installation, so it's pretty as-is.
-Nathan
>I believe that the ruby script that fetches the path to your LaTeX tools is:
$TM_SUPPORT_PATH/Support/lib/LaTeXUtils.rb
If you look at this script, it has a function for fetching the location of the
LaTeX binaries called `tex_path`, which tries several different ways of getting
>to your TeX install, and should usually work. I'm not sure why you'd
be getting
>this error, as the script should only try to use kpswitch once it has found it
in the `tex_path` function. That is, the `tex_path` function explicitly tests
for the availability of kpswitch, so if it's not there, it shouldn't be getting
used later on.
>Maybe you can share some more details about your install.
>I can't really offer too much advice, because I have pretty much nothing to do
with the TeX bundle. Hopefully Haris will come back from wherever he's been
hiding, or someone else will step in with a solution.
Jacob Rus,
Harvard College
--
----------
Nathan A. Paxton
Ph.D. Candidate
Dept. of Government, Harvard University
Resident Tutor
John Winthrop House, Harvard University
napaxton(a)fas.harvard.edu
http://www.fas.harvard.edu/~napaxton
=======================================================================================================
When you have to stay eight years away from California, you live in a
perpetual state of homesickness.
- Ronald Reagan
The most courageous act is still to think for yourself. Aloud.
-Coco Chanel
=======================================================================================================
I keep a bunch of markdown-formatted text files on my iDisk. I use
folding extensively in them, like this:
Some words{
* Text that is folded.
}
To the best of my knowledge, curly braces are the only way to fold in Markdown.
Sometimes I've been opening a file and seeing that the folding goes
from the top brace to some random point *inside* the folded text,
instead of to the closing brace or anything that could possibly be
construed as a folding marker.
I'm pretty sure that this is because when I create the file with one
TextMate on my iMac, edit it while away on my Macbook, and then open
up the changed file again on my iMac later (all the syncing and such
has happened in the meantime), somehow the metadata hasn't come along
with it. So when I open the file, I have the data on one but the
saved folding info for the old version, still. So the top brace folds
to the line number of where the closing brace *used to be*.
Now, the way I use my iDisk (and the whole reason why I use it at all
instead of Strongspace) is that it keeps a local copy on both my
Macbook and my iMac, as well as on Apple's servers. So to TextMate,
my iDisk probably looks local, and looks like it supports the extended
attributes, but maybe that stuff is lost in transit through the
network iDIsk. Either a ._something file is being skipped, or
something is causing extended attributes to be lost.
Is anyone else familiar with this kind of folding weirdness? Can any
one think of a solution besides turning extended attributes off? (For
example, if it is indeed that extended attributes are being lost, is
there a way to just force TextMate to always use ._something files?
Presumably, this would sync fine.)
Thanks,
j
I had the same problem, but resolved it by deleting the
~/Library/Application Support/TextMate/Support directory (without
trashing any installed bundles or the application itself, Rev 1349)
> Blogging worked with no modifications, so I would toss your TM, toss
> your Application Support/TextMate folders in both ~/Library and /
> Library (or save to desktop) and try again.
>Also make sure you Check For Updates in Prefs and get the cutting
> edge version
--
Mark James Adams
Drosophila Genetic Resource Center
Kyoto Institute of Technology
<http://www.dgrc.kit.ac.jp>
Hi there all,
I'm using TM 1.5.4, OS X 10.4.8 and I am typing up a LaTeX document. When I
go to insert a label or reference, I type "\ref{}" and then hit option-esc
to bring up the list of labels for refs and figures. I can select one of
the items that pops up, but then TM inserts inside the brackets:
sh: line 1: /usr/local/teTeX/bin/i386-apple-darwin8.6.1/kpsewhich: No such
file or directory
fig:BeliefReX
So the figure label is there, but so is an error from the lookup procedure.
I know that I don't have this directory because that's not where
i-Installer/MacTeX puts an installation anymore. What's causing the error
message, and how do I get rid of it?
Thanks.
--
----------
Nathan A. Paxton
Ph.D. Candidate
Dept. of Government, Harvard University
Resident Tutor
John Winthrop House, Harvard University
napaxton(a)fas.harvard.edu
http://www.fas.harvard.edu/~napaxton<http://www.fas.harvard.edu/%7Enapaxton>
=======================================================================================================
When you have to stay eight years away from California, you live in a
perpetual state of homesickness.
- Ronald Reagan
The most courageous act is still to think for yourself. Aloud.
-Coco Chanel
=======================================================================================================
--
----------
Nathan A. Paxton
Ph.D. Candidate
Dept. of Government, Harvard University
Resident Tutor
John Winthrop House, Harvard University
napaxton(a)fas.harvard.edu
http://www.fas.harvard.edu/~napaxton
=======================================================================================================
When you have to stay eight years away from California, you live in a
perpetual state of homesickness.
- Ronald Reagan
The most courageous act is still to think for yourself. Aloud.
-Coco Chanel
=======================================================================================================
wondering whether I'm misunderstanding the script Generate References
from the wonderful Markdown2Book.
my problem of building markdown.references while using the scripts
that came with this nice tool is maybe best described with the sample
I found here:
http://lists.macromates.com/pipermail/textmate/2006-February/008160.html
In my idea I could just:
- download this sample called `manual`
- start up a new project
- put all files from the folder `manual` in it
and start writing and it would create a reference for pages I would
add. For example adding a page:
040_my_test
would create a markdown.reference if I start referring to this page
like [see][myTest] and run the script `Generate`.
Or would I need to put: [myTest]: 040_my_test.html
in the markdown.reference file myself?
If I do it that way it works but I do need to add the `040_` in front?
Is this the correct way to do this?
Or should the `Generate` script choose the titles of a page as a
reference itself.
tia,
Gert
I am having a problem with the HTML bundle.
When I use the tag triggers to insert an element with a self closing tag (like <input />) or drag in an image (<img />) it does not put it in the XHTML format, even though the doctype is XHTML strict.
In the bundle editor (using the <input> example) it says:
<input type="${1:text/submit/hidden/button}" name="${2:some_name}" value="$3"${4: id="${5:$2}"}${TM_XHTML}>
Now I assume that this: ${TM_XHTML} is some kind of variable which decides whether to put the XHTML bit it. But it doesn't seem to work.
Any help would be much appreciated.
Hi there,
Taking a dummy example string like:
KIBRA
C/T
T/T
C/C
Questions
1/ Using the keyboard, how do I make a zero-width column selection at the
last position for each of the bottom three lines? The manual suggests that
holding option-shift while moving (arrow) from the top to the bottom lines
should do it, but this doesn't create the right selection for me, and when I
push option, the selection is not converted to a zero-width column cursor
(nothing happens).
2. Can I type at the end of each line (given that the lines end on different
columns)?
_______________
''The people shall not be deprived or abridged of their right to speak, to
write, or to publish their sentiments; and the freedom of the press, as one
of the great bulwarks of liberty, shall be inviolable.''
James Madison
Annals of Congress 434 (1789).
Hello!
My TextMate has been malfunctioning lately and I've been unable to repair it.
I've tried reinstallning and purging all settings I could find, but no
difference.
Here's what doesn't work:
* Creating a new file in the project drawer (nothing happens)
* All of the popup windows (for HTML validation etc) are totally blank
Any ideas on how to troubleshoot this?
Thankful for any help,
--
Christoffer Sawicki
http://vemod.net/
If anybody is used to the // {{ and // }} folding in vim and wants the same
in TextMate you can use the following language config to do similar things
with Ruby.
#begin ten
=begin
This is inline documentation
=end
def ten
10
end
#end
The following will create a fold between #begin and #end as well as add a
fold for =begin/=end comments.
Add the following two lines to your Ruby language file in the
foldingStartMarker section . . .
|begin
|=begin # line 1
|[#]begin # line 2
|for|while|until
and these two to your foldingEndMarker section . . .
| ^ \s*+ [}\]] \s*+ ([#].*)? $
| [#] .*? \(end\) \s*+ $ # Sune's special marker
|^=end$ # line 1
|[#]end$ # line 2
)';
Hope this is helpful.
'njoy,
Mark
--
Cropp's Law:
The amount of work done varies inversly with the time spent in the
office.
Hello everybody.
I added some functionality to my cocoa-completion command. It will now
show context based completion suggestions when the type of the reciever
can be deduced. If it can not find a method based on class, then it will
revert back to the old behaviour giving you all possible candidates. The
command currently only gives context sensitive information for AppKit and
Foundation.
Here are the two cases that give context-sensitive suggestions: (^ is the
caret) hit alt-Esc as usual.
[NSString someClassMethod^]
[[object pathWithComponents:myArray]
instanceAndClassMethodsThatWorksOnAString^]
Due to a bug (that crashes TextMate) that I have not managed to track down
I have restricted the functionality, so that one always have to type
atleast one char before completions are available.
The command uses methods from rubycocoa
(http://rubycocoa.sourceforge.net/), so be certain to have that installed
and that it can be reached from the standard ruby interpreter (or change
the she-bang line in the command).
If you like this version of the completion command, then please tell me
and I will switch the one in svn to this.
Joachim Mårtensson
I have recently switched to a mac. And I tried re-installing ruby from the
default 1.8.2. To 1.8.4. I followed the install instructions from
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger.
Everything from those instructions seems to install fine. But now textmate
doesn't know where ruby is..
it's weird.. if I run ruby from the command line or irb it works fine.. But
textmate compains about not finding it. (when using the Subversion bundle).
Textmate says it's searching all these different directories (one happens to
actally have ruby in it). but Textmat still can';t find it..
on other thing I noticed.. is that if i do a >>whereis ruby<< it doesnt show
anything.. I'm thinking that's the problem but how do I fix it..
any ideas?
thanks all.
I've recently installed the CTags bundle and can't get it work
correctly. I first installed the bundle, downloaded, built, and
installed Exuberant CTags (into /usr/local/bin). When I ask the
bundle to update all tags, I get a "ctags timed out" message and it
fails to find any tags (i.e., look up of a tag fails).
Any suggestions?
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
Hello all
I am new to Textmate and this list but so far really impressed by the
program and the people posting here. My background is in molecular
biology and I will mostly use TM for text (MultiMarkdown is appealing
to me) not so much code.
Although I am slowly making my way through the manual I have not found
anything that would allow me to compare two textfiles and highlight
changes between them. "Diff" is not what I am loooking for because it
is based on lines. Writing manuscripts I don't use carriage returns so
a single difference in a paragraph will highlight the whole thing not
just the difference only.
FileMerge (in the Apple developer tools) is much closer and also
visually intuitive, but getting long in the teeth and having
difficulties with UTF-8.
Is there a Textmate bundle that will do this kind of comparison for me?
My sincere apologies if this question has been answered already,
Christoph
Hi all,
I've only recently started to use TextMate, and I'm doing what you
all did in your first week... implementing the Emacs commands I can't
live without :-)
I noticed that there is no Emacs kill-sentence support, so I
implemented it:-
http://fommil.me.uk/Emacs%20Sentence.zip
Including the commands to cut from the cursor to the end of the
current sentence, and navigate back/forward sentences.
Emacs defines a sentence (with one space after the fullstop) as
[.?!][]\"')]*\\($\\|\t\\| \\)[ \t\n]*
but I edited that to use extended regexes and count colons. Emacs
also cheats and uses a bunch of other special tests for paragraphs
without a fullstop etc, so I included that too
[.?!:;][\]"')]*\s+?|$\s*?$|\Z
which is unfortunately hard-coded into all the macros as I didn't
know how to create a bundle-wide constant.
There is a little bug which means if you navigate back on the first
sentence in the first line of a file, you will be off by one. This is
such a small bug that I can't be bothered to fix it, although I'm
open to suggestions for fixes.
I bound navigation to alt-left/right (as I use ctrl-left/right for
word navigation) and kill-sentence as alt-k (same as Emacs). shift-
alt-right will work as expected, but I do not know what to do about
shift-alt-left; I'd like to hear any hints on how to get that to work.
cheers,
Sam
--
http://fommil.me.uk
Yes! Thats it...but what about the other Tags? Like Code, Quote, Img
and so on? I think you really should add this feature to your bundle!
I like the thing that the Bundle takes the text for the URL from the
pasteboard! Good Job.
> BTW, you better follow Jacobs' advice about "Edit in TextMate" than
> "paste the text back".
I know that i can do it this way, but as i mentioned earlier i'm
working as a writer for a board so i have to write some quite big
posts BEFORE i upload them. You know i have to do some research and
so on. I already know that Edit in TextMate is a really good feature
- believe me. But sometimes i have to write in TextMate, save it on
harddisk and then just paste it back in the browser. Writing these
Posts with TextMate is just more fun, than this little stupid editor
which comes with the Browser Software like vBulletin and phpBB.
Is it possible for Textmate to show in the OS X services menu listing?
Currently BBEdit, TextEdit, and TextWrangler show. Each of these have
two options:
New Window with Selection
Open File
TextMate is not listed. How can I add TextMate to the listing? Thanks
Hello,
just try to re-indent the following snippet with textmate and wonder
about it. ;)
Is there a way to fix the indentation? In which bundle should it be
fixed? HTML oder PHP?
<html>
<header>
<body>
<?php
$array['foo'] = array(
'foo' => 'bar',
'bar' => 'foo' );
$array['bar'] = array(
'foo' => 'bar',
'bar' => 'foo'
);
?>
<?php if (test == "") { ?>
<ul>
<li>foo</li>
<li>bar</li>
</ul>
<?php } else { ?>
<ul>
<li>bar</li>
<li>foo</li>
</ul>
<?php } ?>
</body>
</header>
</html>
Regards, Wolfgang
Folks,
Is there such a beast? I'm a long-time Emacs user who's happily
switched to TM once I got a Mac.
But I miss dired...Is anyone working on or thinking about a directory
viewing & file manipulation bundle? Oftentimes copying Emacs stuff in
TM doesn't make any sense, but in this case I think it might.
(Forgive me if this has been asked before; I admit to lazily not
searching archives before posting this!)
Cheers,
Kendall Clark
Hi,
Just installed textmate and was trying to use svn bundle.
I got following error:
Couldn't find svn
If you have installed svn, then you need to either update your PATH
or set the TM_SVN shell variable (e.g. in Preferences / Advanced)
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
======================================================
I have checked I have /usr/local/bin in my PATH
and I have also set TM_SVN (just in case) as followed:
$ set | grep PATH
PATH=/usr/local/bin:/usr/local/sbin:/sw/bin:/sw/sbin:/usr/local/bin:/
usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/
local/pgsql/bin:/usr/local/pgsql/bin
$ set | grep TM_SVN
TM_SVN=/usr/local/bin
$
$ which svn
/usr/local/bin/svn
What am I missing ?
Thanks
Jean-Michel
Thanks to all.
Just set TM_SVN using the suggested method and it worked right then,
i.e. did not have to reload.
Jean-Michel
> On Jan 14, 2007, at 10:39 PM, jeanpierre(a)gmail.com wrote:
>
>> alternatively, you could set the textmate specific environment
>> variable TM_SVN to point to your subversion. since textmate
>> doesn't read your shell you will need to define it in
>> environment.plist or you can set this directly in textmate:
>> Preferences > Advanced > Shell Variables.
>
> Setting TM_SVN via the Preferences > Advanced > Shell Variables
> route is definitely the way to go.
>
> Haris
>