Hi!
Just wondering because of the news that input managers will be banned
in Leopard. Is there already a new solution planned for "Edit in
TextMate"?
Niels
--
Jammern für Anfänger: Niels K. (25) Jammerbacke -- auch für
professionelles Jammern zu haben
http://jammern.wordpress.com
I made my first screencast ever. It's 11 minutes long, and 15Mb big! The
volume is a little low,
pronunciation could be better, but I hope you enjoy! demonstrates the
latest svn features.
http://home.mac.se/joachimm/Objective-C_with_TextMate.mov
Joachim MÃ¥rtensson
For a bundle I'm maintaining, I wanted to be able to easily toggle
between having changes written directly to the bundle (so that I can
commit them) and having changes written to deltas (so that I can make
local customizations that are not committed).
I wrote a command for this:
http://henrik.nyh.se/2007/03/24/textmate-command-to-toggle-writing-deltas/
I'm sure others have done similar things before, but I couldn't find
anything, so I rolled my own, and thought I'd share.
If the command does something bad or unnecessary, or if you've solved
this problem in a better way, please let me (us) know.
I have lately had to use code that includes
\begin{SaveVerbatim}[commandchars=\\\{\},codes={\catcode`$=3
\catcode`^=7}]{guard}
$\lnot$busy(phone)
\end{SaveVerbatim}
The \catcode`$=3 confuses the TextMate's grammar and thus everything
that follows is treated at maths in scopes and hence in colouring.
Is there an easy solution without messing with the main language
definition?
Hi there,
after getting nagged at my blog (http://www.gnegg.ch/archives/354-
External-blogging-tools.html) to look into why TextMate's Blogging
Bundle behaves strangely with Serendipity blogs, I had a look into
the problem.
Actually, there are two problems, but so far, I've only fixed one
(it's getting late here):
1) When you have a Date:-Header in your Posting, s9y will interpret
the date wrongly and will assume it to be the beginning of the epoch
(1970-01-01). This is problably a flaw in s9y and I'll report it
there as soon as I know what's going on.
2) The Pings- and Comments-Headers were ignored and Pings/Comments
were turned off regardless of what the headers were set to. This is
what I've actually looked into this evening (GMT+1 here):
Basically it all comes down to the fact that parse_post (blogging.rb)
is unable to cope with empty headers of which s9y produces at least
one: s9y always sends an empty mt_convert_breaks-member in the post
record and when no tags are defined, it'll also send an empty
mt_keywords member.
With an unpatched blogging.rb, this will create something like this
(ignore the f*ed up date - that's caused by bug 1) above):
Type: Blog Post (Markdown)
Blog: s9y
Post: 1
Title: First entry
Date: 1970-01-01 02:00:00 +0100
Keywords:
Format:
Pings: On
Comments: On
This causes the parser to stop after the Keywords-header (lines
206/207) which will lead to the following headers to be ignored, thus
turning off comments (s9y assumes Comments=off if the information
isn't present in the RPC-call).
Now I'm not sure if s9y's behaviour is actually legal here (please
enlighten me), but I think the blogging bundle should be able to cope
with empty fields.
There are two possible fixes: One is to fix the fields-parser to make
it stop bailing out at empty fields. I've attached bb_fixparser.diff
which does that. The other way is to make post_to_document stop
adding empty format and keyword fields. bb_skipempty.diff does that.
I'm not sure which way is the correct way to go. fixparser has the
tendency of working with even more crude blogging engines, while
skipempty is what the bundle did so far (look at the handling of
mt_tags for example.
Anyways. Please consider merging one of the patches to make the
blogging bundle work better with serendipity.
Thanks
Philip
Hi Allan
How diffiicult would it be to add an option to
the folding system telling it to obey indentation
exclusively?
With this option, TextMate would become a
very nice cataloging tool for removable media:
I drag and drop the CD on a TextMate window
and the tab-indented list of the content appears.
It is already very easy to search such lists,
with folding-at-indentations it would be also
easy to navigate them.
Thanks
Piero
Hi,
We are evaluating textmate as part of a wider move from PHP to Rails. I have an issue which I hope someone here might be able to help me with...
We have a shared linux development server and we each checkout and edit our files on the server remotely either via samba shares or directly by SSHing in. This is so we can preview the changes in our dev sites as we make them.
This works OK for the windows guys (they use Tortoise svn and map a network drive to get to their files). I am OK as I am comfortable in the terminal and don't mind SSHing over to the dev server to do any subversion stuff, but we have a couple of designers who have a fear of command lines and want to work strictly within textmate. Running any SVN command from textmate fails because the samba share appears like a local directory and all the SVN commands get screwed up. It then locks their copy and we have to clean up the locks.
Is it possible to set up textmate to either tunnel the SVN commands through SSH so they run in the devserver environment as if performed in a dev server shell or switch to using a different network filesystem (SSHFS, maybe?) so that we can edit our files remotely on the development server and use SVN from within TextMate?
We'd even consider moving to another open source version control system to fix this as long as there is good support for Mac, Win and linux...
Many thanks in advance,
Matt.
---------------------------------
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
Hi,
Textmate incorrectly labels italicised and bolded text.
In the following markdown: "this is s_om_e markdown", 'om' will be
tagged as italicised. When converting to HTML, 'om' will not be
italicised. I am guessing that the Markdown processor requires that
italicised text be surrounded by white space. The same is also true
for bolded text.
I was able to modify the language grammar to not incorrectly tag the
text. My solution is probably quite naive but it did work for me. Can
someone with more regex fu vet this and can we get it added to the
official bundle please (assuming it should be added and I am not
wrong on this).
Luke.
I've been toying around with the idea of a PHP/HTML language
definition. The problem is that when I'm working on a PHP project, I
switch back and forth between pure PHP files and PHP/HTML files all
the time. As you can imagine, switching the language definition each
time to get proper syntax hilighting can get bothersome. It would
most likely be a huge bundle and take a lot of work, but I was just
wondering if anybody else has found any tricks for this kind of issue
before I investigate it further.
Thanks,
Michael