Alan,
Thank you so much for your speedy response. The images are in different places I'll try the second option as you suggest. I don't understand the specific meanings of (.*?) $1 and [^":]+):? with ?$1/? Is there a reference/source where I can learn more about searches and what those expressions mean?
Best regards,
James
On Friday, October 06, 2006, at 10:15AM, Allan Odgaard <throw-away-1(a)macromates.com> wrote:
>On 6. Oct 2006, at 18:43, <thelittleredhen(a)mac.com> wrote:
>
>> I have an xml file that contains numerous image paths in this
>> format <Pic_path href="HD2:Working Files:images:testpic.jpg"/>
>>
>> I need to convert them to this format <Pic_path href="file:///
>> Volumes/HD2/Working Files/images/testpic.jpg"/>
>>
>> Is there any way I can get TM to search for the paths and convert
>> the text?
>
>If all the images are in the same location, you can enable Regular
>Expressions, then search for: ?<Pic_path href="HD2:Working
>Files:images:(.*?)"/>? and replace with: ?<Pic_path href="file:///
>Volumes/HD2/Working Files/images/$1"/>?.
>
>If however they vary in path, you will need to first do a replace
>from: ?<Pic_path href="HD2:? to ?<Pic_path href="file:///Volumes/HD2/?.
>
>Then repeat a (regular expression) replace of: ?(<Pic_path
>href="file:///Volumes/HD2/[^":]+):? with ?$1/? until no replacements
>are done.
>
>Do a backup first!
>
>
>______________________________________________________________________
>For new threads USE THIS: textmate(a)lists.macromates.com
>(threading gets destroyed and the universe will collapse if you don't)
>http://lists.macromates.com/mailman/listinfo/textmate
>
>
I am using the Multimarkdown bundle and trying to convert the document
into Latex. When I do, I get this error:
-:3: parser error : Extra content at the end of the document
<h3 id="mrs.erskineandheshieenterstageright.">MRS. ERSKINE and HESHIE enter stag
^
unable to parse -
Can anyone tell me what's going on?
Thanks.
PS. I'm not a programmer so please go slowly.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Mike,
Thanks for responding. I uninstalled and reinstalled the latest
bundle just to make sure (through the GetBundle bundle). I do have
excluded.gtd in the project, and when I added "excluded.gtd" to
itself, the Active GTD List view error cleared up. However, the
Export to Geektool command still throws up an error even with all
this. The error comes up as a tooltip, so I had to enter it by hand:
/tmp/temp_textmate.bQodQm:42: undefined method `pre_match' for
nil:NilClass (NoMethodError)
from /tmp/temp_textmate.bQodQm:38: in `each'
from /tmp/temp_textmate.bQodQm:38
from /tmp/temp_textmate.bQodQm:34: in `each'
from /tmp/temp_textmate.bQodQm:34
from /tmp/temp_textmate.bQodQm:28: in `each'
from /tmp/temp_textmate.bQodQm:28
By the way, thanks for the great bundle, which was working for me not
long ago. It's very useful to have the output function the way it
outputs to Geektool. You may want to clear up in your introduction on
the blog whether the exclusions file is excluded.gtd or exclusions.gtd.
Adam
> Two questions:
>
> Are you using the latest version from the repository?
> Do you have an "excluded.gtd" file in your TM Project?
>
> If you don't have the "excluded.gtd" file, you can get it at my blog
>
> Let me know if that doesn't work.
>
> Mike
>
>> On 9/19/06, Adam Potthast <adamqp(a)freeminds.net> wrote:
>> Has anyone else had problems with "Active GTD List View" and "Export
>> to Geektool" in the GTD bundle following the last couple of Textmate
>> updates?
>>
>> When I run Active GTD List view I get the following error:
>>
>> /tmp/temp_textmate.H0K13x:78: undefined method `pre_match' for
>> nil:NilClass (NoMethodError) from /tmp/temp_textmate.H0K13x:74:in
>> `each' from /tmp/temp_textmate.H0K13x:74 from /tmp/
>> temp_textmate.H0K13x:70:in `each' from /tmp/temp_textmate.H0K13x:70
>> from /tmp/temp_textmate.H0K13x:67:in `each' from /tmp/
>> temp_textmate.H0K13x:67
>>
>> Export to Geektool throws up a different error that I can't copy and
>> paste, but it appears to be missing the 'pre_match' method as well.
>>
>> Regular GTD List view still seems to work fine.
>>
>> Thanks,
>> Adam
>>
>>
>> _____________________________________________________________________
>> _
>> For new threads USE THIS: textmate(a)lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
Hi,
I have been surprised that for the following:
switch ( $x )
{
case 'Add':
$db->query(build_insert_sql('event', $eventfieldlist));
$event_id = $db->insert_id;
$db->query('INSERT INTO event_aud (`id`, `aud_id`) VALUES
("'.$event_id.'","'.$_POST['aud_id'].'")');
break;
case 'Edit':
$db->query(build_update_sql('event', $eventfieldlist, $_POST['id']));
$template['top_msg'] .= '<p>hi there </p>';
break;
default:
$template['top_msg'] .= '<p>hi there </p>';
break;
}
one can only fold the entire switch, and not each case.
would this be too hard to implement?
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
What is that short cut for moving from cell to cell? Ctrl-Tab? What
is the other one?
Ctrl-Tab moves the focus to the drawer on my Textmate…?!
confused,
Daniel
I'm a new (but paid up) textmate luser, and I am beginning to appreciate
the advantages of saving projects, but find that I tend to have them
scattered all over my user directory. I also have a bad memory, so
sometimes not only do I forget where they are, I forget what I have named
them. I wanted an easy command-line way to find and open textmate
projects regardless of where they are located. I wrote a shell script
that uses mdfind to locate them, permit listing of them, and open
them. This works as a shell script or a zsh function.
http://tinyurl.com/j6gbb/tmpj
tmpj foo
opens the project named foo (actually it will open all projects named foo,
so tweak the script if this is problematic) in any location.
If used as a zsh function, I wrote an accompanying completer:
http://tinyurl.com/j6gbb/_tmpj
Then all you do is type tmpj and hit the tab key and you can permute
through a list of every textmate project on your hard drive that has been
indexed by SpotLight. If you don't want to use zsh, then you can isue the
command
tmpj -l
and it will do the same and list possible projects. Then you just pick a
project from the list and issue
tmpj foo
as before.
HTH someone.
This is my first post to this list so I hope this is the right place for
my questions.
I have been using textmate for a while now and have just started using
the todo feature.
My first questions are:
1) Is there a way to make multi-line todo items that will show up in the
todo list?
2) If so where is it documented how to do so?
Alan,
Thank you so much for your speedy response. The images are in different places I'll try the second option as you suggest. I don't understand the specific meanings of (.*?) $1 and [^":]+):? with ?$1/? Is there a reference/source where I can learn more about searches and what those expressions mean?
Best regards,
James
On Friday, October 06, 2006, at 10:15AM, Allan Odgaard <throw-away-1(a)macromates.com> wrote:
>On 6. Oct 2006, at 18:43, <thelittleredhen(a)mac.com> wrote:
>
>> I have an xml file that contains numerous image paths in this
>> format <Pic_path href="HD2:Working Files:images:testpic.jpg"/>
>>
>> I need to convert them to this format <Pic_path href="file:///
>> Volumes/HD2/Working Files/images/testpic.jpg"/>
>>
>> Is there any way I can get TM to search for the paths and convert
>> the text?
>
>If all the images are in the same location, you can enable Regular
>Expressions, then search for: ?<Pic_path href="HD2:Working
>Files:images:(.*?)"/>? and replace with: ?<Pic_path href="file:///
>Volumes/HD2/Working Files/images/$1"/>?.
>
>If however they vary in path, you will need to first do a replace
>from: ?<Pic_path href="HD2:? to ?<Pic_path href="file:///Volumes/HD2/?.
>
>Then repeat a (regular expression) replace of: ?(<Pic_path
>href="file:///Volumes/HD2/[^":]+):? with ?$1/? until no replacements
>are done.
>
>Do a backup first!
>
>
>______________________________________________________________________
>For new threads USE THIS: textmate(a)lists.macromates.com
>(threading gets destroyed and the universe will collapse if you don't)
>http://lists.macromates.com/mailman/listinfo/textmate
>
>
Alan,
Thank you so much for your speedy response. The images are in different places I'll try the second option as you suggest. I don't understand the specific meanings of (.*?) $1 and [^":]+):? with ?$1/? Is there a reference/source where I can learn more about searches and what those expressions mean?
Best regards,
James
On Friday, October 06, 2006, at 10:15AM, Allan Odgaard <throw-away-1(a)macromates.com> wrote:
>On 6. Oct 2006, at 18:43, <thelittleredhen(a)mac.com> wrote:
>
>> I have an xml file that contains numerous image paths in this
>> format <Pic_path href="HD2:Working Files:images:testpic.jpg"/>
>>
>> I need to convert them to this format <Pic_path href="file:///
>> Volumes/HD2/Working Files/images/testpic.jpg"/>
>>
>> Is there any way I can get TM to search for the paths and convert
>> the text?
>
>If all the images are in the same location, you can enable Regular
>Expressions, then search for: ?<Pic_path href="HD2:Working
>Files:images:(.*?)"/>? and replace with: ?<Pic_path href="file:///
>Volumes/HD2/Working Files/images/$1"/>?.
>
>If however they vary in path, you will need to first do a replace
>from: ?<Pic_path href="HD2:? to ?<Pic_path href="file:///Volumes/HD2/?.
>
>Then repeat a (regular expression) replace of: ?(<Pic_path
>href="file:///Volumes/HD2/[^":]+):? with ?$1/? until no replacements
>are done.
>
>Do a backup first!
>
>
>______________________________________________________________________
>For new threads USE THIS: textmate(a)lists.macromates.com
>(threading gets destroyed and the universe will collapse if you don't)
>http://lists.macromates.com/mailman/listinfo/textmate
>
>
Alan,
Thank you so much for your speedy response. The images are in different places I'll try the second option as you suggest. I don't understand the specific meanings of (.*?) $1 and [^":]+):? with ?$1/? Is there a reference/source where I can learn more about searches and what those expressions mean?
Best regards,
James
On Friday, October 06, 2006, at 10:15AM, Allan Odgaard <throw-away-1(a)macromates.com> wrote:
>On 6. Oct 2006, at 18:43, <thelittleredhen(a)mac.com> wrote:
>
>> I have an xml file that contains numerous image paths in this
>> format <Pic_path href="HD2:Working Files:images:testpic.jpg"/>
>>
>> I need to convert them to this format <Pic_path href="file:///
>> Volumes/HD2/Working Files/images/testpic.jpg"/>
>>
>> Is there any way I can get TM to search for the paths and convert
>> the text?
>
>If all the images are in the same location, you can enable Regular
>Expressions, then search for: ?<Pic_path href="HD2:Working
>Files:images:(.*?)"/>? and replace with: ?<Pic_path href="file:///
>Volumes/HD2/Working Files/images/$1"/>?.
>
>If however they vary in path, you will need to first do a replace
>from: ?<Pic_path href="HD2:? to ?<Pic_path href="file:///Volumes/HD2/?.
>
>Then repeat a (regular expression) replace of: ?(<Pic_path
>href="file:///Volumes/HD2/[^":]+):? with ?$1/? until no replacements
>are done.
>
>Do a backup first!
>
>
>______________________________________________________________________
>For new threads USE THIS: textmate(a)lists.macromates.com
>(threading gets destroyed and the universe will collapse if you don't)
>http://lists.macromates.com/mailman/listinfo/textmate
>
>