Hello!
Two Problems on the Latex bundle.
I have a project structure like this:
-Projectfolder
projectmain.tex (master file)
-- subfolder1
-- file_1_1.tex
-- file_1_2.tex
-- subfolder 2
-- file_2_1.tex
When I now drag file file_1_2.tex into file_2_1.tex,
I get
\include{../subfolder1/file_1_2.tex}
The problem is, that I´get an error, because the file
can not be found. The file path has to be
\include{subfolder1/file_1_2.tex}
because it depends on the master file. But when I then
invoke the command "Show outline", the file file_1_2.tex
is not found, because it expects the path as the first
statement.
Another problem is, that latex does not typeset the
files, that where included. Why does the drag command
produce a include command?
Helge
Hi,
Is there a way to setup Textmate (for Ruby on Rails development) such that
when I'm "tailing" the error log I will get different line colors for errors
based on the severity of the error?
Eg
- logger.error ('xxx') => RED
- logger.warning ('xxx') => ORANGE
- etc
Thanks in advance
Greg
Hi,
I'm looking for a way to crate a simple snippet so that tab
completion: //(tab) will insert CSS comments and wrap any text on the
line if applicable.
I've got so far as this:
/* ${1:${TM_CURRENT_LINE/(^\s+)(.+;)/$2/g}} */
$2
Which when you feed something like:
//(tab)some-property: some-value;
Produces output:
/* some-property: some-value; */
some-property: some-value;
What I would like is to delete the second instance. Is there any
way? Or, will I just have to settle for selecting the text and
create a key equivalent snippet (which means I have one snippet for
plain comment and another for wrapping...).
Oh and one other question about snippets: in the sequence ${«tab
stop»/«regexp»/«format»/«options»} what are the options? I stuck with
g because that's what I had seen.
thanks in advance,
Gabriel
Hi!
Just wondering because of the news that input managers will be banned
in Leopard. Is there already a new solution planned for "Edit in
TextMate"?
Niels
--
Jammern für Anfänger: Niels K. (25) Jammerbacke -- auch für
professionelles Jammern zu haben
http://jammern.wordpress.com
I made my first screencast ever. It's 11 minutes long, and 15Mb big! The
volume is a little low,
pronunciation could be better, but I hope you enjoy! demonstrates the
latest svn features.
http://home.mac.se/joachimm/Objective-C_with_TextMate.mov
Joachim Mårtensson
For a bundle I'm maintaining, I wanted to be able to easily toggle
between having changes written directly to the bundle (so that I can
commit them) and having changes written to deltas (so that I can make
local customizations that are not committed).
I wrote a command for this:
http://henrik.nyh.se/2007/03/24/textmate-command-to-toggle-writing-deltas/
I'm sure others have done similar things before, but I couldn't find
anything, so I rolled my own, and thought I'd share.
If the command does something bad or unnecessary, or if you've solved
this problem in a better way, please let me (us) know.
I have lately had to use code that includes
\begin{SaveVerbatim}[commandchars=\\\{\},codes={\catcode`$=3
\catcode`^=7}]{guard}
$\lnot$busy(phone)
\end{SaveVerbatim}
The \catcode`$=3 confuses the TextMate's grammar and thus everything
that follows is treated at maths in scopes and hence in colouring.
Is there an easy solution without messing with the main language
definition?
Hi there,
after getting nagged at my blog (http://www.gnegg.ch/archives/354-
External-blogging-tools.html) to look into why TextMate's Blogging
Bundle behaves strangely with Serendipity blogs, I had a look into
the problem.
Actually, there are two problems, but so far, I've only fixed one
(it's getting late here):
1) When you have a Date:-Header in your Posting, s9y will interpret
the date wrongly and will assume it to be the beginning of the epoch
(1970-01-01). This is problably a flaw in s9y and I'll report it
there as soon as I know what's going on.
2) The Pings- and Comments-Headers were ignored and Pings/Comments
were turned off regardless of what the headers were set to. This is
what I've actually looked into this evening (GMT+1 here):
Basically it all comes down to the fact that parse_post (blogging.rb)
is unable to cope with empty headers of which s9y produces at least
one: s9y always sends an empty mt_convert_breaks-member in the post
record and when no tags are defined, it'll also send an empty
mt_keywords member.
With an unpatched blogging.rb, this will create something like this
(ignore the f*ed up date - that's caused by bug 1) above):
Type: Blog Post (Markdown)
Blog: s9y
Post: 1
Title: First entry
Date: 1970-01-01 02:00:00 +0100
Keywords:
Format:
Pings: On
Comments: On
This causes the parser to stop after the Keywords-header (lines
206/207) which will lead to the following headers to be ignored, thus
turning off comments (s9y assumes Comments=off if the information
isn't present in the RPC-call).
Now I'm not sure if s9y's behaviour is actually legal here (please
enlighten me), but I think the blogging bundle should be able to cope
with empty fields.
There are two possible fixes: One is to fix the fields-parser to make
it stop bailing out at empty fields. I've attached bb_fixparser.diff
which does that. The other way is to make post_to_document stop
adding empty format and keyword fields. bb_skipempty.diff does that.
I'm not sure which way is the correct way to go. fixparser has the
tendency of working with even more crude blogging engines, while
skipempty is what the bundle did so far (look at the handling of
mt_tags for example.
Anyways. Please consider merging one of the patches to make the
blogging bundle work better with serendipity.
Thanks
Philip
Hi Allan
How diffiicult would it be to add an option to
the folding system telling it to obey indentation
exclusively?
With this option, TextMate would become a
very nice cataloging tool for removable media:
I drag and drop the CD on a TextMate window
and the tab-indented list of the content appears.
It is already very easy to search such lists,
with folding-at-indentations it would be also
easy to navigate them.
Thanks
Piero