After using the 'Xcode/Import Frontmost Project' command, for
commands in the newly imported project TM_PROJECT_DIRECTORY is set to
'/'. I think that is an unfortunate choice. If for whatever reason it
can not be set to the 'real' project directory, I think it should
either not be defined at all or empty.
Gerd
I am trying to create a command that will replace text on a line with
new text (actually modified text from the current line). Here is the
code that I am using:
#!/usr/bin/python
import os
def texter():
oldtask = os.environ['TM_CURRENT_LINE']
# oldtask = "Alligator"
newtask = "DONE "
for i in range (len(oldtask)):
if i > 4:
newtask = newtask + oldtask[i]
print newtask
texter()
The problem that I have is that it inserts a line feed at the end of
the new text. Is there a way to prevent that? Thanks.
Mike
Hi,
I recently opened some BibTeX documents in TM (which I normally don't
do since I use BibDesk) and recognized the following problem:
TM tries to fold the BibTeX code, but the end of the BibTeX entries
are not reocgnized correctly.
My entries look like this:
@book{ros:02,
Address = {London},
Author = {Corey Ross},
Title = {The East German Dictatorship. Problems and Perspectives in
the Interpretation of the GDR},
Year = {2002}}
So, the fields are pretty-formatted by BibDesk, they are preceeded by
a tab.
This causes TM not to recognize the end of the entry.
If the entry looks like this:
@book{ros:02,
Address = {London},
Author = {Corey Ross},
Title = {The East German Dictatorship. Problems and Perspectives in
the Interpretation of the GDR},
Year = {2002}}
or like this:
@book{ros:02,
Address = {London},
Author = {Corey Ross},
Title = {The East German Dictatorship. Problems and Perspectives in
the Interpretation of the GDR},
Year = {2002}
}
everything works fine.
Is it possible to change the code folding to work with the first
version?
I suppose many BibTeX users on the Mac will have this problem, since
probably almost all of them work with BibDesk ...
Thanks in advance,
best regards
Matthias
--
Matthias Damm
mad(a)macpla.net
PGP key: http://macpla.net/MatthiasDamm.asc
PGP fingerprint: CED3 6074 7F7D 3148 C6F3 DFF2 05FF 3A0B 0D12 4D41
I always thought this was some simple text-formatting to do list,
much like iCal or any such thing, but it seems to possibly be a code-
centered project something TODO? Is there any way I can get some more
info?
(basicly, I did google a bit and didn't find anything, so I'm looking
for that "you should've found this googling you idiot"-link)
Andreas
Is there a bundle or macro available which would enable me to write
footnotes in plain text/markdown? In markdown there is a footnote
notation for hyperlinks, but I haven't seen any easy way to use it in
Textmate yet. ;)
Dan
On May 10, 2006, at 5:19 PM, textmate-request(a)lists.macromates.com
wrote:
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] What is TODO?
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On May 10, 2006, at 3:43 PM, Niko Dittmann wrote:
>
>> "todo" searches project-wide for code-comments with the strings
>> "todo", "fixme" and "changeme" and presents a list with the lines
>> and links to the files. very convenient to keep track of...
>> well... things you still have to do. try it!
>
> There is another one called "RADAR". I assume that's some sort of
> bug-tracking tag. Does anyone have more details about it?
>
> Trevor
I have been playing with TODO (actually, I'd like to build a GTD
bundle based on it). For some reason, nothing I label as RADAR shows
up in the TODO list.
Mike
I have read and seen the "edit in TextMate" functionality, but would
rather than having a hack use the Services menu for this. I have also
read that this was a functionality before that was removed. Is it
possible to add that back in easily? Those who don't want to have
this Services menuitem can then use e.g. Service Scrubber (http://
www.petermaurer.de/nasi.php?section=servicescrubber) to remove it.
Or am I missing something here?
-e
--
egil helland / it consultant (mcse, web technology)
web: ikon.as / egil.net mob: +47-91315555
> As a shell script (i.e. just paste in body of command):
>
> echo "Aprox. page #$(( (TM_LINE_NUMBER+37) / 38 ))"
> echo "Aprox. total pages $(( `wc -l` / 38 + 1 ))"
Allan, I could kiss you. But I won't.
A quick addition to the LaTeX Bundle -- there was some mention of
"texdoc" on the TeX on OSX-Mailing list:
Command: "Lookup documentation of current word/package"
Shell script: texdoc $TM_CURRENT_WORD (no input, no output)
Scope: variable.parameter.name.package
with an addition to the language definition: (although I don't know
if the scope names are valid TextMate-speak)
{ name = 'meta.label.package.latex';
begin = '(\\(?:usepackage)\{)';
end = '(\})';
patterns = (
{ name = 'variable.parameter.name.package';
match = '[a-zA-Z,:0-9]+';
}
);
},
This command will then open the corresponding help file for a
selected package.
greets,
Dan