HI,
i'm running into a little problem with leopard.
The last update finds my "time machine" backups and tries to move /
update that one.
11/18/07 10:36:08 PM [0x0-0x2dd2dd].com.macromates.textmate[5399] mv:
rename /Volumes/TimeMachine/Backups.backupdb/username/
2007-08-30-201019/Macintosh HD/Applications/TextMate.app to /Volumes/
TimeMachine/Backups.backupdb/username/2007-08-30-201019/Macintosh HD/
Applications/TextMate.old.app: Operation not permitted
Luckily it fails .. but is it an apple issue or is it textmate ?
Regards J.
I'm trying to build a complicated macro to add a footnote to text selected in
a document. There are two values that I need to maintain while the macro
runs, so that those values can be inserted into the proper places within the
links that the macro creates. The values are CURRENT_FN_NUMBER, a unique id
I create with the shell date command; and CURRENT_FN_TITLE, which is the
value of $TM_SELECTED_TEXT when the macro launches.
I'd like to us those values to insert code into the document, e.g.
At the beginning of the current paragraph:
Replace selected text with: #fn{$CURRENT_FN_NUMBER} $CURRENT_FN_TITLE
At bottom of document, just before "<!--<next footnote -->":
#{CURRENT_FN_NUMBER} $CURRENT_FN_TITLE
There's more to it than that, but you get the idea. The macro does a lot of
jumping around within the document, setting and removing bookmarks as it
goes.
I've set CURRENT_FN_NUMBER and CURRENT_FN_TITLE as project environmental
variables, but I can't figure out how to set values for those variables when
the macro executes.
I'm (obviously) new at this game; I'd appreciate help.
Thanks.
Richard
--
View this message in context: http://www.nabble.com/Set-temporary-variables-within-macro-tf4837937.html#a…
Sent from the textmate users mailing list archive at Nabble.com.
I'm trying to build a complicated macro to add a footnote to text selected in
a document. There are two values that I need to maintain while the macro
runs, so that those values can be inserted into the proper places within the
links that the macro creates. The values are CURRENT_FN_NUMBER, a unique id
I create with the shell date command; and CURRENT_FN_TITLE, which is the
value of $TM_SELECTED_TEXT when the macro launches.
I'd like to us those values to insert code into the document, e.g.
* At the beginning of the current paragraph: <a
name="{$CURRENT_FN_NUMBER}"></a>
* Replace selected text with: <a
href="#fn{$CURRENT_FN_NUMBER}">$CURRENT_FN_TITLE</a>
* At bottom of document, just before "<!--<next footnote -->": <a
name="fn{$CURRENT_FN_NUMBER}"
href="#{$CURRENT_FN_NUMBER}">$CURRENT_FN_TITLE</a>
There's more to it than that (setting div and span tags, adding class
attributes, etc.), but you get the idea. The macro does a lot of jumping
around within the document, setting and removing bookmarks as it goes.
I've created CURRENT_FN_NUMBER and CURRENT_FN_TITLE as project environmental
variables, but I can't figure out how to set values for those variables when
the macro executes.
I'm (obviously) new at this game; I'd appreciate help.
Thanks.
Richard
--
View this message in context: http://www.nabble.com/Set-temporary-variables-within-macro-tf4838075.html#a…
Sent from the textmate users mailing list archive at Nabble.com.
I updated to the latest bundle, and I noticed that the texMate.py
script has problems if included files aren't in the same directory as
the main file. Here is my quick and dirty patch, which should be
factored out into a separate function before it gets committed.
I can do this in a few weeks if there's interest.
^L
Index: texMate.py
===================================================================
--- texMate.py (revision 8473)
+++ texMate.py (working copy)
@@ -1,6 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
+# Fixes by Louis Theran to respect TEXINPUTS
+
# This is a rewrite of latexErrWarn.py
# Goals:
# 1. Modularize the processing of a latex run to better capture
and parse errors
@@ -191,11 +193,14 @@
"""Find all packages included by the master file.
or any file included from the master. We should not have to go
more than one level deep for preamble stuff.
+
+ FIXUP --- Use kpsewhich to find files
"""
try:
- texString = open(fileName).read()
+ realfn = os.popen('kpsewhich -progname=%s %s' % ('pdflatex',
fileName)).read().strip()
+ texString = open(realfn).read()
except:
- print '<p class="error">Error: Could not open %s to check for
packages</p>' % fileName
+ print '<p class="error">Error: Could not open %s to check for
packages</p>' % realfn
print '<p class="error">This is most likely a problem with
TM_LATEX_MASTER</p>'
sys.exit(1)
incFiles = [x[3] for x in re.findall(r'((^|\n)[^%]*?)(\\input|\
\include)\{([\w /\.\-]+)\}',texString)]
@@ -204,7 +209,8 @@
if ifile.find('.tex') < 0:
ifile += '.tex'
try:
- myList += [x[3] for x in re.findall(r'((^|\n)[^%]*?)\
\usepackage(\[[\w, \-]+\])?\{([\w,\-]+)\}',open(ifile).read()) ]
+ realif = os.popen('kpsewhich -progname=%s %s' %
('pdflatex', fileName)).read().strip()
+ myList += [x[3] for x in re.findall(r'((^|\n)[^%]*?)\
\usepackage(\[[\w, \-]+\])?\{([\w,\-]+)\}',open(realif).read()) ]
except:
print '<p class="warning">Warning: Could not open %s to
check for packages</p>' % ifile
newList = []
Hello all,
I use TextMate to create PDFs with LaTeX. I've configured TextMate to
use pdflatex as the compile engine (TM_LATEX_COMPILER=pdflatex and the
default engine in the LaTeX preferences is pdflatex too). That works
fine.
Today I had to use for some reason the package epsfig and TextMate ran
everytime latex instead of pdflatex. Finally I forced the use of
pdflatex with the "%!TEX TS-program = pdflatex" directive in the tex
file.
Is there an explanation for that behaviour and maybe a solution for
that? (I found 3 postings here which are somehow related to that
problem, but because I'm not an expert, I didn't get the clue, which
might be in there.)
Thanks for your attention
Juergen
--
Juergen Arndt
So I'm working on writing up my (mathematical logic) thesis and I've
been using textmate to do it. Unfortunately I've ran into some
serious usability issues with the latex bundle in textmate and
unsurprisingly have been wasting time trying to fix them. I figured
I would post the issues to this list along with some of the hacks
that seem to help for me and see if people who know more about the
textmate stuff can help make this bundle more useable for intense
mathematics.
First of all I'm attaching a simple patch for PyTeXdoc.py so it
queries kpsewhich to look for included/inputed files if it fails to
find them. Since I keep some general purpose includes in my tex
directory this makes a difference.
Note that this is patched from the tree updated earlier today.
Now for some harder issues that I can only gesture at solving.
Useability Issues:
1) Typing commands inside $$ causes wacky highlighting flip-flops.
Often I will be editing an existing tex file and need to add
something like $\Gamma_{\alpha+1}(\sigma)\concat\tau$. This causes
issues since you have to pass through $$ $\$, $\Gamma_{\}$ and $
\Gamma_{\alpha+1}(\sigma)\concat\$ on the way each of which flips the
syntax highlighting for the ENTIRE rest of the document. Not only is
this annoying it causes unacceptable slowdowns as the rest of the doc
is rehighlighted.
My personal collection of hacks to deal with this problem is as
follows (some of these are old so i apologize if it was fixed in the
bundle and I missed it):
a) Elimate the $$ $$ notation for display math. It is considered
bad form to use the old $$ $$ approach rather than the new \[ \]
notation. I realize doing something like this would be controversial
in the default language grammar but I'd rather have the right way of
doing things be useable rather than correctly hightlighting the wrong
way. But maybe there is another way to deal with the issue.
b) Require $ to be escaped as {\$}. Once again not a good general
solution but for me this works since I rarely use a real dolsign.
Perhaps a better trick would be to require this weird special
escaping only when in math mode. Once again I'm puzzled about how to
do this correctly but as it stands it causes serious problems.
c) I used to have problems with $\Gamma_{\}$ letting the braces spill
over but it is either fixed now I or I changed something locally I
don't remember.
2) Typing { when the caret is before a slash causes smart typing
pairs to insert {\} instead of {} because it thinks we are trying to
escape the {. This can be fixed by changing the match for
constant.character.escape.tex to start with a positive backref of (?<=
\\) instead of just (\\). It seems weird to me that having a caret
in front of the string causes it to be grabbed but go figure.
3) Often I need to insert math inside an already written paragraph.
So I start with a line like
If $x$ is a blah then blah2
and need to fix it to
If $x$ is a blah and $math stuff$ then blah2
which one naturally does by simply putting the caret in front of the
t in then and starting to type. Unfortunately the smart typing pairs
for $ fail to activate when you are in front of a character. I have
no idea why this is (seems to work for {) but the best fix I could
come up with was a hack to define meta.in-front-of-char.latex and
create a snippet for this situation assigning it to $. If I knew how
to insert true smart typing pairs from a snippet (or command) a
general purpose solution that works could be found.
On the other hand probably anyone who knows textmate well enough will
see how to do this in an elegant fashion.
4) SPEED
This is a big one. Frequently I will type a long paragraph filled
with many many math commands and my powerbook G4 1Ghz will slow
enough to make typing difficult if I am inserting anything inside the
paragraph. If I actually hard wrap the lines this stops happening
but since textmate doesn't support hard wrapping well this isn't
really an option.
I noticed in the language definition there are many syntax elements
(like meta.function.embedded.java.latex) whose matches begin with
something like: (?:\s*)((\\)begin) ..... I can't figure out what
sense this makes at all. Why match the spaces if they can just
happen anywhere in the line? Maybe I am just missing something
obvious and I'm deluding myself but when I changed these all to (?:^
\s*)((\\)begin) .... everything seemed to keep working and things
seemed to speed up considerably. Then again maybe it was an
unrelated bundle update.
Still before I keep screwing with this I figured I would toss this
out there and see if it was a well known problem.
------------------
Sorry to describe the changes I made rather than giving a bunch of
patches but the normal bundle development model just won't work for
me. I change a bunch of stuff for my personal use (like some of the
hacks above) so I need to keep the ~/Library/Application Support/
Textmate directory for my own personal modifications. If someone
could tell me an easy way to produce a diff of the changes I've made
here with the actual bundle maybe I could be more helpful.
Anyway thanks to the author(s) of the latex bundle for all the work
they've put in so far. Hopefully this was helpful an not just
useless bitching.
Peter
When was creating a new file from template I got a dialog where I
could set the filename.
Then strange things happened ... and now I just get automatically
created a new file called untitled each time I want to create a new
file.
How can I enforce the dialog ?
(changing [Preferences >> General >> Untitled Documents] doesn't seem
to affect this.)
regards
--
Roberto Saccon
http://rsaccon.com
I just wrote my first TextMate custom command, for compiling erlang
source code and showing hyperlinked errors (if there are any) in a
HTML popup.
More information, download and screencast at:
http://www.rsaccon.com/2007/11/easy-erlang-compiling-with-textmate.html
As scripting language for the command I am using Erlang escript.
regards
--
Roberto Saccon
http://rsaccon.com
I am having trouble using the subversion bundle in textmate after my
upgrade to leopard. I did a clean install of leopard and TM, and
haven't added any bundles, just using the default configuration.
Here are the troubles I am seeing, is anyone else having this issue /
know how to fix it?
when I try to commit a file i get this error:
ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
Permission denied (publickey,password,keyboard-interactive).
svn: Commit failed (details follow):
svn: Connection closed unexpectedly
I have seen some stuff on ssh-askpass, but it looked like this was
supposed to pop up a window for me to type my password in? that didn't
happen...
when i try to "blame":
NoMethodError
reason: undefined method `+' for nil:NilClass
trace:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_blame.rb:49
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_blame.rb:43:in `each_line'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_blame.rb:43
when i try to "log":
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rexml/source.rb:226:in `pos': Illegal seek (Errno::ESPIPE) from /
System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rexml/source.rb:226:in `current_line' from /System/Library/Frameworks/
Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parseexception.rb:
44:in `line' from /System/Library/Frameworks/Ruby.framework/Versions/
1.8/usr/lib/ruby/1.8/rexml/parseexception.rb:28:in `to_s' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/escape.rb:
30:in `htmlize' from /Applications/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/svn_helper.rb:90:in
`handle_default_exceptions' from /Applications/TextMate.app/Contents/
SharedSupport/Bundles/Subversion.tmbundle/Support/format_log_xml.rb:171
REXML::ParseException
There are some things that work, like "status", "info", but it's
pretty much unusable if I can't get it to commit... Anyone have any
ideas?
-Josh
I have a very simple command
names=( $TM_SELECTED_TEXT )
for name in ${names[@]}
do
touch $TM_DIRECTORY/$name.php
done
basically you select a list of text
about
policies
hours
contact_us
and it generates a php page for each item in the current directory -
it does that well enough, what would be truly excellent (and I think
this is easy) is to gather all those pages into a scratch project - I
actually have a laundry list of things I'd like it to do (all likely
pretty easy IMHO) but I really don't want to seem greedy - I
appreciate the effort everyone on this list puts out on a daily basis..
saul - visualchutzpah.com
hi there
I am a TextMate user in a primarily Vim development shop writing php
and html. Vim does this thing where it adds a new line to the end of
any files it saves. Here is an example, foo.txt was made with Vim,
foo2.txt was made the TextMate.
Desktop jachin$ vi foo.txt
Desktop jachin$ mate foo2.txt
Desktop jachin$ hexdump foo.txt
0000000 66 6f 6f 0a
0000004
Desktop jachin$ hexdump foo2.txt
0000000 66 6f 6f
0000003
Where this cases a problem is with subversion. We are starting to see
a lot of svn diffs with:
No newline at end of file
Files are showing up as modified that, for all practical purposes, are not.
One solution would be to just have all the Vim developers to :set
noeol, but Vim is the standard text editor here and all other text
editors must conform.
I was hoping TextMate would have a preference setting under "Text
Editing" or "Advanced"->"Saving".
Also one more wrinkle, sometimes, even the "Vimers", do not want that
final line break (in the case of some html files), so a perfect
solution would allow us to set this behavior on a file type basis.
Is there a way to hook into the save command through a bundle?
Are there any other ideas any one has for a solution?
Thanks
-jachin
Hello all,
I use TextMate to create PDFs with LaTeX. I've configured TextMate to
use pdflatex as the compile engine (TM_LATEX_COMPILER=pdflatex and the
default engine in the LaTeX preferences is pdflatex too). That works
fine.
Today I had to use for some reason the package epsfig and TextMate ran
everytime latex instead of pdflatex. Finally I forced the use of
pdflatex with the "%!TEX TS-program = pdflatex" directive in the tex
file.
Is there an explanation for that behaviour and maybe a solution for
that? (I found 3 postings here which are somehow related to that
problem, but because I'm not an expert, I didn't get the clue, which
might be in there.)
Thanks for your attention
Juergen
--
Juergen Arndt
Hi all
I was recently working on a LaTeX project, when suddenly I got this
message at the start of the log window:
"There was a problem reading the preferences file, continuing with
defaults"
After it, I get one run with zero errors. I don't think the problem
lies in my tex-file, since it used to work fine before. I tried
repairing permissions and tried updating my bundles which was to no
avail. Anybody out there experiencing the same. I'm using the newest
build (1436) of Textmate and check out the whole trunk including all
bundles and support folders via svn to /Library/Application\ Support/
TextMate. I'm currently at the newest checkout 8446. I can change the
settings in my LaTeX preferences and they stick, so why can't the
typeset engine read my preferences?
Thanks for any help
Oliver
The comments defined via TM_COMMENT_START I use with 'command' /
but how do I comment/uncomment using the pattern defined in
TM_COMMENT_START_2 ? I tried all key combinations I could imagine and
googled, no luck.
regards
--
Roberto Saccon
http://rsaccon.com
I am having a strange problem with Typeset & View that makes no sense
to me. It works fine in simple documents with the same preamble, but
not on a longer one. The document typesets as it should, but the
focus does not change to Skim. I get the following error:
sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0:
`dvips QuantumCalculus.dvi -o QuantumCalculus.ps' sh: -c: line 0:
syntax error near unexpected token `(' sh: -c: line 0: `ps2pdf
QuantumCalculus.ps' sh: -c: line 0: syntax error near unexpected token
`(' sh: -c: line 0: `/Applications/Skim.app/Contents/Resources/
displayline 177 "QuantumCalculus.pdf" /Users/jenny/Desktop/Pending/
QuantumCalculus.tex'
A fatal error occured, log file is in QuantumCalculus.log
I have tried changing the viewer, but the error message is essentially
the same. The focus remains in TextMate, the typeset document is
correct, and there are no errors in the log file.
I created a new version of the same document by pasting in small
section after section to find the problem. It typeset perfectly each
time, all the way through to the end. The two files are identical and
one works, the other doesn't. Naturally, I began using the second,
but after a dozen or so uses of Typeset & View, it gave me the same
error message as above.
Thanks for the help,
Jenny
I cant work out the regex in the c bundle
but basically i need to be able to get function definitions that look
like this into the symbol list.
void test(int *a,
int b)
{
}
can anyone help ?
It seems like the mootools bundle wrongly scopes variables named the
same as methods in mootools' classes as methods.
Example:
http://pastie.textmate.org/private/nsry0oftvpsfftyul6lslw
(make sure you use a theme like Blackboard which highlights js)
As you can see the map variable is highlighted, and wrongly scoped
like support.class.array.js.mootools.
Unfortunately I'm still very new to TextMate language grammars and
not very confident with mootols, so I'm not sure I'm in a position to
file a patch. The way to fix this thought, I presume would be to look
for a leading '.'(dot) instead of word boundary for all class
methods. Something like:
match = '(?<=\.)(map|forEach|...)\b';
The mootools bundle is Joe Maller, is he still around here available
to fix?
Regards,
Peter Haza
Hi,
I just uploaded the new version 0.906
Download:
http://email.eva.mpg.de/~bibiko/downloads/textmate/TMTools.tmplugin.zip
Help:
http://email.eva.mpg.de/~bibiko/downloads/textmate/tmtoolshelp.html
or
"$TMTOOLS" help me
Changes:
added: show bundleMenu
#####
Regarding to the Ctrl+Esc issue:
For all those of you who don't want to edit a keybindings.dict or to
abandon to some 'global' Ctrl+Esc events,
now you can easily create a normal TM command with
"$TMTOOLS" show bundleMenu
bound to any key-combo;
input = none;
output = show tool tip
to invoke the gear menu. Of course, Ctrl+Esc doesn't work if this
combo is used by other applications.
If there is someone who really need the Ctrl+Esc combo to open the
gear menu regardless of other applications, I believe this should
work (if you have installed QuickSilver and TMTOOLS 0.906):
1)
write a bash script with the following content:
_____________________________
#!/bin/bash
~/Library/Application\ Support/TextMate/PlugIns/TMTools.tmplugin/
Contents/Resources/tm_tools show bundleMenu
_____________________________
Note: please verify the path to tm_tools!
2)
save it as - let's say -
~/TM_show_bundleMenu.sh
Note: be sure you set the "execute bit"!
3)
open QuickSilver Trigger pane
4)
go to 'Custom Triggers'
and add a new trigger by looking for the just created bash script
name "TM_show_bundleMenu" for an item; action = "Run [...]"; and set
the target to "dummy"
5)
assign to the just created trigger the hot-key Ctrl+Esc and for
activation 'On Press'; scope to "TextMate"
6)
close the QuickSilver window
7)
try the hot-key Ctrl+Esc in TM
I tried it out, and it works, even if I have Apple Remote running.
Cheers,
--Hans
Hi,
I don't know whether this was reported before.
The following Ruby Script has a misbehaviour (please consider [1] and
[2] as markers :):
puts "Here's 1 +[1] 1: #{ 1 +[2] 1}"
If the Caret is at position [1], Apple-R runs the program inside the
ruby interpreter. If the Caret is at position [2], the default Run-
command (Build in X-Code is used).
This is because #{...} is scoped as embedded Ruby source, which is
explicitely filtered for the Run-Command. I didn't patch it, as I
don't know which way to go (changing the scope or changing the scope
selector for the command). But I hope the bundle maintainer can sort
that out in a second :).
Greetings
Skade
I'm trying to define a scope for LaTeX subscript/superscript.
The language I have defined is as follows:
{ scopeName = 'text.tex.latex.guido';
fileTypes = ( 'tex' );
patterns = (
{ name = 'sscript.math.tex';
match = '(?<!\\)(?:_|\^)\{.*\}';
},
{ include = 'text.tex.latex'; },
{ include = 'text.tex.math'; },
);
}
The above language seems to work properly in LaTeX math and LaTeX
math environnments. However, the scope is not recognised in plain TeX
math, that is in cases like $X_{as}$ shift-ctrl-P does not show the
newly defined scope in the tooltip.
I have tried different includes to no avail.
All the best
Guido
--
Dr Guido Governatori
School of Information Technology and Electrical Engineering
The University of Queensland
Brisbane, Queensland, 4072, Australia
Phone: +61-(0)7-336 52907
Fax: +61-(0)7-336 54999
http://www.governatori.net/TextMatehttp://www.defeasible.org
Hi everyone,
This seems to be an ever-returning-problem and it finally happens to me…
I installed Leopard on my MBP and the Ctrl-Esc shortcut does not work. Is
there any voodoo which would solve this issue ?
Thanks in advance.
--
View this message in context: http://www.nabble.com/Ctrl-Esc-on-Leopard-tf4784439.html#a13687499
Sent from the textmate users mailing list archive at Nabble.com.
I've decided to stop fighting against the current, and move form cvs
to svn ;-) , so I'm trying to set up an svn server.
Leopard ships with svnserve and apache2 - which option should I take?
Has anyone managed to get a svn server running on Leopard yet?
R
When I invoke "Run Script (PyMate)" from the Python bundle, I get:
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in
`initialize': Permission denied -
/Users/darylspitzer/Programming/Altera/Perforce/miscellany/infrastructure/integration/integration_status.py
(Errno::EACCES) from
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in
`open' from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in
`initialize' from
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:24:in
`new' from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:24
This started happening yesterday, and then went away. Now it's back.
How do I make it go away for good?
I'm running 1.5.6 (1405).
hi there :)
if i do "mate project-dir" i can use mercurial pretty fine. but if i
do "mate framework project-dir" it says this:
abort: There is no Mercurial repository here (.hg not found)!
i've tried it having a file open and marking a directory or a file in
the tree but it doesn't matter.
does anybody know why this happens or how i can fix this?
regards,
oktay.
On 11/11/2007, at 11:00 PM, textmate-request(a)lists.macromates.com wrote:
>
> Granted svn can be a pain to set up, but is Mercurial generally
> accepted by the Open Source community? Right now, if someone wants to
> pass around a new Textmate bundle or Rails plugin, they point to an
> svn repo and the deal is done. I haven't looked into Mercurial too
> carefully, but if it's better and can be accessed by svn users
> transparently (riiiigggt :) then it could be a godsend.
>
> Any thoughts on that?
Heh,
There are a bunch of different version control systems out there
vying to the be the distributed version control system of choice. I
like DARCS and Monotone myself - there is more theory behind their
handling of the distribution/merging. Having said that, Mercurial has
a lot of momentum behind it at the moment - it is known as being fast
and easy to use.
The point above is correct though, if you want to make something
available to the unwashed masses, svn is the way to go. You have to
ask yourself if it is worth your time to set up svn, or if you're
happier using one of the other systems and telling the unwashed masses
they'll have to use it if they want your latest source...
Be well,
Will :-}
Hello,
I am working a lot with source code written using Emacs on Linux. The
prevailing convention is that tabs are presented as 8 spaces, but
indents are only 4 spaces. Indenting will insert spaces, and Emacs
seems to swap groups of 8 spaces for a tab.
If I use a tab size of 8 in Textmate, the source files display
correctly. Sadly, there is no way to tell Textmate to use an indent
size of 4.
It would be very useful is it was possible to tell TextMate to:
1. Draw tabs as 8 spaces
2. Use spaces when indenting
3. Intend with 4 spaces, not the 8 spaces from a tab
Is there any way to do this with TextMate at the moment?
I'm using TextMate 1.5.3 (1215)
--
Kind regards,
James Milne
I have the default main template "template_in.txt" and additionally
several License.txt templates. Based on a environment variable, I want
to concatenate the license with the main template, but I don't know
how
this is the default command to insert a template:
if [[ ! -f "$TM_NEW_FILE" ]]; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< template_in.txt > "$TM_NEW_FILE"
fi
I tried to to turn it into somethng like this:
if [[ ! -f "$TM_NEW_FILE" ]]; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< template_in.txt << License.txt > "$TM_NEW_FILE"
fi
unfortunately this doesn't work.
Anybody an idea how I can make this work ?
regards
--
Roberto Saccon
http://rsaccon.com
Hello,
Today I always receive the error message
Running bibtex on mt.tex
Traceback (most recent call last): File "/Applications/TextMate.app/
Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py",
line 443, in texStatus, isFatal, numErrs, numWarns =
run_bibtex(texfile=fileName) File "/Applications/TextMate.app/Contents/
SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py", line 67,
in run_bibtex return stat,fatal,err,warn UnboundLocalError: local
variable 'stat' referenced before assignment
I did some "experiments" with the Bibtex setup and Command Editing in
the bundle editor, but I never edited any of those python files
manually.
The bibtex command is:
# just to remind you of some useful environment variables
# see Help / Shell Variables for the full list
. "${TM_SUPPORT_PATH}/lib/html.sh"
. "${TM_SUPPORT_PATH}/lib/webpreview.sh"
# Prepare output window.
html_header 'Run BibTeX'
texMate.py bibtex 1
The typeset & view command looks like this:
# Source some support functions we need.
. "${TM_SUPPORT_PATH}/lib/html.sh"
. "${TM_SUPPORT_PATH}/lib/webpreview.sh"
# Prepare output window.
html_header 'Typeset & View' "$FILE"
# Compile.
texMate.py latex 1
RC=$?
html_footer
# Cleanup
# find . -name "*.log" -exec rm -rf {} \;
# find . -name "*.aux" -exec rm -rf {} \;
# find . -name "*.aux.bak" -exec rm -rf {} \;
# find . -name "*.toc" -exec rm -rf {} \;
exit $RC
I am using Version 1.5.7 (1436).
What should I do to fix this?
Thanks!
Ok, I'm trying to convert my existing CVS repository to a Mercurial
repository.
I've installed cvsps, and Mercurial version is the latest (form
the .dmg) and includes the convert extension.
I've tried
hg convert /Volumes/Macintosh\ HD/usr/local/cvsrep/pcs /
Repositories/pcs
with and without a sudo (wave that dead chicken!)... result - nada.
Has anyone managed to do this in the past? Is there an easier way? Any
ideas?
Aaaarrrgggh.
R
I'm sure why these should override user-specified engines but the
following packages are checked for when using texMate.py,
latexIndicators = ['pstricks' , 'xyling' , 'pst-asr' , 'OTtablx' ,
'epsfig' ]
xelatexIndicators = ['xunicode', 'fontspec']
Unfortunately, the regular expression that detects packages is
'([^%]|^)\\usepackage(\[[\w, \-]+\])?\{([\w\-]+)\}'
which detects commented packages including anything (eg, spaces) after
the '%'. Seems like the following may make more sense
'(^[^%]*)\\usepackage(\[[\w, \-]+\])?\{([\w\-]+)\}'
---------------------
Fernando Diaz
Department of Computer Science
University of Massachusetts
Amherst, MA 01003
---------------------
tel: (413) 545-3059
fax: (413) 545-1789
---------------------
email: fdiaz(a)cs.umass.edu
home: http://ciir.cs.umass.edu/~fdiaz
I just tried using the TODO bundle for the first time in a project
with folders. It appears to only search the files in the first folder
in the project. Is this a bug or user error?
--
Daryl Spitzer
Hey, I recently noticed a strange UI bug when launching TextMate, the
screenshot will explain it I think:
http://www.yiqiang.org/tm_drawer_bug.png
If you move the window around, the drawer will snap itself back to the main
window. It's not a very evil bug, but I thought I'd report it anyways :)
Cheers,
Yi
--
http://www.yiqiang.org
Hi all
please bear with me, I am just trying to get my head round the GTDAlt
bundle but it is not loving me back.
1) It is working ok, but although I duly created the two shell
variables TM_GTD_DIRECTORY and TM_GTD_INBOX and also a inbox.txt file
inside said directory I am still getting the error message "Some files
need to get created first" upon calling the "Process inbox" script. I
must have overlooked something but I am stuck.
2) I have been unable to find out what actually causes ticking the
checkbox in the HTML output back to the actual textfile to mark a task
as completed. It sometimes does, sometimes it just doesn't.
3) Are recurring actions aka "remind" an option?
4) When sorting tasks by using the Textmate "Line up/line down"
command, the focus does not stay with the line that I just shifted,
thus shifting it two or more lines up or down inconvenient. Is there a
way around this other than moving the caret?
Many thanks in advance, Textmate is a great tool that I appreciate more and more
Prion
Up until recently, Ive had great luck with the blogging bundle for
TextMate. However, now in both Tiger and Leopard I get this error
whenever I try to do anything (like Fetch Posts or Publish a Post).
Received exception:#<NoMethodError: undefined method `[]' for
nil:NilClass>
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rexml/parsers/baseparser.rb:320:in `pull'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rexml/parsers/streamparser.rb:16:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rexml/document.rb:185:in `parse_stream'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/xmlrpc/parser.rb:717:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/xmlrpc/parser.rb:460:in `parseMethodResponse'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/xmlrpc/client.rb:421:in `call2'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/xmlrpc/client.rb:410:in `call'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/metaweblog.rb:34:in `newPost'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:531:in `post_or_update'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:36:in `call'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:36:in `call_with_progress'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:43:in `call'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:43:in `call_with_progress'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:
17:in `dialog'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:40:in `call_with_progress'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:526:in `post_or_update'
/tmp/temp_textmate.GftXwA:3
...
Exception parsing
Line: 0
Position: 0
Last 80 unconsumed characters:
</methodResponse
I've scoured the web looking for info about this but cannot find
anything. Any suggestions would be greatly appreciated.
Thanks!
--
Matt Berther
http://www.mattberther.com
Greetings,
I use the GTDAlt bundle with TextMate to "get things done". Recently I
upgraded to Leopard and some of the functionality of the bundle broke
and it seems to be linked to an issue with Ruby. I'm not a Ruby
programmer (I'm barely an HTML guy) so I cannot really diagnose what's
going on with the bundle.
For example, I attempt to type the due date of a project by typing
'#' (shift + 4 on US keyboards) which brings up a date selection
window. Entering a date, or number of days from the current date does
not yield the desired output but instead prints the following to the
active file:
--code--
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/date/format.rb:230:in /bin/bash: -c: line 0: unexpected EOF while
looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filestrftime'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/date/format.rb:201:in /bin/bash: -c: line 0: unexpected EOF
while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filestrftime'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/date.rb:1343:in
--code--
This bundle worked wonderfully prior to installing OS X 10.5. Any
ideas what's going on here?
Thanks,
Mark
Hi there, I've been having some troubles including images in my LaTeX
projects lately. I think it was after some update of textmate, but I'm not
100% sure.
What annoys me, is that by using pdflatex in the terminal everything works
the way it should, but when using textmate, I get some strange errors. I
keep the imagefiles (png) in a folder images/imagename, and so the include
looks like this: \includegraphics{images/foo}. As said, using pdflatex in
terminal works like a charm, but textmate gives me this error: Latex Error:
./Introduction.tex:4 LaTeX Error: File `images/sensornetworks' not found.
adding the .png gives me another error: Latex Error: ./Introduction.tex:4
LaTeX Error: Cannot determine size of graphic in images/sensornetworks.png
(no BoundingBox).
but this ending shouldn't bee needed afaik.
So, I'm hoping for some help here, because I'm pretty much stuck.
regards
VeX
--
View this message in context: http://www.nabble.com/LaTeX-troubles-including-images-tf4764135.html#a13625…
Sent from the textmate users mailing list archive at Nabble.com.
I recently upgraded the OS on my server that holds my SVN repository,
and I had to re-check out my code.
So now, in TextMate, I get "permission denied" whenever I try to make
a commit. I can run the commit from Terminal (with a password
prompt), but not from within Textmate.
After the server upgrade, I believe I originally connected from
Terminal using svn+ssh. I assume that's the protocol it's still
using? I have the ssh-rsa key in my ~/.ssh/known_hosts file. I'm
using the same user name locally as on my server.
I also followed the instructions to create key pairs at ...
http://blog.macromates.com/2005/subversion-support-and-ssh-key-pairs/
... but it's still prompting me when I ssh through Terminal.
Can anyone point me to how to get TextMate to commit?
Thanks.
--
Dwayne Purper
Futura : Durham, NC USA
www.futuracreative.com
Not urgent an query, just looking for some insight...
I've put together a little bash script (that creates an AppleScript)
to stick an entry into Journler based on a parsed version of the
current line or selection:
input=${TM_SELECTED_TEXT:-$TM_CURRENT_LINE}
title=${input%\|*\|*}
tags=${input#*\|}
tags=${tags%\|*}
tags=${tags//, /\", \"}
tags=${tags%\", \"}
note=${input#*\|*\|*}
aplscr="tell application \"Journler\" to set en1 to make new entry
with properties {name:\"$title\", tags:{\"$tags\"}, rich text:\"$note
\"}"
osascript -e "$aplscr" &>/dev/null &
echo "Added entry\ntitle: $title; tags: {\"$tags\"}; note:$note"
echo "$aplscr"
Whilst it does work, I realised that there are more cunning minds at
work on this list than mine, and perhaps they might have some way to
clean-up those substitutions for the $tags variable in the middle. I
know I can do it using a sed script, but I was wondering if there was
some elegant bash trick I was missing....
Any ideas?
I put together a quick and moderately dirty hack to modify TextMate's Info.plist so that I get Quick Look support for text types that it claims on Leopard. Source code only, use at your own risk (see comments at the top for usage). As far as I understand, using UTImportedTypeDeclarations should not override the more correct UTIs supplied by the system or other apps, but I won't guarantee that.
http://homepage.mac.com/amaxwell/.cv/amaxwell/Sites/.Public/utconvert.m-zip…
--
adam
I'm in the habit of writing my method definitions without parentheses
around the argument list, like:
def initialize name, id, *args
# ...
end
TextMate doesn't recognize the arguments, so the jump-to-method and
the symbols drop-down can get confusing... and the arguments aren't
colored correctly in the editor window. I'm not sure how to fix this,
or submit my modifications to the SVN repository. Could someone point
me in the right direction?
Thanks,
Erwin
I love the way
(I miss an automatic way of reformatting C/C++ code inside TM… but
that is another story)
I have changed the output to build directly an html window in TM:
The problem is, when I copy/paste the code to include it in Mail, for
example, empty or short lines ending in space make funny things,
leaving blanks after the numbers…
Is there any solution.
I have the PHP bundle in `/Library/Application Support/TextMate/
Bundles/PHP.tmbundle`.
I have my personal bundle in `~/Library/Application Support/TextMate/
Bundles/McBroom.tmbundle`.
Both bundles contain preferences for comments that are scoped for
"source.php". My understanding is that the preferences in my personal
bundle should be taking precedence because that bundle is in my home
directory and thus "more local". This is what seems to happen on my
work machine (still running Tiger) with a similar configuration and
this is how things appeared to work on my laptop pre-Leopard. But now,
TextMate seems to be taking the preferences from the PHP bundle
instead of mine. If I remove the PHP bundle from /Library and let the
one in TextMate.app take over, it still seems to take precedence over
the preferences in my home directory.
Any ideas?
---
Rob McBroom
<http://www.skurfer.com/>
Dear mailing list members,
I'm writing my master thesis at the moment and writing it in TextMate
with the Latex bundle is awesome! But one thing is driving me crazy:
When I write "` as beginning quotation mark and hit the space key, the
finishing quotation mark is '" and not "' as it should be.
It would be very nice if someone would fix this in the next release, for
all those graduating students out there.
Cheers,
Svenja
Ahoy.
I just installed websvn up on the ole bundleforge.
http://bundleforge.com/
You can now browse, subscribe to rss changelogs & download tarballs of
any and all Bundles from 6 bundle collections.
If you know of a bundle repo that should be added to the list, please
let me know.
This is an "alpha" version because this isn't exactly what I had
intended to do with BundleForge in the longrun. However, this is
better than nothing.
Enjoy.
—Thomas Aylott – subtleGradient—
> Sorry to describe the changes I made rather than giving a bunch of
> patches but the normal bundle development model just won't work for
> me. I change a bunch of stuff for my personal use (like some of the
> hacks above) so I need to keep the ~/Library/Application Support/
> Textmate directory for my own personal modifications. If someone
> could tell me an easy way to produce a diff of the changes I've made
> here with the actual bundle maybe I could be more helpful.
>
> Anyway thanks to the author(s) of the latex bundle for all the work
> they've put in so far. Hopefully this was helpful an not just
> useless bitching.
>
> Peter
I don't know if this has been addressed already, but I have another
two concern since I last updated my bundles:
1) Inside a non-maths scope, adding an underscore still produces "_{}"
rather than just "_". For example:
\includegraphics[width=170mm]{./figures/tf12_resonance.PNG}
adding "_" with the caret after "resonance" produces
\includegraphics[width=170mm]{./figures/tf12_resonance_{}.PNG}
which pdflatex doesn't seem to like very much. The same is true for
captions, sections, subsection, ... Would it be possible to change the
scope of the "_" command to math only?
2) A similar issue arises when I add powers in math mode using "^".
This correctly produces "^{}" and places the caret inside the
brackets. Pressing _any_ key now however adds another iteration of the
command, like so: "^{^{}}". I am using a German keyboard, so to get a
"^", I have to press the key above tab and then hit space. This might
be related to the problem I have.
Best,
Jonas