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