As a new user, I'm venturing a first question.
I'm using embedded pre-blocks in markdown for simple tables. I'm
spacing the columns with tabs. When a word in a column has an
accented character the number of generated spaces in the conversion
to html is wrong. See the example below.
Before conversion:
<pre>
Fitié <tab> NextWord
Fitie <tab> NextWord
</pre>
After conversion:
<pre>
Fitié <space> <space> NextWord
Fitie <space> <space> <space> NextWord
</pre>
When the word has one accented character 2 spaces are generated in
this case, otherwise there are 3 spaces. Something to do with UTF-8
encoding?
-- Bert Fitié
Hi!
I get an error with the blogging bundle. When I type cat->tab, than I
get the following:
/usr/lib/ruby/1.8/net/protocol.rb:83:in `initialize': getaddrinfo: No
address associated with nodename (SocketError)
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `new'
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:55:in `timeout'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in `initialize'
from /usr/lib/ruby/1.8/net/http.rb:430:in `open'
from /usr/lib/ruby/1.8/net/http.rb:430:in `do_start'
... 6 levels...
from /tmp/temp_textmate.TahZxR:47
from /tmp/temp_textmate.TahZxR:45:in `popen'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:11:in `call_with_progress'
from /tmp/temp_textmate.TahZxR:45
TextMate build is 1269. Mac Os 10.4.8
Helge
I know Textmate doesn't have remote editing built in, but is there a program that is similar to www.webdrive.com on a mac? Basically webdrive allowed you to connect to a FTP server and map the connection to a drive. Can anyone recommend a similar program on a mac?
I'm not sure about this so it's a question. When, from terminal, I do:
$ mate .
and then edit happily away, everything in the TM environment works
great. But, when I copy from a different app (say Terminal) and try
to paste, the clipboard contains its previous contents, not the new
copy. Any thoughts on why this could be?
Thanks
Hi there,
I'm starting to feel really useless now! I'm trying to write a
language grammar for the latex TODO bundle
(http://tug.ctan.org/tex-archive/macros/latex/contrib/todo/)
When used, it produces a nice todo file that looks like the following:
(abstract) l.4, p iii, s : expand upon this `argument'
(introduction) l.17, p 1, s 1.1: Did I just think these categories up,
or did they come from somewhere?
(introduction) l.26, p 1, s 1.1: Back these definitions with
references to the literature
(background) l.37, p 10, s 2.1.1: is there actually an example of a
virtual environment with no users?
(background) l.67, p 11, s 2.1.1: fill out this section with a
complete range of quotes
Currently I just want to add syntax highlighting to this document. I
have created my own bundle (LaTeXTODO), and inside my own language
file: (LaTeXTODO). This language file looks as follows:
{ scopeName = 'source.latex_todo';
fileTypes = ( 'TODO' );
patterns = (
{ match = '^(\(.*?\))';
captures = { 1 = { name = 'entity.name.latex_todo'; }; };
}
);
}
I was hoping it would match the first bracketed word in each sentence
(abstract), (introduction), etc. and scope them as
'entity.name.latex_todo'. Unfortunately this doesn't seem to be the
case. For some very strange reason, when i click on (abstract), and
hit the short-cut ctrl-shift-p it says that the scope is
tex.log.latex.
This is very odd, and the language menu at the bottom definitely says
i'm in LaTeXTODO mode. I'm really at a loss with what to do with
languages grammars now, and i'm almost wondering whether TextMate is
playing fairly...
Yours in hope of any help at all,
Sam Aaron
Howdy,
we have that wonderful toggle command for environments (* or not *).
Would it be possible to add this toggling behavior to headings?
like \subsection{} to \subsection*{} ?
Thanx,
Daniel
Hi there,
I'm working on a particular form of yaml (called Feedback) which I'm
using as a way of marking up suggestions for documentation. It's still
in very early days (say, about 3 hours), but I'm having trouble
writing my own language grammar for it.
An example Feedback file currently looks like this:
thesis_author: chris
version: 1
commenter: sam
errata:
6:
para: 1
comments:
- suggestion: "_in which there are no jobs_, what are jobs?
Wouldn't it be simpler to just say that DynaSOAr (oh the pain of mixed
case acronyms!) only consists of services?"
para: 2
comments:
- query: "If you're capitalising Web service with capital W,
lower case s, why is 'Web Service Provider' all uppercase?"
- typo: "_who's responsibility is to recieve..._ should be
whose, and receive. Does LyX still not have a spell-checker? :-("
- typo: "_dynmaically_ should be dynamically"
- suggestion: "_The ability to dynmaically deploy services in
response to consumer requests without interruption to the invocation
gives considerable scope for different deployment patterns._ This
sentence needs breaking down."
This document describes some comments on paragraphs 1 and 2 of page 6
of chris's thesis. As you can see, there are currently three types of
comment, a query, suggestion and typo.
I would like the file to have all the features of yaml (inheriting
from the lovely yaml bundle), yet override certain things. I want
everything between underscores to be italicised (although this will
probably change due to code_variables), and I want the different types
of comment to be understood by the language grammar separately. I also
want certain keywords to be understood.
Attempting to implement these, I came up with the following:
{ scopeName = 'source.yaml.feedback';
fileTypes = ( 'feedback' );
patterns = (
{ name = 'markup.italic.feedback';
begin = '_';
end = '_';
},
{ name = 'keyword.control.feedback.suggestion';
begin = '- suggestion: "';
end = '"';
patterns = (
{ name = 'keyword.operator.feedback';
match = 'suggestion';
}
);
},
{ include = 'source.yaml'; },
);
}
However, I didn't get the behaviour I wanted. Nothing seems to be in
italics, the suggestion keyword is scoped as
'keyword.control.feedback.suggestion', and 'source.yaml.feedback'
only. There's no mention of 'keyword.operator.feedback'.
Is there anything obvious that I seem to be doing incorrectly? How is
it possible to get a bunch of characters to be scoped with different
names. I want to be able to write something like:
{ name = 'keyword.control.feedback';
match = '\b(suggestion|query|typo|technical)\b';
},
I'm sorry if I'm being a numpty with this!
Thanks in advance of any help,
Sam Aaron
For those of you following the book progress...
James Edward Gray II
Begin forwarded message:
> From: Dave Thomas <dave(a)pragprog.com>
> Date: October 3, 2006 10:13:49 AM CDT
> To: ruby-talk(a)ruby-lang.org (ruby-talk ML)
> Subject: [ADV] New version of the TextMate book is available
> Reply-To: ruby-talk(a)ruby-lang.org
>
>
> Folks:
>
> I've uploaded the B1.02 version of Jame Edward Gray II's TextMate
> book.
>
>
> The first beta release covered all you need to know to build and
> make use of TextMate's automations. This second beta goes back
> to the basics of TextMate usage.
>
> Three new chapters are added covering Projects, Power Editing, and
> Regular Expressions. There's a ton of information packed into
> those simple titles, including everything you need to know about
> moving through files like a pro, the full suite of TextMate's search
> tools, and some clever uses of the mate command-line tool. As usual,
> there's plenty of coverage of undocumented and lesser known features.
>
> Update your beta copies and dive even deeper into the manual
> of TextMate voodoo.
>
> As usual, the update is available for free from
>
> http://books.pragprog.com/titles/textmate/reorder
>
> Enter just two of the three pieces of information to identify your
> PDF.
> I recommend using your order number and your email address, as these
> tend to be be the most consistent.
>
>
JSON (http://en.wikipedia.org/wiki/JSON) is a data-interchange format
based on JavaScript. Although there is no official filename extension,
.json is typical. It would be nice if the JavaScript bundle had 'json'
added to its fileTypes.
(The ticket system has warnings about entering bundle-related issues so
I'm posting to this list instead.)
Hi Textmate group!
I don't have too much insight in how Textmate's plug-ins nor bundles
work… but after I fiddled around with some of the preferences and
files, I soon came to a conclusion that It's hard to change the font-
preference depending on what file-type it is.
I would like to use a custom font JUST when viewing a .nfo file.
Some background info about .nfo files can be found here:
http://www.ubuntuforums.org/showthread.php?t=83499
The .nfo file contains "ascii-art", which originates from the demo-
scene a la 1980's… and is now used in a lot of filereleases on internet.
Keep up the magnificant work !
/Johan
The link for the diff command in the svn status window seems to be
insensitive to the environmental variable TM_SVN_DIFF_CMD. I have it
set to fmdiff, but the link for the diff command in the status window
gives me the normal diff output as opposed to launching FileMerge.
TIA, Mark
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
>
>
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
>
>
Hi,
I¹m completely new to TM, not a programmer and totally out of my depth on
this but here goes!
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?
Any help would be really appreciated!
Thanks
James
Hi!
I just wanted to ask how to use the new "`"' ?
When I type " it autocompletes to "" setting the cursor between the
two "
When I type now ` the whole thing becomes "`'" and not "`"'
Niels
--
Don't say me the data while speaking on phone, that's too unsecure.
Please send them by e-mail
-- Customer of a German webhoster
How different is the Cutting Edge version from the Minor Updates version?
Is it stable enough to use day-to-day? Is there a place on Macromates (some
skimming about didn't turn one up) where I could read the release notes, or
do I have to track it by some other means?
--
Chris R.
======
Not to be taken literally, internally, or seriously.
Hi,
I'd like to know if it's possible to select wich Python version
Textmate uses.
Actually my default system version is 2.4.3. BBEdit runs with
previous 2.3.5 but Textmate takes the 2.4.3
Revert 2.3.5 to the default Python would be a great idea too, but I
couldn't find out how to do it.
Thanks for your help,
Joancarles
newbie,yes
·················
www.casasin.com
·················
Hi there,
I was wondering whether it was possible for a textmate bundle to
launch an external process, and then when triggered, could send some
text to the process (for example, using standard streams) and then do
something with the information that the process spits out.
Now I know you can do this whole workflow for each command, i.e. you
could read the current line, pass it as parameters to a command, and
then replace the line with the output of the program.
What I want to do is to have the process persist over command
triggers. i.e. One trigger might start the process, another might feed
it information and do something with the response (this command may be
called multiple times, and each time it would communicate with the
same process, rather than create a new process), and a final trigger
might end the process.
Is this at all possible?
Thanks,
Sam Aaron
--
http://sam.aaron.name
Hi, simple question I think, but I can't find the answer
I quasi-always use regular expressions in the find and replace box, but this
button defaults to plain text search.
Q: What is the pref called to set this button's default to ticked?
Executing "defaults read com.macromates.textmate"
The closest I can see is this
OakFindPanelOptions = {
action = replaceAll;
findInProjectIgnoreCase = 0;
findString = "duchaine";
ignoreCase = 1;
replaceAllScope = document;
replaceString = " $1";
wrapAround = 0;
};
But no sign of "Regular Expression"
Tim
Hi Allan,
Here are some tests and what I get in the log(I removed "date +
TextMate[pid]" on every lines):
OS X 10.4.8, TextMate1269
Tried in my account and in a fresh one. Same results.
If I press ^⎋: Nothing
If I press ⌘⎋:
performKeyEquivalent: system gave us: ⎋
performKeyEquivalent: user actually pressed: ⌘⎋
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
If I press alt+esc: Beep. Nothing.
If I press ⌃⌘⎋
performKeyEquivalent: system gave us: ⎋
performKeyEquivalent: user actually pressed: ⌃⌘⎋
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
If I press ⌃⌥⎋
performKeyEquivalent: system gave us: ⎋
performKeyEquivalent: user actually pressed: ⌃⌥⎋
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
Any ^ + whatever or ^ + ⇧ + whatever: Nothing
Any ⌘ + whatever or ⌘ + ⇧ + whatever: Looks fine, e.g.:
performKeyEquivalent: system gave us: ⇧⌘L
performKeyEquivalent: user actually pressed: ⇧⌘L
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
Any ^ + ⌘ + whatever: Looks fine, e.g.:
performKeyEquivalent: system gave us: ⌃⌘M
performKeyEquivalent: user actually pressed: ⌃⌘M
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
Any ⌥ + ⌘ + whatever(not those used by the system.): Looks fine, e.g.:
performKeyEquivalent: system gave us: ⌥⌘S
performKeyEquivalent: user actually pressed: ⌥⌘S
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
Tell me if I can try something more...
--
FredB
from my log file, hope this helps:
performKeyEquivalent: system gave us: ⌃⌥⌘B
performKeyEquivalent: user actually pressed: ⌃⌥⌘B
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
performKeyEquivalent: system gave us: ⌘W
performKeyEquivalent: user actually pressed: ⌘W
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
performKeyEquivalent: system gave us: ⌥⌘T
performKeyEquivalent: user actually pressed: ⌥⌘T
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
performKeyEquivalent: system gave us: ↓
performKeyEquivalent: user actually pressed: ↓
performKeyEquivalent: match against: ⌃⎋
performKeyEquivalent: did match: NO
I'm trying to use a regex transformation in a snippet that will
convert the first letter of a word to uppercase and convert underscore
_ followed by a letter to a space and an uppercase letter.
eg:
field_name > Field Name
long_field_name > Long Field Name
I can't quite get get my head round how to do it, as it seems like two
seperate transformations, but I'm not sure how to to do
transformations on a string in a snippet.
Is there a collection of regexes for transforming between the main
cases? (particularly Camel, Title and underscore seperated) I managed
one that went from CamelCase to underscore_seperated:
${1/([a-z0-9])?([A-Z])/(?1:$1_)\l$2/g}
Thanks
Ed
Hi there,
Well, that's pretty simple : I create a project
by dragging a bunch of files in the project
drawer… Fine…
After that, I move some of those files somewhere
else with the Finder or whatever : TextMate has “lost”
the moved files which now appear in red…
I cannot believe I am the only one bothered by
this behaviour… Or am I ? :-)
I'm working on a Wordpress blog and sometimes need to comment out
blocks of intermingled PHP and HTML. Don't get me started on either
PHP or interspersing code and markup. Anyhow, here's a hackish
command that toggles an if(false) block:
#!/usr/bin/env ruby
lines = STDIN.readlines
php_regex = /\<\?php/i
if lines[0] =~ php_regex
lines.each{|l| puts l unless l =~ php_regex}
else
puts '<?php if(false) { ?>'
lines.each{|l| puts l}
puts '<?php } ?>'
end
Hope this is useful to someone...
Has any one written a .ctags.tmcodebrowser code for seeing markdown or
multimarkdown in the CodeBrowser?
Thought I would ask before I spend an inordinate amount of time trying
to figure out how to write the regex for it.
Thanks
__________________________________________________________
Robert Ullrey
Phone: (916) 600-5619
E-mail: robert_ullrey(a)mac.com
Please avoid sending me Word or PowerPoint attachments.
Please send as universally readable RTF files.
See http://www.gnu.org/philosophy/no-word-attachments.html
When I attempt to update a directory with the SVN bundle, I get this error:
ruby: No such file to load -- /Users/offline/Library/Application
Support/TextMate/Support/bin/shelltokenize.rb (LoadError)
shelltokenizer.rb _does_ exist, however -- it's in ~/Library/Application
Support/TextMate/Support/lib.
If I symlink it into ../bin, I get this:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/Support/format_status.rb:4:in
`require': No such file to load -- /Users/offline/Library/Application
Support/TextMate/Support/bin/Builder.rb (LoadError) from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/Support/format_status.rb:4
-:13:in `write': Broken pipe (Errno::EPIPE) from -:13:in `puts' from -:13
from -:13:in `each_line' from -:13
Obviously this last is not supposed to happen under any circumstances, but
it did seem like a possible quick fix at the time :)
Anyway, there appears to be a bug in that bundle.
I have TM build 1215, if that makes a difference -- wasn't there supposed to
be a new release coming soon?
--
Chris R.
======
Not to be taken literally, internally, or seriously.
Is there a way to have an auto saving and auto loading of projects?
I work on two computers, and I often have TextMate running on both.
When I synchronize files (using http://www.cis.upenn.edu/~bcpierce/
unison/index.html), TextMate picks up the changes automatically and
visually tells me a file is not saved. However there is no visual
clue that a project is not saved, and changes done to the tmproje
file are not picked up automatically.
I guess I could close all my projects before synchronizing, but I
find it really convenient to have TextMate running all the time.
(By the way, projects are a great feature and they make my working
with many TeX files much easier and more efficient.)
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Hi all,
I just changed the python new function command to do some fun things
when one of python's 'special methods' is the name used for the new
function. So now, if you press ⇧↩ after typing a word like "setattr",
"cmp", "repr", or "init", you'll get a function that looks like:
def __setattr__(self, name, value):
pass
or
def __cmp__(self, other):
pass
I hope that people find it useful. The one downside to this method is
that if you want to name a function the same way as one of these special
methods (but without the underscores), then using ⇧↩ will not work as
before. So in that case use the "def" tab trigger.
Also, we may want to figure out a way to get these to execute with the ⇥
key instead of using ⇧↩
In general, I'm surprised that there hasn't been more progress on the
python bundle, given how many people claim to use it.[^1] I suppose I'm
as guilty for this as anyone. Anyway, us TM python users need to start
adding useful stuff to the bundle. It's hard to think of things, given
that the language is pretty low on extraneous baggage, but I'm sure
there are places where we can speed ourselves up.
-Jacob
[^1]: http://macromates.com/wiki/Polls/WhichLanguageDoYouUse
The one thing preventing me from making a complete switch to textmate
is the lag when the app regains focus when viewing a project
contianing folders on network mounts.
I noticed that the manual mentions this behavior, and also says it
will be addressed in a future release... Anyone have a time table
around this?
Thanks,
Ben
------
http://macromates.com/textmate/manual/working_with_multiple_files
2.1.1 Auto-Updating Projects
Currently updating is done when TextMate regains focus and can be slow
for some network mounted disks, in which case you may want to settle
for only adding individual files to the project (which can be grouped
and re-ordered manually to mimic the structure on disk).
The refresh delay for network mounted disks will be addressed in a
future release.
Hi!
I recently noticed, that alt+F2 invokes the spelling menu. Really
good. But spelling errors are recognized, when I type a blank symbol.
So I have to move the cursor back and type alt+F2. Is it possible to
invoke the spelling menu for the last misspelled word? And perhaps
there could be an own TextMate spelling menu which has shortcuts for
the entries.
Helge
Hi,
I'm a new to textmate and loving it so far. i have a couple of
questions that i've saved up after my first week of use that i was
hoping someone could help me with:
* i find that snippets make it easy to add text - but i'm not so sure
how to modify existing text. e.g. i find i am always commenting out
code in css, so i added this snippet (and bound to a key):
/* $TM_SELECTED_TEXT */
great! ok, now how would i remove comments? (or even better, how to
toggle comments on the current line?)
* hard-wrap: i know textmate doesn't support this out of the box, but
with vi i always used "fmt". so here's my command which i bound to a
key:
fmt << ___END___
$TM_SELECTED_TEXT
___END___
this isn't ideal (what if the text has ___END___ in it? fmt barfs on
non-ascii, and i always get an extra newline.) is there a better way?
* some snippets show a series of options, which you cannot select (they
just get erased when you start to type.) what's the idea - just a
simple reminder - or am i using it wrong? e.g. in the css bundle:
list-style-type: ${1:none/disc/circle/square};$0
why not just make 4 snippets - so then you get the popup and can choose
which one? (so i could hit '1' instead of typing in 'none'.)
well, i've got lots more questions, but that's probably enough for now.
:jason
Hi,
when writing in languages using accents (e.g. italian)
one frequently types \`e or \`o (or \"u etc).
The LaTeX bundle has the annoying habit of doubling
the ticks or backticks (or the double quotes) even
immediately following a backslash \
This seems inappropriate; the sequences \`' and
\"" have no use I presume. Is it possible to keep
the doubling of ticks except when immediately
following a backslash? I know I can disable the
doubling completely, but I would like to keep it in
other cases.
Thanks,
Piero
Hi!
How do I navigate from a method call to the declaration of said method?
In xCode I would command-double-click the method call.
BTW, I am new to the list and am just re-discovering TextMate. I had
looked at it once before. At that time it lacked the one key feature
for me: code completion. Now it is a killer app!
Pierre
---
Pierre Bernard
http://www.bernard-web.com/pierrehttp://www.houdah.com
Hi!
When working on a file, I would at times like to switch back to xCode
to:
- set a breakpoint
- use the better code sense implementation
- ...
I see no such feature.
TIA,
Pierre
---
Pierre Bernard
http://www.bernard-web.com/pierrehttp://www.houdah.com
Hi to all,
Small side question regarding the focus toggling between Drawer and window.
After the first toggle ctrl shift, the shortcut doesn't get me back to
the editing window using the same shortcut at the curser.
I was wondering,may be if it is expected, or something broken from my side.
regards, marios
Hello,
Is there an existing command to run "make" in the current directory,
or should I make one?
I'm working on a LaTeX paper with sereval people who use emacs, and
the building process is done using a Makefile. I looked at the LaTeX
"Typeset and View" in the bundle editor, but it seems that it's
always adding options to TM_LATEX_COMPILER and cannot simply be used
to call make. (I may have missed something there, I'm a fairly new
TextMate user).
Thanks for any suggestion.
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Hi,
I'm fairly new to TextMate - I use it to develop Java applications
and my website in an academic enviornment. I followed directions on
the TM website to make TM my default Cocoa Text Field editor in OS X
(from here: http://macromates.com/textmate/manual/
using_textmate_from_terminal). I press splat + ctrl + E in nearly
any application* and I can edit the field with TM. This is a
fantastic feature to which I have grown addicted.
However, I find myself ssh-ing into servers around campus and I can't
use TM to edit files in the shell (since the EDITOR variable is
obviously local to my machine). Is it possible in my .bash_profile
on remote servers to open files in my local TM? This would be great...
I'll conclude by saying that I have very little *nix knowledge, so
please be gentle!
Thank you for your help - I've learned a lot on this list.
- Jerzy G.
*Firefox text boxes don't seem to work - I presume it's not a Cocoa
text field?
Hi guys,
I just started to reuse LaTeX again, there's been a lot of really
great things going on since the last time I used it, so awesome job!
I like how you've added the (fold/end) markers for each section/
subsection, but might I suggest adding the text in \label to the
"end" part of the snippet, so as to remind the user what section they
are looking at the end of?
So, currently the section snippet looks like:
\section{${1:section name}}\label{sec:${2:${1/(\w+)|\W+/(?1:\L$0:_)/
g}}} % (fold)
${0:$TM_SELECTED_TEXT}
% section (end)
I'm thinking something like this (which works w/o damaging anything)
% section ${2} (end)
But for some reason I find this more handy (which unfortunately hoses
the folding):
% section (end:${2})
It's easy enough for me to keep it in my own bundle, but I figured
others may find this useful as well.
What do you think?
-steve
Hello,
A while ago, I was told that I could specify what latex command get
run when I "rebuild" a latex file using the "TM_LATEX_COMPILER"
project option. Unfortunately the only place I found where I can
specify shell variables is in the global preferences, and I would
like of course such variables to be project dependent. Is there a way
to do so?
Another thing I would like is to keep the "compiling" window open, so
that I can look at the warnings and messages (right now it closes
after compilation). I could not find this window in the "Window"
menu. How can I keep it open?
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
The 'constant_placeholder' definition incorrectly matches the '%s' in
a literal string '%%s' and highlights it; it should match the '%%'.
Fix: in the constant_placeholder definition, change:
match = '%(\([a-zA-Z_]+\))?(0|\-|\+)?([0-9\.]*)?[diuoxXfeEgGsrc]';
to:
match = '%(\([a-zA-Z_]+\))?(0|\-|\+)?([0-9\.]*)?[diuoxXfeEgGsrc%]';
Based on suggestions from Allan I've revised the Fetch Categories command to
work with a multi-select menu (using osascript). You can now just choose
multiple categories at once and it will insert the text "Category:
your_category" for each selected item. Once again, this is only tested with
Wordpress on my end, so I'm curious to hear if it works with other blogging
software.
I have also made the command available for download at:
http://blog.circlesixdesign.com/downloads/FetchCategories2.zip
I'm having a lot of fun writing commands and snippets, but I'm no
programmer. If anyone sees fit to clean up the code, feel free, and I'd
love a copy to learn from if you do.
Brett
Rather than try to share my very specialized autotag bundle, which requires
Wordpress with the Ultimate Tag Warrior plugin and my Autotag mod, I thought
I'd share the process and see if I get any feedback. I am not sure if this
has been done before, or if it's just too much trouble for most people to go
through, but it was a fun exercise.
Here's my blog post on the project:
http://blog.circlesixdesign.com/2006/10/01/hacking-xmlrpc-wordpress-and-text
mate/
I'm open to any feedback, criticism or suggestions.
Thanks,
Brett
All,
Is there a good way to determine a reverse mapping from a keyboard
shortcut to its purpose? Often I'd like to know if a given shortcut
is already used, but I don't know how to search for it easily.
I know about the "Show Keyboard Shortcuts" feature (invoked via
control-option-command-K). It shows the shortcuts for all bundles,
but the keystrokes are written with the fancy Apple glyphs instead of
easily searched words like "control-option-command". Is there a
simple way to enter these glyphs from the keyboard to make this
search easier? I've sometimes resorted to scanning the list for a
glyph of interest, then copying it to the clipboard and pasting it
into the find box, but I'd like a more direct way.
Also, I don't know how to generate a list of keyboard shortcuts for
built-in features not found in bundles - is there a way?
Thanks,
Michael Henry
When I attempted to use HTML > Insert Entity, I got the following
text inserted before the entity:
2006-10-01 17:58:18.374 CocoaDialog[3175] GrowlCode: App identifier
or version don't match. Doing nothing.
Obviously, this is GrowlCode's fault, but any InputManager could drop
things on STDERR and mess commands up. I've tried adding "2> /dev/
null" at strategic points in the Insert Entity command, but it
doesn't seem to be working (I don't really talk bash, as I've used
zsh for years, so it's possible I'm going about ignoring STDERR in
the wrong way — shouldn't be a difference, though)
I've uninstalled GrowlCode for now, but does anybody know of a way of
keeping irrelevant error messages from being inserted? I nearly ended
up with a very confusing-looking eBay auction :)
Thanks
--
John Yeates
All,
Is there a keyboard shortcut for activating the Replace-related
buttons in TextMate's Find dialog box? I know about the relatively
new shortcuts for activating the checkboxes (Regular expression =
command-option-r, Ignore case = command-option-i, Wrap around =
command-option-w), but is there a shortcut for the buttons
(especially Replace All, but also Replace, Replace & Find, and
Previous)?
Thanks,
Michael Henry
I was wondering what is the best way to import Excel tables into Latex
file using Textmate? I tried copy/pasting a table into Textmate, then
using "Convert Selection to Table". However, this does not result in a
correctly formatted table due to the way the Excel table is pasted.
Anyone have experience/solution for this? Thanks
Will
Hi,
I'm new to the Subversion bundle, and am having some trouble getting
the status and log functions to work:
I select Subversion|Status, and a nice HTML window comes up showing
the status of the pending files. When I click commit or revert,
nothing happens. The entire HTML page's buttons do nothing. The
links to the files work, but not commit/revert, etc.
Also, the subversion Log cmd gives me the following error:
NoMethodError
reason: undefined method `[]' for
nil:NilClass
trace:
/usr/local/lib/ruby/1.8/rexml/source.rb:131:in
`initialize'
/usr/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:
126:in `stream='
/usr/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:
100:in `initialize'
/usr/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:
8:in `initialize'
/usr/local/lib/ruby/1.8/rexml/document.rb:
178:in `build'
/usr/local/lib/ruby/1.8/rexml/document.rb:45:in
`initialize'
/Applications/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/format_log_xml.rb:164
Any ideas?
Thanks,
Dave.
Hi,
I am pretty close to set up my development environment exactly the way I
want it.
The TXP Bundle runs much nicer now, with no warnings in Console output.
In the meanwhile, while using it and testing along, I came across a
problem that has puzzled my for hours.
I hope, that someone might be able to help.
I have a project Folder that uses a local document root Folder in my
Site folder for Testing, no problems with that.
However in order to use the completion command, for completions, that I
want for a special Tag <txp:article />, I have a Preference Item, that
contains the following command:
{ completionCommand = 'find "$TM_DIRECTORY" \
-name "$TM_CURRENT_WORD*article.txfml" -maxdepth 2 \
-exec basename "{}" \;|sort'; }
as described in Section 4.2 of the manual, in order to provide the
filenames of a special folder, that contains the needed filenames that I
need to provide as attribute values for the above mentioned tag.
My first problem here is, that I would need maxdepth 4 and even worser,
maxdepth 4 and 5.
I tried to alter the command, setting maxdepth to 4 and 5, since I need
to maintain the directory structure of my site folders.
This does not seem to work.
The second problem is, that I also have some other completions for Tag
names and attribute names, which are sitting normally in arrays, in some
other pref Items.
I set up another pref Item,
with :
{ disableDefaultCompletion = '1'; }
and scope :
text.html.txp entity.name.tag.single.article.txp
which is the same scope that I have for the above command, in order to
suppress the default completions on article form attribute values,
but the only thing that the escape key cycles through, are the near by
found values in the open document.
What am I doing wrong here ?
(Note also, that the file endings I have, have the form eg.:
.article.txfml, comment.txfml, file.txfml, etc, which are needed,
to fine grade those completions based on this article form completion
command.
Any help appreciated.
regards, marios
Hi again, to all,
I am writing this to get a couple of evaluation thoughts together, on
the Language Grammar, that I wrote for the TXP Bundle.
It is not solely related to that Bundle only, so you may find this
useful, if you attempt a similar approach for other Languages.
I have spent the last two days inspecting this Grammar in detail and
iterating over the current approach and trying to extract the major
mistakes, so I can refactor the Grammar and make it more accessible to
TM's Automation Features.
In a nutshell, the Grammar is largely inspired and adapted from the
experimental XHTML Bundle, following a modular approach,by referencing
repository Items with include rules.
The difference is, that in the experimental XHTML Bundle, each
repository Item is referenced a in recursive manner, and resolves in one
exclusive repository Item that stands for the html tag for html tags as
exclusive root node.
Textpattern Tags on the other hand do not have this requirement, so each
repository Item gets referenced within an include rule,except for their
attributes and values, which do not have an include rule at the root.
In order to make those non root included items easily accessible a
naming convention was used, so that after reformating the code in the
Bundle Editor appears exactly below the Repository Item, that references
them, where there is one for each Tag.
Example:
author-tag =
{
};
author-tagatts = {
};
The major difficulty is in the distinction of single, container, plugin
and conditional tags, plus to get scopes also for the attribute values.
which currently leads to matching conflicts, therefore, the current
version of the Grammar doesn't have full distinction for attribute
values, mainly on the single plugin tags.
One verification, that I have done about the shortcoming of this
Grammar, is that it is wrong not to have a simple include for quoted
single and double strings, which is now the case.
For instance if I used cntrl shift < and then typed txp:article space
and then get the automatic closing quote insertion, the cursor will be
in between "".
At this point verifying Scope with cntrl shift P, I should have at least
a scope of string.quoted.double or any other dist. available.
If this is not the case,all the additional automation possibilities are
lost since I can not have a snippet insertion conditional.
On the other hand, while including a rule for such a scope left me with
the problem of specificity of such rules, making it again difficult to
have a distinct scope of attribute.value, that would match only a
string, that is in between the quotes, but has another scope then
string.quoted.double
To be continued,
regards, marios
Hello. Can I "save a file with line breaks" i.e. have TextMate save
a text file with hard wrap?
(I did a little googling on this topic w/r/t TextMate and found the
answers fairly confusing.)
Thanks!
--andreas
Is anyone out there in TM land using Wordpress and Ultimate Tag Warrior? If
so, I've managed to combine some of my mods and make the UTW tags accessible
from TextMate. There's a whole bundle involved, and you have to replace
your xmlrpc.php file (after backing it up, of course). It's working really
smoothly on my end. If I type fetchtags and hit tab, it gets the entire
database of tags, sorts it and returns a multi-select menu. When you finish
picking tags it inserts a line in the header with a comma-separated list of
your chosen tags.
It's got the functionality to save and modify new and existing tags.
I also got it working with my AutoTag mod, so that it can read your current
post and suggest tags based on a fuzzy search of your database. I could
easily add the Yahoo suggest if anyone was interested, but I've never liked
the results I get anyway.
My biggest question is this, sorry it took me so long to get around to it...
After I've accepted an entire document as input, chosen tags and have a
string ready to print, what's the most elegant way to make sure that string
gets inserted in the blog post headers rather than at the end of the file?
I've attached a few simple commands I hacked up to practice my ruby.
There may be better ways to do these so any input is welcome.
The first one "Show TODO - ignore list" is pretty basic. On the
first line of the script it takes an array of patterns of files to
ignore while parsing your project. Its should be pretty easy to
enter your list even if you don't know ruby, just follow the
example. Ideally I'd like to make it so you can set the list
externally somehow to make it easy.
I wrote this because the TextMate.each_text_file was parsing
everything in the project folder, regardless if I removed it from the
project or not. I have a "vendored" version of edge rails in one of
my project folders, and seeing a list of all of DHH et al.s comments
was hindering my use of the TODO.
The other two commands go together.
"Project Statistics" displays the total word count, line count, and
bytes on the tool tip for the entire project.
"Project Statistics - Full Output" displays the same information for
each file in the project as well as the totals as html
Both of these commands use each_text_file with an ignore list as
well, so they suffer the same limitations and advantages.
I wrote these cause I had to work on a horrible web system from the
pre-standards days all day today and I wanted to see just how ugly it
was. I found out - they have more javascript for their drop down
menus alone then the entire prototype library contains.
William

p.s. Allan: If I run any of these commands, regular todo or my
versions, on a group of files from a top level directory like /Users/
username my textmate will lock up for a very long time, at least
unless of course I have a lot of ignore flags set. Not too hard to
avoid, certainly less than ideal. Is there a better way to iterate
over project files?
p.p.s Thank you for all your hard work and amazing program.
I had no luck changing the key using the DefaultKeyBinding.dict route :(
On Sep 22, 2006, at 1:26 PM, textmate-request(a)lists.macromates.com
wrote:
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: September 22, 2006 12:59:04 PM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] re: crtl-esc not activating the bundle menu
> anymore
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 22/9/2006, at 18:23, ira cary blanco wrote:
>
>> > > I tried every fixes I read about: Setting the prefs in
>> Terminal (I
>> > > don't remember the exact command)
>> > What happens if you set it to another key than ⌃⎋?
>> How can it be set to another key?
>
> http://lists.macromates.com/pipermail/textmate/2006-April/009955.html
Ira Cary Blanco
Marketing & Media
Samson Technologies Corp.
Samson | Hartke | Zoom
voice: 631.784.2200 x107
fax: 631.784.2201
email: blanco(a)samsontech.com
web: samsontech.com
Is it possible to change Ctrl+S shortcut to Ctrl+R?
I often use bash's Ctrl+R for analogous search mode, so this shortcut
makes more sense to me.
BTW: I coudn't find Cltr+S anywhere in menu. Where is it?
--
regards, porneL
Suppose I have a myFile.html file containing a link
<a href="myFile.html#myAnchor"> Go to anchor! </a>
which points to an anchor in the same file:
<a name="myAnchor"> I knew you would come here! </a>
When I load the file in the TextMate HTML window,
apparently, the link to the anchor does not work (when
I click on it, the HTML page goes blank).
What am I doing wrong?
Thanks,
Piero
I am migrating from emacs to textmate. Emacs has compile command. That
basically allows you to run lets make in the directory of the current
file. Is there a bundle out there already?
OK, I'm a dummy! After searching the lists and manual and help, I
still can't find the way to reformat my .java code in TM. How do I
do that?
Thanks!
-- Owen
Owen Densmore 505-988-3787 http://backspaces.net
Redfish Group: 505-995-0206 http://redfish.comhttp://friam.org/
When I post to my blog from TM, it works fine, but a new line gets inserted
at the top of my post:
2006-09-29 23:56:35.942 open[1013] No such file: /name-of-my-post
And then, of course, it doesn't open up in my browser. I'll also note that I
have been able to post to other blogs properly... so it must be something
with my typo configuration?
Thanks!
Adam
Howdy.
I'm in the middle of writing a live updating command for ZenTest
autotest.
I want to use the RubyMate error handling stuff to make all the log
links live and such.
Is that core functionality usable separate from RubyMate?
thomas Aylott — subtleGradient — CrazyEgg
Hello -
I mistaken removed the File Pattern that appears in the Advance >
Folder Reference section of the Preference Panel.
Can someone send me the default File Pattern, or let me know how to
reset it...
Thanks!
- Chris Ryan
I am using TextMate 1.5.3 and the latest bundles checked out from the
repository. When I open bubbleSort.java [1] in TextMate, some of the
comments are highlighted as comments; some aren't. Bug?
Also, when I select all text in the file then do Text > Indent
Selection, the file isn't properly indented. (Note especially the
last few lines of the file.) Is this a bug, or does the command
simply not handle inter-method Java indentation?
Thanks,
Trevor
[1] http://www2.latech.edu/~box/ds/bubbleSort.java
Hello!
I try to develop my own commands. So I'm new to Ruby, my commands
sometimes are buggy. How can I easily debug my commands. How do you
do it?
Helge
I've attached a complete rewrite of the Wikipedia linking code. It's a
little more modular, a lot more inclusive and a bit smarter than before.
I am definitely still open to input (Haris ;-)) on my coding technique and
anything that can be done to improve the command. I'm just getting my feet
wet with Ruby, regular expressions and TextMate in general.
If you're currently using the command I distriubted previously on this list,
Brett Inc. "strongly urges it's users to upgrade to this latest release".
I set up WordPress blogging per the help and screencast instructions. When I
fetch posts (I just did an svn up on the bundle, so I¹m at v.5327), I get
the following error:
/usr/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc': HTTP-Error: 406 Not
Acceptable (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:31:in
`getRecentPosts'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in
`fetch'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:545:in
`popen'
from /Library/Application Support/TextMate/Support/lib/progress.rb:11:in
`call_with_progress'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:545:in
`fetch'
from /tmp/temp_textmate.mU5BiJ:3
The setup is:
# List of Blogs
#
# Enter a blog name followed by the endpoint URL
#
# Blog Name URL
finesite http://admin@myfinesite.com/wp/xmlrpc.php
Is this a familiar result and is there something stupid I¹m missing? BTW:
There is an admin user for the blog and I¹ve tried:
* siteadmin(a)myfinesite.com
* admin(a)www.myfinesite.com
Not sure where to go from here. Help appreciated!
Thanks
This is my template command
if test \! -e "$TM_NEW_FILE"; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
TM_PACKAGE=`sed <<<"$TM_NEW_FILE_DIRECTORY" 's#.*classes/
##'|tr / .`
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< class.as > "$TM_NEW_FILE"
fi
And TM_PACKAGE comes out blank.
what am I doing wrong?
On 26/9/2006, at 19:52, Ketan Anjaria wrote:
> In a previous version of textmate the following code for a template
> worked to create a TM_PACKAGE variable
>
> TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n 's#.*classes/\
> (.*\)#\1#p'|tr / .` \
Try this: TM_PACKAGE=`sed <<<"$TM_NEW_FILE_DIRECTORY" 's#.*classes/
##'|tr / .`
I have only had a chance to test this on Wordpress. It needs to be placed
in the Blogging Bundle because it references the blogging.rb file in that
support directory.
If anyone using the blogging bundle would be willing to give this a try and
let me know if it works with other platforms, it would be greatly
appreciated.
Thanks,
Brett
Dear list menbers,
I have the following problem:
I received a plain text file utf-8 encoded written on a Windows PC. I
could open this file and I could edit this file perfectly.
After my modifications I saved this as utf-8 with LF. OK.
Then I tried to import the content of that file in a database. This
didn't work, because the database couldn't parse the first line.
Then I opened that file in a HexEditor and I saw that the first line
begins with EF BB BF. After looking at this I remembered that these
bytes are the BOM (Byte Order Marker) for utf-8 and Windows PC's make
often use of it to save utf-8 text files.
My problem is now that I couldn't find a way to save my text file as
utf-8 without BOM.
I had to use jEdit for that, because in jEdit you can select the
encoding utf-8 or utf-8y (meaning with BOM).
Is there any chance to implement this in TextMate? Or, may be better,
that TextMate saves all utf-8 files without BOM, because I think this
marker is irrelevant within utf-8. It only makes sense in utf-16/32.
All the best,
Hans
Hi,
After reading on this list about all the great recent updates to the
Latex bundle I decided to svn-up all the bundles I've installed:
> cd /Library/Application\ Support/Textmate/Bundles
> svn up
Then I used the "Reload Bundles" command from inside TextMate.
Now an odd thing is happening. The old key equivalents don't seem to work
for the Latex-bundle commands anymore, even though they are the same in
the menu. Similarly they do not appear in the Use Bundle Item... dialog
when I summon it with Ctrl-Cmd-T. Suggestions? TIA for your help.
-dave
This little command is just the most basic proof of concept of a
working live shell command.
You can easily hack it up to run any random shell command you want.
I'm planning of using something like this to implement a bunch of
stuff soon.
TextMate Bookmarks, live updating.
ZenTest autotest
Mongrel server / Rails app log tail
etc...
Feel free to suggest other interesting stuff.

thomas Aylott — subtleGradient — CrazyEgg
Hi!
I really like the blogging bundle. It's amazing.
But each time I close the window, I am asked to save the file. I
think there are few, if at all, who save their blog entries as files.
Wouldn’t it be a better behavior to ask for post to blog? Also I
naturally type apple+s, when I am finished. So, I added a copy of the
post to blog command and associated this shortcut to it. Storing the
file in this case seems similar to post it. What do you think?
Helge
Hi,
I could swear I have used a command that would reformat something like
<tr>
<td> </td>
<th id="number">N</th>
<th id="percontage">%</th>
<th id="number">N</th>
<th id="percontage">%</th>
</tr>
and "ex/plode" it to:
<tr>
<td > </td>
<th id="number" >N</th>
<th id="percontage">%</th>
<th id="number" >N</th>
<th id="percontage">%</th>
</tr>
for easy option+selection. I wanna say it was part of subtlegradient,
but cant find it anywhere.
(it probably does not help that somehow I have ended up with 3
subtlegradieent bundles.)
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
Hello Textmate-Users,
i'd love to see a solid block-cursor in Textmate, configurable by the
user : blinking or not, block or default as it is. Maybe i'm gettin'
old, but i find myself frequently searching for the cursor since I
switched to working on black.
I'd like to read u'r opinion on this and for sure maybe there exists
a osx-hack already to achive this without bothering Allen ;-)
Greets, Andreas
---
»In a perfect world… spammers would get caught, go to jail, and share
a cell with many men who have enlarged their penisses, taken Viagra
and are looking for a new relationship.«
If anyone is interested, and happens to have Rmagick installed, I added on
to the image insertion drag and drop command in the blogging bundle to
automatically thumbnail and link with titles, alt tags, etc. It gives you a
drop down menu asking you whether you want the thumbnail, the full image, or
the thumbnail linked to the full image (a rel=lightbox tag is included for
those using it).
Like I said, it requires Rmagick (and ImageMagick or GraphicsMagick) to be
compiled and installed. It bootlegs on the original command for everything
else.
Brett
A common refrain on this list is being able to edit files remotely. I
explored various solutions (transmit, subversion, hotkey), but
decided that ultimately what I wanted was something that would just
watch one or more local files I was editing and then as they change,
automatically upload them to a remote destination.
So I spent some time last night hacking together syncmate (python
script), attached:
Usage: syncmate <file> [<file>...] [username@]host:/remote/path/
Watches one or more files for changes and copies to host whenever the
file changes locally. The first time called, starts an instance of
syncmate
as a daemon. Each subsequent time called registers new files with the
running
daemon.
Usage: syncmate --list
Lists registered files
Usage: syncmate --quit
Causes daemon to quit
It requires the Growl python bindings be installed for notification
(btw, I had trouble with the Growl python bindings occasionally
causing python to crash, but I think I've narrowed the problem down
to attempting to use a custom icon in the notifications, so I've left
that out.)
Anyway, I find this useful in combination with textmate, so I figured
I'd post it here. Hope someone else finds it useful.
j.
The darwin ports email list is temporarily shutdown and I couldn't
find any other help online. thought one of the experts here could
help since I need this to use LaTex with TextMate.
I'm trying to install teTex on my iBook G4 and have installed Xcode
2.4 and DarwinPorts 1.3.1, I get the following error.
Any ideas on what I can do to get Tex on my Mac?
Thanks
Dennis
/usr/bin/ld: warning weak referenced symbols:
_getaddrinfo
/usr/bin/ld: Undefined symbols:
_XCreateGC referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XCreatePixmap referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XFreeGC referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XPutImage referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XAllocColor referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XCreateImage referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XDefaultColormap referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XDefaultDepth referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XDefaultScreen referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XDefaultVisual referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XFreeColors referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XGrabServer referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XParseColor referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XQueryColors referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
_XUngrabServer referenced from libXpm expected to be defined in
/usr/X11R6/lib/libX11.6.dylib
collect2: ld returned 1 exit status
make[2]: *** [xdvi-xaw.bin] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
I noticed that there's an XHTML bundle in the repository and then
there's the HTML bundle included by default. I'm wondering, if
there's an XHTML bundle, why does the default HTML bundle use XHTML
in its snippets? Can we move that nonsense into the XHTML bundle and
let those that want it install it? (Perhaps it should be included by
default as well.) Just curious.
Rob
Hello,
Ok, I'm probably missing something obvious here, but I can't find
anything in textmate to let you run your tests without going to the
terminal. With everything else in there, it seems like it would be
something included.
Anyway, I took a few minutes from work to do a quick hack to the
bundle (my changes attached). I bound the run test command to command
- option - G. If the textmate cursor is in a controller or model, it
will run the associated test file. If the TM cursor is in a test file
(unit or functional) it will only run the test method that the cursor
is in (so that when I'm writing a test, I can run it real quick). If
the cursor is outside of a test method (test_*) it will run the entire
file.
I added a file to the bundle ( bin/test_helper.rb) and a command.
I also might have found a bug in the bundle. See the comments in
bin/test_helper.rb
Please let me know if there already is something out there that would
probably be far more thought through than this quick hack.
Thanks,
-carl
Hi!
Since yesterday I get the following authentification request while
trying to do an svn up:
Authentication realm: <http://macromates.com:80> macromates.com
Password for 'root':
When I interrupt it with ctrl+c I get:
subversion/libsvn_ra_dav/util.c:826: (apr_err=170001)
svn: PROPFIND request failed on '/svn/Bundles/trunk'
subversion/libsvn_ra_dav/util.c:296: (apr_err=170001)
svn: PROPFIND of '/svn/Bundles/trunk': authorization failed (http://
macromates.com)
I'm using the mateup-script for checkouts but manual checkouts didn't
work as well.
Anyone having the same problem or is there a solution?
Niels
--
Jack Sparrow: Me? I'm dishonest, and a dishonest man you can always
trust to be dishonest. Honestly. It's the honest ones you want to
watch out for, because you can never predict when they're going to do
something incredibly... stupid.
-- Pirates of the Carribean: The Secret of the Black Pearl
Hi,
so I'm posting this last message to share the "final"
version of the Label Table command; of course it is
very rudimentary and would need additional work, but
for me it does exactly what I need, so maybe it can
be useful for others too. I hope Haris or Allan like
it and add something like it to the Latex Bundle in
the future (who knows what's in the mind of masters
anyway).
I guess it is not possible to attach files from the web
gmane interface, so I am posting the command inside
the text. After all it takes 2 minutes to join back the long
sed commands into one line, copy and paste into the
bundle editor... Input: entire document, Output: HTML
file, scope: you choose.
The command creates an HTML window listing all the \label-s
of the topmost open window (only one file at the time, sorry).
Each label in the window is clickable, and clicking inserts text
at the insertion point in the open TextMate window.
If the label name starts with "eq", then \eqref{label_name}
is inserted; otherwise, only \ref{label_name}.
Best way to use the command: launch it the first time, the
HTML window opens; resize and put the window in a handy
position; then never close it, when you need it just issue the
command again (the window is refreshed and jumps over the
other windows).
Thanks to Allan for help.
Enjoy and improve,
Piero
TEXT OF THE COMMAND:
# parse the file for \labels (plus two lines following them)
sed -n -e "/\\label/{=;N;N;G;p;}" |
# separate labels from each other, the html way
sed '/^$/d' |
sed 's/^\([0-9]*\)$/\<p\>\<\/p\>\1/' |
sed 's/\(.\)$/\1\<br\>/' |
# the following two sed commands must be on one line each!
# do not insert spaces when joining lines
# insert active javascript links: for equations (we want \eqref here)...
sed 's/\\label{eq\(.*\)}/\<a href=\"javascript:TextMate.system
(\"\/usr\/bin\/osascript \&\>\/dev\/null -e @tell app \\\"
TextMate\\\" to insert \\\"\\\\\\\\eqref{eq\1}\\\"
@ \&\", null);\"\>\\label{eq\1}\<\/a>/' |
# ... and for the rest (sections, theorems etc.: we need \ref)
sed 's/\\label{\([^e][^q].*\)}/\<a href=\"javascript:TextMate.system
(\"\/usr\/bin\/osascript \&\>\/dev\/null -e @tell app \\\"
TextMate\\\" to insert \\\"\\\\\\\\ref{\1}\\\"
@ \&\", null);\"\>\\label{\1}\<\/a>/' |
# I used @ instead of ' for escaping reasons - put the quotes back
tr "@" "'"
In a previous version of textmate the following code for a template
worked to create a TM_PACKAGE variable
TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n 's#.*classes/\
(.*\)#\1#p'|tr / .` \
basically it takes the new file directory like this
/Users/ketan/Documents/client/project/development/classes/client/
project
And It turns the "/" to "." and removes everything before the classes
so the end result would be
client.project
Any ideas on how to do this ? I am not very good with sed.
Ketan
So this is the .tmCommand file containing the
Label Table command. Please see the preceding
post for description.
The number of messages I sent in the last two days
takes me dangerously close to the status of a
spammer, but I'll keep shut in the future, I promise
(yeah right)
Piero
Hi,
one never really escapes the escape tunnel.
I have a new problem with escapes.
>From the command line I can ask
TextMate to insert a backslash:
osascript -s 'tell app "TextMate" to insert "\"'
I want to do the same from a javascript
contained in an a href link. But I can not find the
correct way to escape things. Allan's suggestion
works perfectly with ordinary text; the following
html code:
<a href="javascript:TextMate.system("/usr/bin/osascript &>
/dev/null -e 'tell app \"TextMate\" to insert
\"TEXTTOINSERT\"' &", null);">
TEXTOFLINK</a><br>
produces a link TEXTOFLINK and when I click on it,
TEXTTOINSERT is inserted into TextMate. But if
TEXTTOINSERT contains a backslash, it is ignored.
A pity since I want to insert a tex command...
What should I write instead of TEXTTOINSERT to
get, say, "\eqref" to be inserted? Yes, I am escape-blind.
Thanks for any help,
Piero
PS hm... no one seems to like my new idea for label
completion. I'll keep it for personal use :)
With this text:
mainNavL1
Doing Control + right arrow will move the cursor first to the
beginning of the word, then to the left of the capital N, then left
of the capital L, and after that pressing the keystroke no longer
advances the cursor -- it gets "stuck" there.
It seems that the numeral ("1" here) causes the problem. If you
start with the cursor to the right of the entire word and use Control
+ left arrow the problem does not occur.
eo
Thanks everyone!
Jacob's note stepped me through the RoR screencast's actions*
Alan's note lead me to the TextMate screencast which starts to unlock
TextMate's bundle and snippet secrets*
And Tom pointed out that I was seeing snippets in use, not really completion.
If these answers lead to a new question its: does TextMate have all its
features when run in Panther (OS X 10.3)? And if not, what am I missing?
Scrutinizing the text insertion screencast I noticed *my version (1.5.3)
is missing the "Automation" menu. Ah-ha!
I find no mention of system requirements or Panther versus Tiger
capabilities in the docs (aside from a couple minor ones). Is there a
version feature comparison matrix somewhere? Maybe that's just for when
you have an entire martketing department!
So, thanks for all the help,
Ivy
I was on vacation for 2 weeks and didn't feel like going through the
60+ TM emails ;) Thanks for the link, creating my own macro solved
the issue.
I hope that in the future, modifications on behaviors such as this
one (that clearly effect every day use) are given a little more time/
thought before being implemented, or at least get documented in a
more "in your face" way, so that I don't have to be worried about
what's going to happen every time TM gets updated ;)
Yann
On Sep 24, 2006, at 11:37 PM, textmate-request(a)lists.macromates.com
wrote:
> What, you didn't get the memo? ;)
>
> http://comox.textdrive.com/pipermail/textmate/2006-August/012725.html
>
> Haris
Folks,
I'm watching Putting Flickr on Rails
(http://www.rubyonrails.com/screencasts) and see the presenter using
TextMate with completion for a new HTML file. Great! How do I "turn it
on"?
Just want to set it and use it. I open a new doc, "application.rhml" in my
rails tree in folder, "layout" and type "doctype" and hit "esc"...nothing
happens - no, I take that back. Textmate beeps at me.
I don't want to become a textmate expert or wade through a lot of
documentation. Is it a bundle setting? A keystroke sequence? Bad karma?
I've gotten pretty good at BBedit in my day, so I'm not daunted by
configuration, but I don't want to (re-)learn unix or vm or whatever to
understand this.
And searching the list archine (http://macromates.com/community) isn't
quickly, concisely yeilding the answer (in the first two pages of results
for "how to use completion".
Please answer this probably incredibly simple question, or point me to the
tutuorial, thread, post or URL where the answer is found.
Thanks,
Ivy
Since I have never used BibDesk in conjunction with TextMate before,
we can rule out #3 and I use option #2 only if #1 doesn't work or
turn up the option I like.
I'm definitely talking about #1, although I was a bit confused
myself, to be honest.
So here are some more details:
(1) I have set the variable TM_LATEX_BIB (there are spaces in the
path, not sure whether that is important).
(2) I type \cite{ and start with the first few letters of a citation
(e. g. King for KingSmithVanderbilt:blablabla). The scope is
text.tex.latex, meta.citation.latex and
constant.other.reference.citation.latex. Sounds alright to me,
although you are clearly the expert here.
(3) I hit escape and nothing happens, no autocompletion or toggling
through my options. Instead, I get OS X' alarm bell.
(4) I hit option + escape and everything works just fine. So TextMate
definitely finds my bibliography file …
If there is anything I can do for regression, just let me know.
Max
PS I will be on a conference Monday through Thursday, so I won't
reply as quickly as I usually do.
Until yesterday, when I entered ":" after a class/id property name like:
.class {
property_name:
As soon as I hit the ":" I'd get ": ;" with a space after the ":"
ready to type the value. Now, suddenly I get no space anymore...
Which is prety annoying because I finally got used to the space being
there automatically... Worse even: when I go to work tomorrow, my
version of TM there is probably going to insert that space and I'm
going to go nuts switching between the 2 versions everyday... :'(
I looked at CSS bundle prefs for PropertyName: { smartTypingPairs =
( ( ':', ';' ) ); } but I don't see where the space came from before
and I didn't change anything there anyway... I don't really care
either if I get the space automatically or not, but it took me a
while to get used to it when TM first started to do that (I kept on
inserting an extra space for like 2 weeks...) so what bothers me is
that behavior changed... again... and I have no idea why.
Happened to anyone else before?
I did remove all the customized bundles and restarted TM fresh, but
the auto insertion of the space is still gone...
Thanks for any help!
Haris,
What a great idea, I saw the commit and thought I'd give it a try.
Unfortunately I didn't have much success.
I have R.app (1.16, R version 2.31) open and running. In the latest
cutting edge I create a new document, choose the R console language
and get the following errors:
> print("hello world")
294:299: syntax error: Expected end of line, etc. but found identifier. (-2741)
> x <- 7
152:163: execution error: System Events got an error:
NSReceiverEvaluationScriptError: 4 (1)
Thanks for all your efforts!
Peter
Hi!
Right now I'm writing on the concept for a thesis and it seems that
the bibliography-autocompletion stopped to work.
I openend the bundle-editor and saw that there was no key assigned
it. When I assign Escape I get text-autocompletion, if I assign alt
+esc I get the same, if I assign anything else nothing happens.
Can anyone verify that? I use built 1258 with an actual SVN-checkout
and Bibdesk 1.2.9 for my bibliographies (but the last one shouldn't
be important, should it?)
Niels
--
“If one would give me six lines written by the hand of the most
honest man, I would find something in them to have him hanged.” --
Cardinal Richelieu
Same here, I was wondering why that function doesn't work anymore. I
don't use BibTeX (it effed up the special characters in my
bibliography, e. g. umlaute and it took me an hour to clean up my bib
file). Instead, I have set the proper TextMate project variable and
it did work before with the same project.
But until recently, I could use only escape to shuffle through
suitable entries of the bibliography without using BibDesk at all. I
definitely prefer using escape over alt + escape, so if there is any
way to get the old functionality back?
Here's another vote against removing the old escape-only command ;-)
Max
I downloaded the Django Templates bundle and it works fine, but I have
to select it as the active language on all of my template files. I
would rather just select "HTML" as the language and have the Django
Template stuff be included within HTML, just like PHP, Ruby, and
Smarty are.
I took a look at the grammar and tried a few things, but was
unsuccessful at integrating them. Could anyone give pointers on how
that integration should work or, better yet, a working HTML grammar
that includes this change?
Thanks.
--
Brad Fults
Hi,
this is a followup to the thread with a similar name,
but I thought it deserved a new thread since I'm posting
a complete solution (hehe - I'm trapped in a hotel room
in Paris, it's raining here...)
So:
1) create a new command "Lable Table" with
input= entire document
output=Show as HTML
2) the command is the following. (I know, I should
post a .tmCommand file, but I do not know how
so bear with me). GMane requested me to split
the commands, but we have here 6 commands
(5 sed and 1 tr) which should be on one line each.
When joining back the last sed command do not
introduce spaces.
sed -n -e "/\\label/{=;N;N;G;p;}" |
sed '/^$/d' |
sed 's/^\([0-9]*\)$/\<p\>\<\/p\>\1/' |
sed 's/\(.\)$/\1\<br\>/' |
sed 's/\\label{\(.*\)}/\<a href=\"javascript:TextMate.system
(\"\/usr\/bin\/osascript \&\>\/dev\/null -e %tell app \\\
"TextMate\\\" to insert \\\"\1\\\"% \&
amp;\", null);\"\>\\label{\1}\<\/a>/' |
tr "%" "'"
3) open a .tex file and experiment. When you click on a label
the argument is inserted. The command and the text
insertion is very fast, and as to usability it's already
better than the standard Label completion (my taste).
Please, some real coder take this stuff and make it into
some serious code, I think the result is pretty amazing
compared with the simplicity. I am not able to extend
the script for multiple files (i.e. one master file and the
\includes), any help?
Ciao,
Piero
Hi list
I am using TextMate full time to write Latex and it's great,
and improving.
One thing I do not like is the CocoaDialog interface to
insert \refs: too slow and clumsy. I (almost) can stand it
for bibliography completion but \refs are too many, too
similar to each other, and too frequently needed, so the dialog
interrupts my workflow. So I started thinking and tinkering,
but my coding skills are too poor (I also sent a msg to this
list asking for help). Finally I think it is better to publish
the idea and let the code wizards code it, if they like it.
My feeling is that this could be the optimal way to insert
references, even better than auctex's.
The idea is very simple: parse the tex file, write
all labels (plus some surrounding text) into an auxiliary
.lbl file, convert this into html, and replace each
\label{...} command with an "a href" to a tiny javascript
command that tells TextMate to insert the label's name
into the source file. Finally, output to HTML. (Improvement:
just search the labels matching a few characters, as it
is now).
Do you see it? This produces an HTML window, with a list of
all my labels, followed by the beginning lines of the
equations (or section titles). More important, each
label is clickable, and when I click on it, the reference
gets inserted into the source file. I can keep the label window
open, so no need to invoke the command over and over.
When I add more equations, I just refresh the window
as necessary.
But I got stuck with some stupid coding problems.
1- Easy to grep the tex file for lines containing a \label
command plus some context. E.g. the following command
outputs line number, plus the \label line, plus two nonempty lines
following it:
sed -n -e "/\\label/{=;N;N;G;p;}" | sed '/^$/d' | sed 's/^\([0-9]+\)$/\n\1/'
2- Easy to save all this info into a file fileName.lbl and
do some rudimentary html-ization (just add <p></p>'s
to separate the labels from each other- you can do much
better I know, but this is fast)
3- Not so difficult to replace each "\label{...}" with the
javascript link. But I got stuck when writing the osascript.
Let me explain. Is is easy to create a link such that, when
I click on it, TeXniscope is activated (e.g.):
<a href="javascript:TextMate.system('open -a TeXniscope', null);">
TeXniscope</a>
Nice! So I said, I'll just insert an osascript telling TextMate to
insert the label reference:
<a href="javascript:TextMate.system("/ust/bin/osascript -e
'tell app \"TextMate\" to insert .......'", null);">\labe{...}</a>
(of course, "....." must be replaced in both places with the \label's
name, using some bash, and some string must be joined etc etc)
This doesn't work. Why?? even the simple
<a href="javascript:TextMate.system("/ust/bin/osascript -e
'tell app \"Finder\" to activate'", null);">Finder</a>
does not work. This must be some escaping trickery.
Could some pious wizard explain what's
wrong? and even better, like the idea so much to code it?
I do not think it should be hard (for you :).
Regards,
Piero
Hi,
somebody help me, I guess it takes just a look at this code
to spot what's wrong (for you):
---------------------------------------
<html>
<head>
<script>
function letsTry () {
TextMate.system("/usr/bin/open -a /Applications/TeXniscope", null);
};
}
</script>
</head>
<body>
<span id="letsTry">
<a onClick="letsTry()" href="#">Let's Try</a></span>
</body>
</html>
---------------------------------------
I put this in a p.html file. I then create a command in TextMate
that does " cat p.html " and outputs to HTML. The HTML appears,
but of course clicking on the link does nothing, not certainly
opening TeXniscope as hoped. Documentation(s) perused,
sleep hours lost. Any idea?
Piero
Hi,
It would be cool if I could see the list of the files contained in
the folders
on the main window when folders in project drower are highlighted.
Currently, when the folder is selected, the main window continues
showing the file I'm currently editing.
Even when no files are open, which means that the drawer and the main
window,
the window shows nothing but the large TextMate icon.
It would be great if we could get a list of the names of the files
containted in the folder.
Additional information such as the date created and the date last
modified would
be nice.
This, I belive, helps those who use long file names as well as people
who use similar prefix
for file names.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
My subversion bundle "Commit" command stopped working - I get the following message:
/Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:12:in `require': no such file to load -- /Users/ryan/Library/Application Support/TextMate/Support/bin/shelltokenize.rb (LoadError) from /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:12
I've searched the archive and I've seen a couple of similar threads, and like some of them, this also only seems to apply to commit (I can still use the diff commands). Maybe I'm missing something, because the recommendations I found didn't work or didn't apply. I've added TM_SVN (/usr/local/bin/svn) to my TextMate shell variables, and I tried adding it to my .bash_profile and changing BASH_ENV in the preferences. The other recommendations centered around the version of Ruby, and I'm running Tiger and have version 1.8.2 already installed.
I'm running TextMate version 1.5.3 (1258), and have the latest subversion bundle installed. Any assistance would be appreciated.
Thanks,
Ryan
These are my three variations of the "Lucky Linking" idea, where the command
searches Google with the selected text and returns the "I'm feeling lucky"
result as a link.
I have modified all three commands so that they require no extra support
files, but they do require some standard libraries that I made assumptions
that everyone would have. If I'm wrong, let me know.
The Get Title from URL variation is just an improvement on iamrice.org's
version. The regex is a little more flexible, and it returns a link with a
title attribute.
The Google modification incorporates the Get Title command and grabs the
title from the "Lucky Link", using the updated regex, and inserts it as a
title attribute in the link.
The Wikipedia version goes a few steps further and scrapes the pages with a
quick regex to determine if it's a final destination or another search page
(or disambiguation page). It provides a dropdown menu when there are
multiple results. It will also detect if there is a redirect and put the
correct link and title into the link while leaving your original text alone.
This should allow you to quickly see if it got off on the wrong track.
I am no good at either programming or regular expressions ;-). I do my best
to fool people. But I am eager to learn from my mistakes, so if you do take
the time to look at these, please give me as much feedback as you can. I'll
lap it up like a puppy.
Cheers!
Brett
Hi there,
When writing styles in HTML, the blue
highlight sometimes extends till the end of the
page and remains…
Moving the caret outside of the <style></style> tags
makes this extra highlight disappear.
I made a little movie to illustrate what I mean ;
http://guerom00.free.fr/clutter/CSS_highlight.mov
TIA
Mark,
Thanks for the advice. I rarely use the drawer buttons due to the
Ctrl-Click functionality; everything is duplicated in the pop-up menu
anyway. The problem I've been experiencing originated from trying to
create a group from files and folders within a top-level folder
reference, which probably conflicts with the 'Groups can't exist in
Folder Reference' rule; Textmate doesn't make the logical jump to
create a top-level group.
This does represent desirable behavior, however, as it would be
conducive to one's workflow to have both folder refs _and_ groups, just
not intermixed. I'm not sure how Allan has implemented the data
structures for Groups and Folders in the Project Drawer, but they're
probably the same base type and TM does a quick type/class check to
ensure Groups don't get mixed in with Folders. While I can definitely
see the use of both, I haven't quite gotten a grip on how Groups are
created, I think.
I can't find anything in the GUI that allows me to create an empty
Group, although the GUI supports creating an empty Folder. Of course,
this has to do with the tie that Folders have to the filesystem, but
the ability to create an empty top-level Group and populate it with
file references would be nice. Then again, I haven't really found a way
to duplicate file / folder references, either, once the groups have
been established. That stuff might just still be on the drawing board.
David
On Sep 23, 2006, at 2:11 PM, Mark Smith wrote:
>
> Hi David,
>
> sorry for the delay in replying. You caught me in the middle of a
> major email clear-up and now I've misplaced your messages and am
> answering from memory.
>
> AFAIK, the order in which you do things does not matter. You can mix
> and match folder references and file references and file groups as you
> please.
>
> Stop me if I'm telling you things you know already...
>
> Perhaps you are getting confused by the "create folder" button at the
> bottom of the document list drawer ? This button has two possible
> behaviours. Its behaviour is sensitive of the current selection. If
> you hover over the button, you will get a pop-up that explains the two
> possible behaviours. This explanation attests to the only thing that
> is (at least AFAIAA) forbidden in terms of mixing objects in the
> drawer.
>
> That is : you *can't* create a group within a folder reference.
> Anything else you might want to do, seems to me to be posible:
>
> You *can* create folders and files within a folder reference and these
> will then be created in the FS. You *can* drag folder references
> and/or file references inside of groups and you can create file
> references inside of a group. When you do the latter TextMate will ask
> you where the file should be created in the FS.
>
> Hope this helps,
>
> Mark.
>
Hi,
i'm wondering if the getBundle-Bundle is broken in TM 1.5.3(build
1258) ? It does not show any selection-Box for the 'Install'-command
<^> + <cmd> + <I>. Is doesn't matter if a project-window or a
document-windows is currently opened or not. Am i missing smth. here ?
I'm using TM Version 1.5.3. (build 1258) on latest Tiger with
'cutting edge'-installs active. Could anybody pls. confirm on this.
Thanks and greetz, Andreas
I have a small bundle with some Wikipedia "Lucky Linking" code that I'd like
to submit for people to play with. What's the proper way to do that?
The bundle includes one support file (stolen from the blogging bundle) and 4
commands:
Search Wikipedia and Create Link
Basic version of Wikipedia Link
Updated Google Link
Updated Get Title of URL
I also have a collection of HTML snippets, commands and macros that I think
might be worth sharing. I've posted some to my blog, but thought this might
be a far more direct way to get them to people who might care...
Thanks,
Brett
The key sequence crtl-esc not activating the bundle menu anymore.
I have already logged in as a different 'virign' user and temporarily
moved my /Librabry/Application Support/Textmate/ folder to another
location, but still the problem exists.
Has anyone else encountered this problem, and if so were you able to
solve it?
Ira Cary Blanco
Marketing & Media
Samson Technologies Corp.
Samson | Hartke | Zoom
voice: 631.784.2200 x107
email: blanco(a)samsontech.com
web: samsontech.com
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: September 22, 2006 12:17:20 PM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Split the project drawer?
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 22/9/2006, at 18:11, David Rogers wrote:
>
>> Does anyone know of any conditions that would prevent files from
>> being grouped? I've been trying to select a number of files for
>> grouping, and encountered no success. I've selected files in the same
>> folder reference, different folder references [...]
>
> While it is not clear from the UI, the project drawer really have two
> modes of operation. Eitehr you work exclusively with folder
> references, and TM will update these, and you can’t do anything wrt
> re-ordering, grouping, etc. Or you work with “static files”, i.e. drag
> each file individually to the project drawer, and you can freely order
> and group these.
Thanks, Allan. Any reason, programmatically speaking, that Textmate
couldn't handle both file/folder references _and_ groupings? I've
encountered quite a few instances in my most recent projects where this
feature would be more than a little handy. Certainly one can work
around it, though. Thanks for contributing a great product to the
'Maciverse'...!
David
Allan wrote:
> On 22/9/2006, at 17:46, Fred B. wrote:
>
> > I tried every fixes I read about: Setting the prefs in Terminal (I
> > don't remember the exact command)
>
> What happens if you set it to another key than ⌃⎋?
>
How can it be set to another key?
Ira Cary Blanco
Marketing & Media
Samson Technologies Corp.
Samson | Hartke | Zoom
voice: 631.784.2200 x107
fax: 631.784.2201
email: blanco(a)samsontech.com
web: samsontech.com
Hi, I'm another (mostly) happy (more like nigh-elated) textmate user.
Does anyone recall this thread? How about this comment regarding
multiple panes in the Project drawer:
> You can't currently do anything nearly so complex.
> You CAN make groups of files, however.
>
> Just select a few files and the "group this stuff" command is it the
> little widget menu at the bottom of the drawer.
>
> This can actually speed textmate up quite a bit if you're working on
> a remote volume.
Does anyone know of any conditions that would prevent files from being
grouped? I've been trying to select a number of files for grouping, and
encountered no success. I've selected files in the same folder
reference, different folder references, files and folders in the same
and different folder references, everything I can think of. The "Group
Selected Files..." option in the widget / ctrl-click menu, however, is
always grayed out (disabled). Any suggestions?
David
When creating documents to validate with the XHTML doctype, the ampersand
character in any URL needs to be escaped as an HTML entity &
...TextMate will perform this automatic transformation on copied items
when you select text and use the "Wrap Selection as Link" command. It
takes the clipboard contents, filters it, and uses the result as the
default URL in the link. However, if the URL from the clipboard already
has escaped ampersands, TextMate will transform the entity as &amp;
Clipboard Example: /some.php?option1=foo&option2=bar
When the Wrap Selection as Link command is issued wtih this URL stored in
memory, you get something like the following:
<a href="/some.php?option1=foo&amp;option2=bar" target="_blank">some
link</a>
TextMate's default behavior may need to be adjusted so it checks for
escaped ampersands in a URL before attempting to transform it.
Hello list,
I was wondering if anybody has put any work into making a Trac bundle?
At the minimum something which could understand the trac wiki syntax
and scope it as such ... I don't see a bundle in the svn repo so I
figured I'd ask before taking a whack at making one myself.
Thanks,
-steve
I have recently become unable to run tests in TextMate using the Ruby
bundle's Command-R "Run" option. It used to work, but at some point in the
past few weeks I started getting this error:
/Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:143:
undefined method `htmlize' for main:Object (NoMethodError) from
/Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:101
Using TextMate Version 1.5.3 (1258)
My /Library/Application Support/TextMate/Bundles directory is a svn checkout
of http://macromates.com/svn/Bundles/trunk/Bundles Revision 5277
I've installed TextMate, BBEdit, and XCode, and I seem to be caught
in the crossfire of a file association war. Example: TextMate wants
to be the editor for Fortran 90 files (.f90), but BBEdit wants to be
the editor for Fortran 77 (.f77) files, and XCode wants to be the
editor for plain old Fortran (.for) files. Does that make sense to
anyone?
What I'd like to do is remove all of BBEdit's and XCode's
associations, thus leaving TextMate as the editor for just about
everything (because it's set up to open unassociated files). Is there
an easy way to do that? I know of a program called RCDefaultApp that
can show the associations for a given app, but there doesn't seem to
be a way to do a "bulk unassociation," just one by one. Is there a
better way?
Trevor
Up until a few days ago I've used ctl-rightArrow to move to the end
of the current line in TextMate, and shift-ctl-rightArrow to extend
the selection to the end of line. Now it seems those commands move to/
select the next word, and are the same as opt-rightArrow and shift-
opt-rightArrow respectively.
It's entirely possible that I changed something on my end, but I'm
wondering if anyone else is seeing this? I'm using TextMate 1.5.3
(1258), and this started happening about two cutting-edge versions ago.
FWIW, ctl-rightArrow (and shift version) still work the way they
should in my other programs like Mail.app and TextEdit. It's only in
TextMate that they act weird.
- Dave
I am very happy to see remind being supported. (Thanks, Haris!) I
have two comments/observations, though.
First, though it is good practice to scope commands, there is a
reason to leave the display of your calendar unscoped. As it stands,
these receive the scope of source.remind. That means in order to view
your calendar, you need to navigate to your remind file(s). If they
are unscoped, you can view your calendar on the fly while working on
unrelated files.
Second, about the Remind-->Show-->This Month command. Why not use the
rem2html command? The output is more readable, and anyway it seems
odd to have html output of text---all that is being added is the nice
header.
A screenshot for comparison and an alternative monthly command can be
found at:
http://www.kalderon.demon.co.uk/Remind.html
(As anyone may gather from the screenshot, term here in London begins
in October.)
All the best, Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
Hi,
I just had a glance at HyperEdit <http://www.tumultco.com/HyperEdit/>
It allows web preview of PHP pages. It would be very nice that
TextMate allows it too. Is this on the todo list? Or did I miss a step?
Anyway, I still be faithful to TextMate ;-)
Bonne soirée,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
Hola Haris (and other LaTeX bundle maintainers),
is there a reason (philosphical?) that there is no command for \emph
{} but there is for \textit{}?
Dan
Hi,
I would like to report a minor bug. When editing a *.rb file, text in
quotations (double or single) appears green. I think there must be a parser
in TextMate that detects quotes, which sets off some flag indicating that
we're within quotes, which then causes that text to be displayed as green.
However, I think instead of detecting all quotes to set off the flag, Allan
should detect non-escaped quotes.
For example,
open("http://www.myspace.com/").read.match /<form action=\"(.*?)\"/
# Code from here on down appears green as though it were still within quotes
even though it was an escaped quote inside of a regular expression context.
Okay, that's my two-cent contribution to the world. I hope it really is
worth at least two cents.
Great program! Keep up the great work!
David :)
http://www.dbitsolutions.com/
intuitively, i would expect pasting in overwrite mode (⌥⌘O) to
overwrite instead of insert. doing an insert in this mode is
especially annoying since delete (⌦) cannot delete the text that was
shoved right.
---
michael reece :: software engineer :: mreece(a)vinq.com
I have a .h file written by a programmer of the school that believes
Whitespace Causes Cancer:
==============
- (void)applicationDidFinishLaunching:(NSNotification *)notification;
- (void)applicationWillTerminate:(NSNotification *)notification;
==============
I am trying to automate putting spaces after the )s with the search
RE /\)(?=\S)/, to be replaced with ') ' -- that's close-parenthesis,
space.
Doing this as a Replace All works as expected. But try pressing the
Next button, then Replace. The substitution does not take place.
Am I missing something?
-- F
I've been working on man pages for a bash script. It's been kind of a pain,
mostly because I don't know the formatting commands well enough. TM has made
so many other tasks easier, so I've wondered about using it for man page
writing.
Or ... what are other people doing so write these pages. I know there are
dedicated editors, but learning another editor isn't where I want to spend
my time. Maybe that's the best answer. That's why I'm asking this obviously
knowledgeable group. A man writing bundle? A different editor? Suffer? Give
it up and switch to ... no, I can't go on. ;)
Lewy
On Sep 19, 2006, at 10:50 AM, Allan Odgaard wrote:
> So the key bindings were not “messed up”, they were deliberately
> changed. And while it generally would appear as they do the same
> as ⌥(⇧)→ and ⌥(⇧)←, they also visit “sub word
> boundaries”.
Sorry, Allan, the new functionality doesn't buy me anything and it
took away something I've being using since I switched to TextMate a
year ago. There are probably people that benefit from the sub-word
jumps, but I select to EOL/BOL way too often to want to give up the
shortcut.
On Sep 19, 2006, at 10:50 AM, Steve Lianoglou wrote:
> [cmd] + [left/right arrow] jumps you around beginning/end of line ...
>
> For the record, that all works for me as intended: Version 1.5.3
> (1258)
It does for me too, but if you add the shift key to the mix (select
to BOL/EOL) the shortcut breaks :(
I'm generally open to change, love TextMate dearly, and rely on it
heavily. Consistency between apps is really important to me, and
TextMate does different things with shift-ctl-arrows than the other
apps I live in (like Mail, textarea boxes in Safari, and TextEdit).
So I either have to live with TextMate's inconsistency or keep
modifying TextMate's KeyBindings file or messing with iKey to map my
keypresses into something that works with TextMate.
BTW, what is TextMate's official "select to EOL" shortcut anyway?
- Dave
Even with the pervasiveness of XHTML, some web developers forget that the
XML specification only defines five built-in character entities and most
of the converted named entities that TextMate produces actually break some
apps that rely on this strict interpretation.
It would be convenient if there was another conversion command that would
use the numeric ISO character in place of the named entity. For example,
instead of of converting a ' character to ' the proposed command
would output ’ ...and – would instead be –
I would assume that TextMate would need to store an updated HTML -> XML
lookup table to do this, similar to the old command.
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
Over on the Markdown discussion list Jacob Rus writes:
> Incidentally, I recommend every Mac user on this list take a look
> at recent TextMate markdown support. The Markdown preview is now
> styled to look quite handsome IMO, and when using a theme which
> colors scopes such as lists, raw text, separators, etc. it is now
> quite easy to see syntax errors, etc. Michael Sheets and Allan
> Odgaard have worked together to make highlighting work for complex
> nested markup. If the official markdown spec were a bit more
> formalized and explicit, with coverage of edge cases, we make it
> just about perfect, I think.
I hadn't even noticed since I mostly work with MultiMarkdown
documents. Would it be possible to apply the CSS to the MultiMarkdwon
preview?
Thanks.
All the best, Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
I just updated the Latex bundle according to the instruction for
bundle updating in the help file.
Now the cmd-{ function does not work.
Also it cannot find TeXniscope:
/bin/bash: line 60: find_app: command not found Error locating
external viewer: TeXniscope
The shell variable TM_LATEX_VIEWER is correctly set.
All this worked fine until a moment ago.
What has happened?
I issued the commands:
christopher-brewsters-computer:/Library/Application Support/TextMate/
Bundles kiffer$ svn --username anon --password anon co http://
macromates.com/svn/Bundles/trunk/Bundles/Latex.tmbundle
Christopher
*****************************************************
Natural Language Processing Group,
Department of Computer Science, University of Sheffield
When committing with the SVN bundle, you have to manually deselect
any file that you don't want to commit. This is fine if the list of
files that has been updated is small, but when dealing with a list of
over 30 updated files, deselecting 29 files is a bit tedious when you
only want to commit one file. I'm asking the SVN Bundle maintainer
to add a button (or two) at the top of the commit dialog to allow
the ability for "Select All/Deselect All"
thanks.
Hello all,
I am using the ruby bundle a lot, and I like it so much! But there are
some annoyances where I have to decide between using TM/folding
or rewriting my code. IMO the editor/grammar should not be confused by
correct ruby syntax. I am using the latest textmate (downloaded today,
1258) and don't have any changes to the ruby bundle. I know, I could
fix these in my copy of the ruby bundle, but I'd like to see the fixes
in the distribution. Thanks in advance,
Patrick
--------------------------------------------------
lines=%{a
b # <--- I'd like to have no indentation here on 'reindent'
c} # missing folding marker
lines.collect do |line|
line
end.class # missing folding marker
tmp = lines.somemeth { |l|
l.upcase
}.foo # missing folding marker, wrong indentation
a = myvar.each do |x| x.foo end
def baz
a=case foo # missing folding marker (or the one at the end is one too many)
when :b # and incorrect indentation
c
when :d
e
end
end
--------------------------------------------------
Here is a command that i added to my XCode bundle to set a breakpoint
in the front most file. Note that this assumes that the project is
open in XCode. Thanks for the help on this list to make this work. In
case you are wondering why the name of the file and not the path
name.. The file reference type for XCode uses the name of the source
file only.
#!/usr/bin/env ruby
# import the frontmost opened project window in Xcode
proect = %x{"#{ENV['TM_BUNDLE_SUPPORT']}/bin/find_xcode_project.rb"}
named = File.basename(proect)
xCodeProject = named.sub(/\.(xcodeproj|xcode|pbproj)\/?$/, "").chomp
%x{osascript -e 'tell application "TextMate"
set myName to name of front document
end tell
tell application "Xcode"
tell project named "#{xCodeProject}"
set bp to make new file breakpoint with properties {line
number:#{ENV['TM_LINE_NUMBER']}}
set file reference of bp to file reference named myName
set enabled of bp to true
end tell
end tell'}
Tried to use the TODO bundle and it was taking an age (10s of
seconds) to give me a result. Some puts in the command code showed
it was parsing all the text files in the directory and sub
directories that the project file resided in. These files are a
super set of the ones in the project draw - I only expected it to
search in the project specific files. As a contrast using the 'find
in project command' to search for TODO returns instantly.
Dave.
There seems to be a bug in the Find function within the Bundle Editor.
1. Launch TextMate
2. Open the Bundle Editor
3. Navigate to, for instance, the C Grammar
4. Perform a Find for "function.c"
5. Perform a Find for "prototype"
6. Close the Bundle Editor and/or the Find window, reopen and try again.
7. Make a sad face
Sometimes, if I close both the Bundle Editor and Find windows, it
works, but usually not.
Oh, I just did an archive search and see that this was reported in
January. Well, maybe it was forgotten? *bump*
Cheers & thanks - this software is really great.
jb
Hi all,
I made some snippets using conditional
insertions for my declarations in Fortran.
For example, I have this one :
real*${1:8}${2: a/d}${2/(,a)|(,d)/(?1:llocatable)
(?2:imension)/}${2/,a|(,d)/(?1:\(\))/} :: ${3:name}${2/,d|(,a)/(?1:\(\))/}
$0
which does that :
http://guerom00.free.fr/clutter/Cond_insert.mov
What I would like to do is, in the “allocatable” or
“dimension” case, that the caret goes between the
braces after I type in the name.
In the snippet definition, that would be to somehow
define a $4 key but I really don't know how to do this...
Any help is much appreciated :-)
PS : Once again, due to my poor knowledge of RegExp,
if anyone has some suggestions/improvements for this
snippet, he is quite welcome :-D
Hi,
I found two sound files at /Applications/TextMate.app/Contents/
SharedSupport/Support/Sounds .
What are they for? I've been using TextMate for a while, but never
encounted them.
I can't sleep well until I get to know what they are. Searched this
list, to no avail.
This question might not *sound* useful, but what are the sounds for?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
I have been working on the following script to set breakpoint is
XCode. I am not a Ruby expert and I am sure I am doing something
wrong. Any help would be appreciated.
Currenly my script looks like so:
proect = %x{"#{ENV['TM_BUNDLE_SUPPORT']}/bin/find_xcode_project.rb"}
named = File.basename(proect)
xCodeProject = named.sub(/\.(xcodeproj|xcode|pbproj)\/?$/, "")
breakLine = #{ENV['TM_LINE_NUMBER']}
print xCodeProject
astring = "osascript -e \'tell application \"TextMate\"
set myName to name of front document
end tell
tell application \"Xcode\"
tell project named \"#{xCodeProject}\"\r\n
set bp to make new file breakpoint
set file reference of bp to file reference named myName
set enabled of bp to true
end tell
end tell\'"
print astring
%x{#{astring}}
My output is:
iPhoto2PBase
osascript -e 'tell application "TextMate"
set myName to name of front document
end tell
tell application "Xcode"
tell project named "HelloWorld
"
set bp to make new file breakpoint
set file reference of bp to file reference named myName
set enabled of bp to true
end tell
end tell'
For some reason i have a bunch of white space after my project's name.
Also how do i put { and } into a string so they are printable?
Hi,
I really appreciate TextMate's implementation of Documentation. If
I'm correct, most of them are just webpages created by searching on-
line and/or creating HTML on the fly.
It would be great if, in the window, I could use a) Command-LeftArrow
and Command-RightArrow, b) Command-[ and Command-] and/or c) open in
browser.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi all,
I would like to be able to
colorize, or otherwise distinguish, folded
text when it is folded. I find it hard to spot
in a program full of folding markers.
A folding marker “collapsed” of a completely
different color than the folding markers
“start” and “stop” might be sufficient...
TIA
All,
I've been playing with Textmate but haven't been able to do something
very simple (in my view) - write an Applescript that lets me get the
content of the frontmost Textmate document. This must be possible,
right?
If you could send me a pointer or a short example, that would be much
appreciated.
Thanks,
Thomaz
Hi, I just downloaded the experimental wiki bundle, and am getting
the following error:
Not Found
The requested page was not found.
Page: file://localhost(null)
Thanks.
All the best, Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
I recently acquired TextMate 1.5.3, and am overall very pleased with
it. However, I am running OS X 10.3.9, and several bundles do not work
correctly. In particular, several commands in the Latex and TODO
bundles do not work. Some of the problems were fixed by installing
Ruby 1.8 from Fink, but many others remain. Any help would be
appreciated.
Darryl Morrell
Hi all,
I would like to colorize the name
of the do and if loops in Fortran...
Those loops looks like this :
the_name:do i=1,10
some code here
…
enddo the_name
and similar for the if loops. I tried to
give a scope to those loop names but
with my poor knowledge of RegExp,
I cannot achieve something satisfactory...
Any help is much appreciated :)
Thanks in advance.
Hi,
As I've been using TextMate, I've noticed that some of the features
are, in my opinion, unnecessarily hard to discover.
Certain menu items are hidden from the user unless the user presses
the option modifier key while holding the menu open. Pressing option
causes one of the existing menu items to change meaning. For
example, the Edit menu of TextMate has a "Paste Previous" command
that converts to "Paste Next" when option is pressed. The Text menu
has the command "Execute Line Inserting Result" that converts to
"Execute Line and Replace With Result" when option is pressed. This
makes it harder to discover the available commands in TextMate
because the user must know to press option in order to see these
hidden menu items. As a recent Mac switcher, it was a couple of
months before I realized OS X menus had this hidden capability.
Besides making features harder to discover, hidden menus are harder
to select with only the mouse because the user must press "option" to
have the items available for clicking. Also, IIRC, there is
additional difficulty assigning keyboard shortcuts to these menu
items (I don't remember the details, but I thought there was
something about this on the TextMate mailing list).
On a related note, certain buttons on dialog boxes are hidden in a
similar way (for instance, the Find dialog's "Replace" button
converts to "Replace in Selection" when option is pressed). There
are no visible indications that the buttons are dual-purpose; indeed,
the user may never know they are there unless he stumbles over them
(as I did) by accidentally pressing option while the dialog box is open.
Would it be possible to avoid using hidden menus and buttons in
TextMate? Other than trying to keep the menu length a little shorter
or the dialog box a bit smaller, I've not come up with a benefit to
hiding these items from the user, and in my opinion there are several
benefits to making them visible all the time.
Thanks for your consideration,
Michael Henry
> On Sep 15, 2006, at 3:19 PM, Christopher Brewster wrote:
>
>> When I press apple button+R to typeset and view,
>> I get transferred to the Preview window but it does not show me
>> the current pdf
>> only the previous one.
>> Is there someway to correct this so that it refreshes the pdf it
>> is displaying?
>>
>
> Do you mean that it will not refresh the pdf after changes have
> happened to it and you have recompiled, or that if you compile a
> completely different file? If it is the former, then it is
> Preview.app's fault, and the only solutions I can think of would
> involve using AppleScript and slightly hacking Preview.app to allow
> AppleScript to drive it.
The former - it does not refresh the pdf after a recompile.
I do not know how to write AppleScript or hack Preview.app :(
> I would suggest using a different previewer, and in particular
> TeXniscope. Or you could use the TeXShop previewer, though that
> does not do pdfsync with TextMate (to my knowledge).
Yes I have tried TeXniscope several times.
2 problems:
- there is no search facility and this is important often to find
unresolved bibliography entries etc.
- it crashes frequently
This is why I have repeated returned to Preview.app. I have not tried
the TeXShop previewer.
Is anyone using Adobe Reader? Would that work better?
Christopher
First of all, one noob question: how do I make sure my mail is
recognized as a reply to an existing post in the mailing list? I have
tried clicking in the e-mail address on the mailing list page which
automatically generates an e-mail with the correct header … but
usually it isn't recognized as a reply to existing posts :-/
Thanks ;-)
> > (i) I can provide you with a list of `official' LaTeX commands
if needed.
> >
> > Obviously, something similar should be implemented in math mode as
> > well (start with dark red which changes to red once a command is
> > recognized).
>
> allan: (i) I prefer that as well — if we can get a list, that’d
be
> great!
>
> me: I agree too. Max (and anyone else as well), if you provide us
> with the commands, for within math and out of math, then we'll add
> them in.
Ok, I will compile a list over the course of the week. Basically, I
will start by copying the standard commands from the various handbooks.
Please document how to add your own commands to that list! (E. g. I
have created commands like \norm, \scpro (scalar product), \ket,
\bra, \C, \R, etc.)
> allan: (ii) this is because $ is a smart-typing pair, and it finds
> that there is a “starting” $ outside the screen — not sure how
> to best address that (probably we want to keep it a smart typing
pair)
Definitely, definitely, definitely keep smart-pairing $s, it was my
#1 syntax error with TeXShop and very tedious sometimes to find the
erroneous line of code.
> > (iii) Footnotes and marginpars should be marked within the text;
> > perhaps the footnote's/marginpar's text could even be folded (not
> > sure if automatic foldmark recognition works on a bundle level).
>
> allan: (iii) marking: yes, folding: we can’t do w/o having the
> braces align
>
> me: The text in the footnote gets a scope of meta.footnote.latex
> So if you add that scope to your coloring theme and add some color to
> it, you'll get highlighted footnotes. Not immediately possible for
> marginpars, but we are thinking of matching those as well and giving
> them some scope extending both footnotes and marginpars, so that you
> could color both of them at the same time.
Yes, it is immediately possible. I've just added marginpar to the
footnote environment (so its scope is now both footnotes and
marginpars alike), took about 10 seconds :-)
I already figured folding would be a more intricate matter.
> Update: marginpars are now matched with scope
> meta.paragraph.marginpar.latex, so you can color them as you like.
>
> > (iv) Use input instead of include when dragging a .tex document
> > into another: afaik include is deprecated and input is preferred
> > instead. You cannot `include' some bundles for instance (diagxy
> > comes to mind), you have to use input instead.
>
> allan: (iv) probably then we should even markup include as
> invalid.deprecated
>
> me: I don't think \include is deprecated. I use \include for
> different chapter of a book etc, and it does a number of special
> things like clear all the floats, start on a new page, generate
> separate aux files etc.
input also creates separate aux files. I just ran into some problems
with include and have used input ever since. Page breaks are not a
concern since I usually have separate files for each chapter -- the
chapter command takes care of the page break.
> Of course, you can easily change this in your own copy, by opening
> the bundle editor and finding the appropriate drag command. All you
> have to do is change the \\\\include that appears there to \\\\input.
Done.
> > (v) Forget about the deprecated math environments `\[ … \]' and
`\
> > ( … \)', just remove them from your bundle. Guidelines by
relevant
> > journals suggest to use specific environments anyway (align for
> > instance).
>
> allan: (v) I’m all for removing stuff, especially when
deprecated ;)
>
> me: I would need some stronger evidence that it is deprecated. As far
> as I understand, the alternative to \( \) would be $ $, and I don't
> see what advantages that has except that it is much harder to parse
> the file looking for math in it, and if you miss one of the $ you
> might not find out until much much later.
>
> As for \[, \], I again don't think they are deprecated, but I would
> love to be proven wrong. The only alternative I see is \begin
> {equation*}, which requires the amsmath package. I might possibly
> agree with you that in the context of writing math papers for
> submission to journals, one might want to avoid \[, \], (though still
> I would need to see some strong evidence for that), but I don't see
> why I shouldn't be using it in the notes for my students for
> instance. Replacing them all by \begin{equation*} is a single search
> and replace anyway. (Note to self: Actually, having a command that
> toggles the various math environments might not be a bad idea at
all.)
I usually use align and align*. I have never personally used \[ … \]
and I have seen only one person use it, and that person still writes
his (brilliant) papers in plain TeX.
It doesn't really bother me if you keep it, but I just thought that
we could very well eliminate everything which is superfluous in a way.
> Do you have references to these guidelines of these journals
> (including non-math/physics journals)?
One of the guidelines I use is the revtex guidelines which is used
for a wide number of journals, including Phys. Rev. A-E and Phys.
Rev. Lett.
> > (vi) Inline formulas should have a grayish background so it's
> > easier to see where formulas begin and where they end. (This one is
> > also important to me.)
>
> allan: (vi) that’d be a theme-thing, as long as the grammar marks
> them up
>
> me: Do you want the background for inline formulas to be different
> than the one for multiline formulas? Because as things are already,
> you can target the scope math.tex in your theme, and that would color
> all math however you tell it to.
Yes, I want it to be different. I add a commented line above and
below the align environment, i. e.
%
\begin{align}
formulas
\end{align}
%
So I don't need any background. In either case, it is desirable to
have different settings for inline formulas and displayed equations.
> > (vii) You already have tab triggers for section, subsection and
> > subsubsection, so how come chapter is missing?
>
> allan: (vii) oversight (and we rarely need it)
>
> me: Basically, initially we were trying to keep the number of
> snippets at a bare minimum because of the way they were showing up in
> the menu, as a flat list. On top of that, most of those can instead
> be accomplished via the “Insert Command…” command, along with
> customizing it through the LaTeX Configuration file, so the other
> maintainers had a hard time even convincing me to keep the section
> ones in. Now that we can create submenus, we've toyed with the idea
> of adding more snippets, so any ideas on what other snippets to
> include are welcome.
I know I can add it. However that is something I definitely think is
missing. \chapter is one of the most basic commands in TeX and I
would strongly suggest to add it.
> > (viii) A way to execute bibtex (and pdflatex twice to see whether
> > all additional citations have been included).
>
> allan: (viii) latexmk.pl should do that — maybe we should make this
> the default, not sure if that would bother anyone (maybe some
> workflows would mean much more time typesetting)
>
> me: latexmk.pl will actually do a lot more for you. The Help file
> should describe how to set it up. I'd personally prefer not to have
> it as the default. It is however easy to set it in your system.
I think I wasn't expressing myself clearly here: when you run bibtex
via the LaTeX bundle, it does just that. However, I think it is a lot
more useful if you actually pdflatex the document twice and display
the document so you can check whether or not it worked.
> > (ix) Closing environments: when I manually type \begin{environment}
> > and then close the environment, the `\end{environment}' which is
> > added is indented like the text within the environment. Hence,
> > TextMate's code folding does not recognize the block.
>
> allan: (ix) http://macromates.com/ticket/show?ticket_id=B34CCC0C --
> the request might be granted, but use begin⇥ or ⌘{ until then
>
> me: just follow the workaround suggested in that ticket (and most
> importantly, don't manually type \begin{environment}).
No, I usually don't. But sometimes I need to break a displayed
formula into two, I use that command.
> > Now concerning the Help. The help is nicely structured, although I
> > miss a nice webpage with the key features of your bundle. That
> > would have helped me to use more of the functions included in your
> > bundle.
>
> Hm, that was actually partly our intent with rewriting the help file
> this way. To make it easy to find out how to do stuff. Looking at the
> bundle is of course the best way to find out what commands are
> available. How is the help lacking in showing you what the bundle can
> do?
> >
> > (i) A glossary of TM_LATEX_BLABLA variables. That would be really
> > helpful, especially for people who just want to check out what you
> > can do with the LaTeX bundle.
>
> There are basically only five such variables, most of them having to
> do with more particular workflow setups:
>
> TM_LATEX_VIEWER if you don't want to use the built in previewer
> TM_LATEX_ERRLVL if you want some finer control on what errors
> show up
> TM_LATEX_COMPILER if you want to use latexmk.pl
> TM_LATEX_OPTIONS for any options you might want to add to the
> command line call to the compiler.
>
> and finally, TM_LATEX_MASTER, the only one of more frequent use, when
> setting that a master document should be used for the compiling.
That needs to be documented in the form of a howto.
> > (ii) Overview over key functions (auto completion of citations,
etc.).
>
> Isn't the explanation in section 5.2 of the manual adequate for that?
> In general that's the purpose of the entire section 5. In what ways
> is that failing?
In the way that people like me don't read the help until section 5.2
to discover new features. I know I sometimes should, but it's just
the way it is. In this way, I would suggest to add one section in the
very beginning (section 1.2 or so) about basic features. If they are
hidden in section 5.2, fewer people will actually use them -- which
is a pity.
I have given the help some more thought and I think that also one
chapter about customizing the LaTeX bundle is missing. Somehow I
haven't come across a good documentation on how to edit bundles,
something like a HowTo is definitely missing.
For me, the most helpful kind of documentation is one that explains
by example (e. g. Samba by Example). So I would suggest to write
HowTo sections on `Getting Started', `Big LaTeX Projects',
`Customizing The LaTeX Bundle'. I would be willing to make additions
of my own.
Ok, that's all for now.
Max
Hi,
I am slowly adapting to the language defs. Great.
Now, I am having difficulties to specify recursive blocks for a
language.
So far, I got it working pretty good for things like
-----------------
%function foo() {
%{
%}
%}
-----------------
as I created a matcher for {%..%} that calls itself and thus the matcher
for the function which for simplicity I state here as
begin = '%function .*\(\) \{'
end = '%}'
will match the last %} and not the previous one. Cool.
Now, how do I allow for this case:
---------------
%function foo()
{
%{
%}
%}
---------------
I can't get it to work even though I know that the matcher only
matches whole
lines. The language I try to define is an obsolete old IBM mainframe
macro
language called Net.DATA (please, don't ask why).
So a block starts either as '%keyword_and_more {' or as '%
keyword_and_more\n{'
and always ends in '%}'.
Is it possible to define this? I assume that I need to define two
rule sets to
simulate the two states and then either start in state A or B and do the
recursion within each set. Right?
Andreas Pardeike
PS: If you like, you can see my current definition:
{ scopeName = 'source.netdata';
fileTypes = ( '' );
foldingStartMarker = '%.*\{|%(?i:if)';
foldingStopMarker = '%\}|%(?i:endif)';
patterns = (
{ include = '#embeddedstuff'; },
{ name = 'source.netdata.comment';
match = '^%\{.*?%\}';
},
);
repository =
{ embeddedstuff = { patterns = (
{ include = '#shtml'; },
{ include = '#netdata'; },
);
};
netdata = { patterns = (
{ name = 'keyword.control.netdata.conditional';
match = '%(?i:if|else|endif)';
},
{ name = 'keyword.control.netdata.include';
match = '%(?i:include).*';
},
{ name = 'keyword.control.shtml.include';
match = '<!--#%(?i:include).*-->';
},
{ name = 'source.netdata.block';
begin = '(%\{(?i:macro)?)';
end = '(%\})';
captures = { 1 = { name = 'keyword.control.netdata'; }; };
patterns = ( { include = '#embeddedstuff'; } );
},
{ name = 'source.netdata.function';
begin = '(%function\s*\(([^)]*)\))\s+(\w+\(.*\))\s*(\{)';
end = '(%\})';
captures =
{ 1 = { name = 'keyword.control.netdata'; };
2 = { name = 'source.netdata.function.type'; };
3 = { name = 'source.netdata.function.name'; };
};
patterns = ( { include = '#embeddedstuff'; } );
},
{ name = 'source.netdata.block';
begin = '(%.*?)\s*\(.*\)\s*(\{)';
end = '(%\})';
captures =
{ 1 = { name = 'keyword.control.netdata'; };
2 = { name = 'keyword.control.netdata'; };
};
patterns = ( { include = '#embeddedstuff'; } );
},
{ name = 'source.netdata.block';
begin = '(%.*)\s?(\{)';
end = '(%\})';
captures =
{ 1 = { name = 'keyword.control.netdata'; };
2 = { name = 'keyword.control.netdata'; };
};
patterns = ( { include = '#embeddedstuff'; } );
},
);
};
shtml =
{ name = 'source.netdata.embedded.shtml';
begin = '(?=<!--#)';
end = '-->';
patterns = (
{ name = 'keyword.control.shtml.include';
match = '(?i:include.*?=".*?")';
}
);
};
};
}
Is the ability to make templates broken again?
I just tried to add another template and I cannot get any new ones to
work. All existing templates, including the ones I made work, but any
new ones will not load. I even tried copying an existing template and
the copy will not load.
Thanks
Robert
When I press apple button+R to typeset and view,
I get transferred to the Preview window but it does not show me the
current pdf
only the previous one.
Is there someway to correct this so that it refreshes the pdf it is
displaying?
Thanks,
Christopher
*****************************************************
Natural Language Processing Group,
Department of Computer Science, University of Sheffield
When doing multiple finds, the textmate window goes a light shade of blue,
and then stays that way unless I search backwards. How do I turn this off,
and what is it supposed to mean? I've looked in the manual, and don't see
anything about this (not under Find).
Thanks,
Bob Sidebotham
Hi,
my glacial migration to ruby continues: I've been dipping into the
TextMate book and noticed that ^H should bring up doc refs for ruby
keywords. Unfortunately using the command (in build 1252) just threw
up a tooltip complaining about "url_encode" being an undefined
method. I think that the file web_preview.rb in
TextMate.app/Contents/SharedSupport/Support/lib
needs to have the following pasted in after "require erb" :
include ERB::Util
Well, that fixed the problem for me.
Cheers,
Paul
1. Type StringScanner into a Ruby file. The full documentation
appears, with links to methods.
2. Click one of the method links. The documentation for the method
appears, with a link at the top back to StringScanner.
3. Click the StringScanner link.
Expected: The same text and markup will appear it did in step 1.
Actual: The list of methods at the end of the page is truncated.
-- F
Greetings,
I believe there is a problem in the OCaml syntax highlighting. It has
to do with:
let xxx = 10
and yyy = 20
If you want it to color that correctly, you have to:
let xxx = 10 and
yyy = 20
Can someone verify? I have posted two screen shots:
http://lifewithchrist.org/OCaml_tm.png <- wrong way
http://lifewithchrist.org/OCaml_tm_correct.png <- right way
Notice on the first image, how the vars turn italic and purple. But
also notice how the try statement below does the exact same thing.
Jeremy
I was at a local Mac Users Group meeting last night and during the Q&A
session, they were writing down all Q&A's using SubEthaEdit. The one
cool thing was there was 2-3 people writing this stuff down, populating
URLs, etc.
I read Allan's "Future" posting, but I saw nothing about it and was
wondering if TextMate would ever get this cool feature? It's probably
the only thing I'm left wanting at the end of the day.
Thanks!
Derek
I would like to be able to use Textmate with very large directory trees. I
have a tree that has well over 100,000 files in it, and when I try to open
the top-level directory, I get the spinning beach ball. I end up having to
terminate Textmate, losing any other open sessions.
The behavior I'd like is for Textmate to only look at the top level
directory, and to browse into lower level directories as I open them. I
*think* that it is actually trying to read in the entire directory tree, but
this is not a good idea in this case (my file system also happens to be NFS
mounted).
Any chance of supporting this in the future?
Has anyone else run into this?
Thanks,
Bob
I'm using a perl search/replace string to re-format documents into
HTML. I'm using the following for regular paragraphs:
s/^[^\n\t\<].*/<p>$&<\/p>/g;
That takes care of single-line paragraphs like this:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
This is just like what you'd get from Markdown, paragraphs separated
by a blank line are wrapped in a paragraph tag. But I'd like to add a
rule that looks for paragraphs that have hard-breaks in them, like this:
Lorem ipsum dolor sit amet,
consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore
et dolore magna aliqua.
and wrap them in markup like this:
<p>Lorem ipsum dolor sit amet, <br />
consectetur adipisicing elit, sed do <br />
eiusmod tempor incididunt ut labore <br />
et dolore magna aliqua.</p>
The key is finding lines that end only to be followed by more lines
in the same paragraph. My RegEx-fu is okay, but not great, so I've
come close, but I can't get it right.
Thanks in advance.
Subversion bundle, Commit window.
I wrote a long, long commit message. I decided I wanted to refer to
an earlier message (so I'd remember what changes happened since the
last commit). I choose a "Previous Summary" from the menu. The
message-text area is filled with the historical text.
Expected: I should be able to recover the message I was working on,
via a control or at least via Undo.
Actual: My work on the message is destroyed.
-- F
Hi,
Has anyone tried this intel build of texniscope?
http://www.akropolix.net/rik0/blogs/2006/04/10/texniscope-intel/
I have tried it and everything seems fine, apart from pdfsync (it can
link from and to the latex document ok but just not as precise as the
original powerpc build). just wondering if anyone else have had any
experience with this build and knows how to make pdfsync to work
properly.
thanks,
Jeff
> Yes that should be doable, at least in the case where the (fold),
> (end) pair is used, once we capture that case in the grammar. The
> reason it works with environments is because I can set the input to
> the current scope, so provided each entire section gets its own
> scope, it should be doable.
> Similarly, the Change Environment command could be made to work for
> sections as well, allowing you to quickly change a section to, say,
> a subsection, with automatic renaming of the label prefix as well
> as the % section (end) part.
I would also suggest that you make the fold marks specific to that
part, i. e. (end section) or something like that.
Not only does it make the code more readable, but I suppose it's also
easier to filter and look for the right (end) …
Max
I tried to track down the other files.
I could not find them until I read about using 'find in project'.
They were inside a directory with the suffix .texp which was
generated it appears by texshop.
The files were in a 'soft links' subfolder.
Deleting this directory (which must have been generated in the past)
solved my duplicate entry problem.
Thanks,
Christopher Brewster
is there some change to the shift+control+w ?
before i could invoke that, type, hit tab and hit enter to get
<div>
|
</div>
now i get
<div>
|</div>
and i dislike that quite a bit, has some change been going on behind
the scenes?
______________________
Andreas Wahlin
Webbutvecklare
Webbhuset AB
Östra Hamngatan 45, 411 10 Göteborg
Telefon: 031-339 19 19, Direkt: 031-739 18 20, Fax: 031-711 12 20
www.webbhuset.se
Privileged/confidential information may be contained in this message.
If you are not the addressee indicated in this message (or
responsible for delivery of the message to such person), you may not
copy or deliver this message to anyone. In such case, you should
destroy this message and kindly notify the sender by a reply email.
Thank you.
Hi,
can we get the same end-of-text-click behavior as in Xcode, TextEdit
and BBedit?
I am talking about this:
(1) If you click in the empty area at the end of a text document, the
text cursor
jumps either into the last line exactly vertical to the clicked
position
OR
(2) The cursor jumps at the very end of the text.
Most apps in MacOS X do it the (2) way. TextMate does it the (1) way.
It is simply
annoying.
Just a comment for an otherwise great app,
Andreas Pardeike
I've been playing around with running python scripts from TextMate
(PyMate) which is great. Is there a way to pass arguments or input to the
script. I realize I could just as easily run this from the command line,
but I figured I'd check anyway.
Hi,
I'm running build 1215 on a MacBook and whenever I switch application
into TextMate it takes a few seconds before the application becomes
active. For those few seconds the application is just frozen
(although it buffers keypresses and executes them when it becomes
active).
This is very annoying :) Anyone able to help?
Thanks,
Colm
> On Sep 12, 2006, at 4:25 AM, Max Lein wrote:
> > Ok, I'm no expert, but I figure this is what many, many people want
> > to do. Perhaps you could just list these commands in a separate
> > file and include that file appropriately?
>
> Not with the tools at our disposal, no. But see below for what you
> can do now.
The approach you have suggested seems to work fine.
However, I think it would be much better if the user has a chance to
review his deltas to a bundle. (This is not something you can do, I
guess, but rather the developer of TextMate.)
> Very well, but use at your own risk. For this, open the Bundle Editor
> (⌃⌥⌘B) and create a new language. Give it any name you like and
> put it in any bundle you want. Then, in the big text area on the
> left, place the following text:
That seems to work fine, thanks a lot!
In this way, my own additions are isolated from your updates to the
bundle :-)
> > Well, we do what we are used to in the end ;-)
> > I use align, because I got used to the way it, ahem, aligns
formulas.
>
> One of the things I hope to add to the bundle soon is the ability to
> quickly change between equation styles. I.e. you are in an align
> environment, and you press a button and it becomes a split
> environment. And so forth.
True.
> Well, the closing tag will just close the one above it. You also want
> to open one. One could probably duplicate and modify the closing tag
> command, so that it instead adds a \begin{env} too. So it would be a
> "split environment" command. Might do that actually.
Agreed, nice idea.
> Sorry, I should have said: The size of the LaTeX Help file. I'm all
> for creating other sources of assistance, like howtos and cheatsheets
> and stuff. The help is supposed to be for reading by someone new to
> the bundle, possibly even relatively new to LaTeX, who needs to get
> started getting things set up and learning the basic commands.
Ok, a difference in philosophy. However, then there should be more a
more extensive version of the help someplace else.
> > Instead, you could design one section to be read thoroughly and
> > then let the rest be what it is: a manual.
> >
> > > How about a cheatsheet instead? A single page containing all the
> > > necessary information, in the form of a pdf?
> > Sounds like a good start. Refer to the appropriate sections in the
> > Help as well, then people can go on reading.
>
> I was thinking of two different kinds of cheatsheets, one pdf that
> would fit in a page and could be printed, and one html/markdown,
> longer and with more explanation.
Sounds good to me.
> I would say let's try to create some more specific "HowTo" questions,
> and then we'll see about answering them. I'll get started on the
> cheatsheet for now.
I think I have posted a short, incomplete list earlier, but ok, here
we go:
(1) Getting Started
(2) Big LaTeX Projects
(3) Managing bibliographies and references
(4) Customizing The LaTeX Bundle
Max
I'm fairly new to TextMate, and completely new to Snippets, so I may be
asking something overly ambitious for a newbie. If so, I beg your
indulgence ;)
I'm working on a snippet which will automate the creation of versioned
tables, a la the acts_as_versioned plugin[1]. I've started with a tab
trigger which will paste in the outer self.up and self.down definitions.
Following the example in the "for ... in ... end" snippet, I've figured
out how to have my specified table name repeated throughout all the
appropriate places in the snippet. So all ready, what I've got is a huge
key-stroke saver :) But obviously, an ideal snippet would go further yet.
Here's what I've got:
def self.up
create_table :${1:table}s do |t|
t.column :version, :int
$0
end
${1/./\u$0/}.create_versioned_table do |t|
t.column :${1:table}_id, :int
t.column :version, :int
end
end
def self.down
drop_table :${1:table}s
drop_table :${1:table}_versions
end
EOS
As you can see, the snippet currently fills in a couple of default
columns for both my main table and its versioned partner. Is it possible
to then begin typing in column definitions for the primary table (where
the cursor currently ends at $0), and have those columns mirrored in the
versioned table below?
Thanks in advance for any pointers someone can offer!
Gwendy
[1] http://ar-versioned.rubyforge.org/
When inserting TODO comments in a latex file, they are repeated in
the html page.
Is this a problem with respect to Latex files or am I doing something
wrong?
Sample output:
______________________________________
FIXME
No matches.
TODO
chap10.tex (437): I should add perhaps another iteration here
chap6.tex (1347): Ontolearn Section - bring up to date
chap6.tex (1443): Knowitall section
11 (437): I should add perhaps another iteration here
7 (1347): Ontolearn Section - bring up to date
7 (1443): Knowitall section
CHANGED
No matches.
___________________________________
Thanks,
Christopher Brewster
*****************************************************
Natural Language Processing Group,
Department of Computer Science, University of Sheffield
Regent Court, 211 Portobello Street
Sheffield S1 4DP UNITED KINGDOM
Web: http://www.dcs.shef.ac.uk/~kiffer/
Tel: +44(0)114-22.21967 Fax: +44 (0)114-22.21810
Skype: christopherbrewster
SkypeIn (UK): +44 (20) 8144 0088
SkypeIn (US): +1 (617) 381-4281
*****************************************************
A definition is the enclosing a wilderness of idea within a wall of
words.--- Samuel Butler
Hi,
I just started creating my own snippets, and was wondering if it's
possible to write 'recursive' snippets. Let me give an example: say I
use the banner snippet from the source bundle:
// ==========
// = Banner =
// ==========
I'm currently in the $1 tab, and instead of 'Banner', I want to use
another snippet, triggered by base<TAB> and which will extend into, say,
"All your base are belong to us".
// ========
// = base =
// ========
<TAB>
// ==================================
// = All your base are belong to us =
// ==================================
Once this second snippet is completed, I then go back to the first one,
where I left it. This far, I haven't found such a nested scopes option
in the snippet syntax, but since I'm a newb I may have missed it. If
this feature really isn't available, I think it'd be a valuable addition
(even though the example I gave is completely phony). We could imagine a
special syntax indicating wether the current tab is in protected mode -
as it is now - or if it can be subject to other triggers. For example,
$1 and $$1 resp. What do you think of it?
Regards,
Emmanuel
Begin forwarded message:
> From: "Fletcher T. Penney" <fletcher(a)alumni.duke.edu>
> Date: 12 September 2006 23:09:36 BDT
> To: "Discussion related to Markdown." <markdown-
> discuss(a)six.pairlist.net>
> Subject: MultiMarkdown 2.0.a Released
> Reply-To: "Discussion related to Markdown." <markdown-
> discuss(a)six.pairlist.net>
>
> I have released version 2.0.a of MultiMarkdown!
>
> This is an alpha/beta release to get some further feedback, but I
> have been using it for a while now with good results.
>
> There are a **bunch** of new features:
>
> * TextMate bundle
> * New versions of the Drag and Drop tools
> * support for math
> * improved XSLT style sheets - easier to customize and more output
> choices
>
> Check out the MultiMarkdown page for more information. And if you
> use TextMate, I **highly** recommend you try out the new bundle and
> theme. I believe it will make it much easier to create
> MultiMarkdown documents, as well as to process them into other
> formats with minimal effort.
>
>
> Please let me know if you find anything that seems to be broken.
>
>
> Find more at:
>
> http://fletcher.freeshell.org/wiki/MultiMarkdown
>
> http://fletcher.freeshell.org/wiki/MarkdownStuff
>
>
> Fletcher
>
>
> --
> Fletcher T. Penney
> fletcher(a)alumni.duke.edu
>
> We are born naked, wet, and hungry. Then things get worse.
>
>
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss(a)six.pairlist.net
> http://six.pairlist.net/mailman/listinfo/markdown-discuss
The bundle can be downloaded at:
http://fletcher.freeshell.org/wiki/MultiMarkdownTextMateBundle
Best, Mark
Hey there,
Can we update the Python Language definition in order to add folding
markers for python docstrings (particularly for long function
docstrings)?
Since there is an explicit beginning and end marker for these, I
reckon this should be pretty easy, but I'm not sure how to add it in
the face of that foldingStartMarker regex I see in the Python bundle
(I have the latest one from SVN).
So, the convention (from what I understand) is this:
A long doc strings for a function looks like so:
----- python code -------
def my_function(param1, param2):
"""This function does xyz
There is some long documentation here
...
...
... blah blah ...
....
""""
# real python code here
-----------------------------
So, something like adding a fold start and stop marker for """ could
do the trick (the indentation levels should be the same for start and
stop """ when folding is necessary).
Of course you can have this:
-----------
def my_function(param1, param2):
"""Short docstring""""
# real python code here
----------
So I don't know if that will hose it any, but I'm guessing it would
be ok since you can one-line { .. } code in languages that have brace
begin/end block markers.
Thanks,
-steve
Hi,
I have the following meta language which uses the tags
<php>...</php> and <htm>...</htm> to embed php and html.
Now, I would like to write a custom language module that
builds on the existing descriptions of php + html but I
cannot get it to work due to the 2 level recursion that
can occur.
Here's an example that I would like to format:
--------------------------------------
<span value="prefix"/>
<php>
print($foo);
<htm><span value="cool"/></htm>
</php>
<span value="foo"/>
<php>
print($bar);
<htm>
<span value="test1"/>
<php> print($test); </php>
<span value="test2"/>
</htm>
print($extra);
</php>
<span value="suffix"/>
--------------------------------------
The outmost context is html and everything can be
embedded in each other in many levels.
Is this possible? I got close but i.e. I have problems
using include "source.php" because it expects <?php as
a start tag.
Is this *very* complicated?
Andreas Pardeike
Well, my email to Chandler was returned to me so here goes my
improvements to the MEL bundle. I find them very useful and that they
round out the MEL support.
Changes:
* parsing for the function statements to catch 'global proc' and
'proc' better
* preference to allow function names to be put into the symbol list
* moved global out of keyword.control.mel to keyword.other.mel
* made all scopes point to mel
Take what you want and feel free to point out where I made errors.
Thanks,
Dan
> On Sep 11, 2006, at 8:31 AM, Max Lein wrote:
> Just send them to me (or the list) when you are done. These can
> easily be included. The custom one are a bit more difficult:
Will do.
> This won't be very easy to do, we'll have to figure out the best way
> to do it in terms of making sure the user stays up to date with newer
> versions of the bundle. We could tell you how to edit the language
> grammar to add these things, but that's not very easy to do and
> results in the user having local modifications to the bundle which
> might result in them not seeing any official changes that happen to
> the grammar.
Ok, I'm no expert, but I figure this is what many, many people want
to do. Perhaps you could just list these commands in a separate file
and include that file appropriately?
> One thing that can be done now, is that you can create a new language
> that basically has the extra commands, and then includes the latex
> language, and you would be using that new language instead. I could
> offer a template language and tell you what you need to edit where.
> However, I would consider that only a temporary fix, because my
> understanding is that the next major version of TextMate will have
> tools that will make this customization process a lot easier/
powerful.
That would be great.
> That's exactly why I advocate the use of \( \).
>
> (we could actually make it so that pressing the dollar sign produces
> the \( \) pair instead ;). )
;-)
> I meant it was not possible without editing the language grammar.
> However I did add yesterday marginpar as a separate scope. It is
> meta.paragraph.margin.latex (not meta.paragraph.marginpar.latex as I
> mentioned in my last email).
True. Again, another quick and dirty hack by me ;-)
> Can input do selective includes, like via \includeonly? [http://
> www.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/
> ltx-245.html]
> I was actually thinking, that one could simply duplicate the include
> drag command, and have a new one with input. Now, when you drag a
> file, you would be getting a menu with two options, and selecting one
> of them (with arrows or 1/2 numbers) would do the corresponding
> thing. We could do the same thing for graphics,
Nah, I think those people who want to change it, can do so easily.
> I was just looking at: http://authors.aps.org/revtex4/auguide.ps
> Section 6.4 explicitly mentions using \[, \] for unnumbered
> equations. And nowhere is it mentioned that \(, \) should not be used
> (though it does mention $).
Well, we do what we are used to in the end ;-)
I use align, because I got used to the way it, ahem, aligns formulas.
> The AMS-LaTeX guidelines do make it clear that both options are fine:
> [ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf]
>
> The only thing they discurage is the use of the eqnarray environment.
> They also recommend not using $$..$$
>
> Working on it. Actually the grammar will undergo a series of changes
> in the next couple of weeks probably.
Great :-)
You can also (ab)use me as a beta tester.
> I've just added command for part, chapter, paragraph, subparagraph.
> The triggers now are:
Thanks a lot.
> Also, all these commands now create the (fold) (end) comments
> described earlier, so they would fold and that should keep Jenny
happy.
Even better!
> Further, they have been designed so that you could execute them with
> a selection, and then they would wrap around that selection.
You thought of everything ;-)
> I would do: select the second part of the formula: press cmd-x, move
> down until out of the environment, type eq (or the right shortcut)
> followed by cmd-{ to generate a new equation environment, and then
> press cmd-v.
No sure, but that's what in principle the closing tag feature should
be for ...
> Alternatively, you can again select the second part of the formula,
> use ctrl-cmd-down arrow to move it out, and then use shift-ctrl-cmd-W
> to wrap it in a new environment.
I gotta give this a try.
> That is a good idea. Please suggest a list of specific howto topics.
> I'll see if I can also do a screencast demonstrating a typical
> complete workflow.
Yes, this would complement written documentation nicely.
> I guess that's why we have the outline at the very beginning, which
> links to the subsequent sections. In the first draft of the help
> there was such a thing, but then it was removed. We were trying to
> keep the size of the LaTeX file a small as possible, so that users
> could actually read the entire thing.
I don't think this is something you can keep up with the increasing
complexity. Thus, I don't think it's a good idea to constrain
yourself in such a way.
Instead, you could design one section to be read thoroughly and then
let the rest be what it is: a manual.
> How about a cheatsheet instead? A single page containing all the
> necessary information, in the form of a pdf?
Sounds like a good start. Refer to the appropriate sections in the
Help as well, then people can go on reading.
> Allan and I both agree with that. This is something that's missing.
> However, a lot of the customization of the LaTeX bundle should be
> done via the LaTeX Configuration file instead. What kinds of
> customizations did you have in mind? Things like creating a new
> snippet or a new command, or changing a current command? Or more deep
> things related to the syntax?
I would say both. Take a look what I did, I hacked your bundle to get
the functionality I want -- at the expense that it might break in the
future.
So I would actually do both -- if time permits.
> > For me, the most helpful kind of documentation is one that explains
> > by example (e. g. Samba by Example). So I would suggest to write
> > HowTo sections on `Getting Started', `Big LaTeX Projects',
> > `Customizing The LaTeX Bundle'. I would be willing to make
> > additions of my own.
>
> I take it you have seen the posts here: http://skiadas.dcostanet.net/
> afterthought/list-of-my-textmate-pages/
> They are a bit outdated I must say, need some new ones. Not sure if
> they count as HowTo's.
No, I haven't. You should definitely link them in your help.
Max
After installing the latest LaTeX bundle, I have noticed that *all*
labels are now included in the drop-down menu in the bottom instead
of just the section labels. Since I usually have 40+ citations in my
papers and notes, the drop-down menu has been rendered unusable.
Is there any way to fix this?
Max
Begin forwarded message:
> From: Andy Hunt <andy(a)pragmaticbookshelf.com>
> Date: September 12, 2006 8:28:26 AM EDT
> To: announce(a)lists.pragprog.com
> Subject: [Bookshelf] Textmate: Power Editing for the Mac
>
> We're very pleased to announce that our latest title, "Textmate:
> Power Editing for the Mac", is now available (in BETA) at
> pragmaticprogrammer.com/titles/textmate
>
> TextMate is a full-featured text editor available for Mac OS X that
> can greatly enhance your text manipulation skills. TextMate is
> actually a thin shell over a personalized team of robot ninjas ready
> to do your bidding. Let's face it, who doesn't want their very own
> team of robot ninjas?
>
> With TextMate you can do your normal work, but signal the ever-
> watchful ninjas as you go. At your command, they will launch into
> action, slicing through text, building repetitive structures of data
> in the blink of an eye, and much more. They will even post to your
> blog, handle your IRC conversations, and read your email.
>
> Inside this book you will learn how to teleport instantly to the
> exact line of the file you need to be on, edit the data with the
> briefest incantations of power, and banish the end result to the land
> of your choosing. It's magic, as you can plainly see.
>
> Leave the days of dull work behind. Learn your spells, gain access to
> your team of robot ninjas, and you too will be able to edit text so
> effortlessly that everyone watching over your shoulder will be forced
> to ask, "Wait, how did you do that?"
>
> With this book, you'll
>
> * Learn the preferred editor for Rails application development
> * Use built-in automations for HTML, Ruby, or over 30 other languages
> * Manage all the files in your projects
> * Fly through your files with easy navigation techniques
> * Master quick and dirty text editing with strong regular expression
> integration
> * Teach TextMate new languages and actions that will save you times.
>
> TextMate is a modern, powerful tool for programmers, web designers,
> and anyone else who regularly needs to work with text files on Mac OS
> X. TextMate focuses on pragmatic automation, which means it will save
> you time--time that's always in short supply. See how your lowly text
> editor can become a hard working member of your staff.
>
> Available now in BETA at pragmaticprogrammer.com/titles/textmate
>
> For more information on our popular BETA book program, please see
> http://www.pragmaticprogrammer.com/starter_kit/faqs/beta_faq.html
>
> --------------------
> Coming soon in Beta:
>
> * Rails For Java Programmers, by Stuart Halloway and Justin Gehtland
>
> Recently released:
>
> * From Java to Ruby: Things Every Manager Should Know, by Bruce Tate
> * Agile Retrospectives: Making Good Teams Great, by Esther Derby and
> Diana Larsen, Foreword by Ken Schwaber
> * Google Web Toolkit: Taking the Pain out of Ajax by Ed Burnette
>
> --------------------
>
> Enjoy, and thanks for your continued support!
>
> Andy and Dave
> www.PragmaticProgrammer.com
>
>
> _______________________________________________
> Pragmatic Bookshelf Announcements
> http://lists.pragprog.com/mailman/listinfo/announce
>
--
The moral of the story is this: don't assume that someone asking you
a question is an idiot -- especially if the question is about the
intricacies of SPARC DCTI couples. http://blogs.sun.com/roller/page/
bmc/20050125#solaris_10_revealed
OK. The title is terrible... Sorry...
This is a feature request. When I search
a word in a file with ⌃S, I would like some
warning (either a sound, or so...) when the
search starts again from the beginning of the file
I hope I make myself clear... :D
Thanks in advance :)
Howdy all,
Is anyone using the MEL Bundle? I've started using it at work and I
have a couple of simple changes for it. What's the best method of
submitting those changes so that they can be put into the repository
by a qualified commiter?
Dan
I sometimes find myself reformating big chunks of code (html) and
then i usually build a little scratch macro, and then i just hit shift
+command+m lots of times to go through the code. while this works, is
there an easy way to say something like "do this until end of file"
or simmilar?
perhaps make the macro dependant on finding the next text string of
something until the end or something?
andreas
Hi,
I've been experiencing this for quite a while now but until now had
no time to dig into the matter: With "Check Spelling as You Type" I'm
experiencing abysmal typing speed problems when working on LaTeX
documents. It only happens when I'm working some in already existing
paragraphs, *not* when typing at the end of the document. I can
actually see single letters appearing one after another in slow-
motion. Very annoying! Once I turn off "Check Spelling as You Type"
everything's back to normal, but it lacks a lot of convenience ... It
this a known problem? Does anybody else experience these problems, too?
(I'm working on a 12" PB (1st gen., 867 mhz) maxed out with 1.12 GB
RAM. It's plain text with a bit of markup so the machine *should* be
up to it ...!)
Christian
Hi All [Brad Choate in particular, I imagine],
I was wondering about the status of MT Category support in the blogging
bundle. Given the pedigree of the bundle's author (!) I would imagine
this would be a pretty important feature...
Yours,
Andrew
Hi all,
I was wondering about the status of 'full' support for folding in
python? The current implementation based on blank lines, spaces, etc.,
doesn't quite work for me. I understand that the 'folding engine' as it
is can't really handle python's indentation model -- but is some support
in the cards?
Andrew
Minor bug report:
In my .bash_profile I have GREP_OPTIONS=-Hn so that the output from
grep always includes the file name and line number (more often than
not I'm searching multiple files).
However, this caused the "Install 'Edit in TextMate'" command to fail, saying:
Error
The input manager ((standard
input):2:/Applications/TextMate.app/Contents/Resources/Edit in
TextMate) was not found in the TextMate application bundle.
You may need a newer version of TextMate.
Once I realised the source of the error, working around was
straightforward; if you think it needs fixing, the simplest way is
probably just to change the first line of the script in the plist
from:
SRC="$(ps -xwwp $PPID -o command|grep TextMate.app|perl -pe
's/(.*?.app).*/\1/')/Contents/Resources/Edit in TextMate"
to:
SRC="$(ps -xwwp $PPID -o command|GREP_OPTIONS= grep TextMate.app|perl
-pe 's/(.*?.app).*/\1/')/Contents/Resources/Edit in TextMate"
Cheers,
Andrew
Hi,
I can't get folding to work for phpDoc comment blocks. The reason is
that the closing marker is seen by TextMate as being indented by one
extra space. phpDoc blocks start with /**, each commented line starts
with a space and a *, and the final line starts with a space followed
by */. Is there any way to get folding to work in this case?
TIA
_________________
George
Hi,
I usualy work on remote files by opening them with Transmit. When I
worked with BBEdit, theses files were opened as tabs in a single
windows as the project windows of TextMate. But i don't think it's
possible to do this directly in TM. I have to create a new Project,
open my files, and them by drag'n'drop in the project.
It would be nice to decide if files open in a tab window and it would
be very nice if we could open directly remote files from TextMate.
Merci. :)
Hadrien Lanneau
HomeWorks() {
-> http://www.hadrien.eu;
}
Podcast() {
-> http://www.AltI.info;
}
Services() {
-> http://www.altnetvision.info;
}
Chat with me() {
-> iChat/AIM/MSN : hadrienl(a)mac.com;
-> Jabber {
moi(a)im.hadrien.eu;
hadrienl(a)gmail.com;
}
}
Good evening,
If I were to add an extra "tag" for foldingStartMarker and
foldingStopMarker in the PHP bundle, am I under the assumption that
it would be read by the HTML bundle when TextMate sees it inside the
<?php ?> region?
When I am editing a PHP file and set the bundle to PHP, the folding
marks show up. But, when in HTML mode and use the same markers in
the PHP region, the folding marks are no longer appearing.
Am I doing something wrong? Or do I need to do something else?
Thanks
Does anybody have/know of a macro or other bundle that
converts RHTML to Markaby templates? I created a basic
macro that converts '<tr>' to 'tr do', '</tr>' to
'end', and so on.
Thanks,
Joe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com