I find this macro quite useful, but it has some quirks (I think).
First, I love how it takes img tags and makes them <img /> rather
than <img></img>.
When I apply it on a li-tag, and then hit enter, I get a nicely
formated line break with a tab indentation
<li>
|
</li>
but when I do the same on a h1 tag, the result becomes
<h1>
|</h1>
How, why, fix, please et cetera.
Andreas
Hi all!
[For the impatient reader: Just some food for thought, no solution
given].
The discussion about remote projects made me think that ideally
Virtual File Systems (VFS) really do not belong into the editor,
rather they should be part of the OS. An example is the OS X webdavfs
[1], which allows to mount webdav servers with the Finder, or the
(poorly working and read only) ftp file system [2]. Something like
that for SFTP would be the ultimate solution.
Under linux there is an interesting project called Fuse [3], which
basically hooks a generic driver into the kernels VFS and
communicates with user-space file system 'modules' (the OS X webdavfs
works somewhat similar). Someone else recently wrote a driver for
FreeBSD [4] that allows to use the Fuse file system modules.
The problem is that the OS X VFS implementation seems to be rather
under-documented and auite the moving target [5]. It changed a lot
for Tiger. It has developed independent from FreeBSD, so porting the
FreeBSD Fuse driver is not at all trivial (lack of documentation
again not helping).
I briefly entertained a bridge that would make a remote sftp server
appear like a webdav server, allowing it to be mounted locally using
the webdavfs and without extra software on the server. While this is
relatively easy to do (at least compared to the alternatives), it has
one major back-draw: DAV [6] (complex [dare I say convoluted] as it
seems) does not support the notion of file permissions. And the
thought of making all files pushed to the server executable (or not
executable) is not very appealing.
The ftpfs [2] on OS X uses yet another approach: It presents itself
to the OS as an NFS server, and translates NFS to FTP. This may seem
like a convoluted approach (and it is), but has the advantage that it
can be completely implemented in user space, and the NFS protocol
encapsulates it from changes in the kernels VFS implementation. So
one could write a bridge/gateway program that serves NFS and
translates it to SFTP. Or (though I have not had a look at
feasibility) it might even be possible to make this Fuse compatible,
giving easy access to many of the file system modules available for
Fuse ([7], or makings of a RailsFS [8]). Sometimes I wish I wouldn't
have to work for food...
Gerd
[1] man mount_webdav
[2] man mount_ftp
[3] http://fuse.sourceforge.net/
[4] http://wikitest.freebsd.org/moin.cgi/FuseFilesystem
[5] http://developer.apple.com/qa/qa2001/qa1242.html
[6] http://www.webdav.org/
[7] http://fuse.sourceforge.net/filesystems.html
[8] http://redhanded.hobix.com/inspect/
railsfsAfterACoupleMinutesOfToolingWithFuseWhoa.html
Hello,
I haven't had a chance to follow all of the TextMate enhancements as
closely as I would like, but I thought that I saw something about
regexes being able to look back and forward now.
I edit a lot of python files that haven't been written with TextMate,
which means that lines inserted for spacing/formatting are completely
blank. It would be nice if the folding support for Python could
support files that weren't written in TextMate.
Is it possible with all of the regex changes lately that Python
folding support could now support this?
I don't think that just reformatting the file(s) in question will
help because the people writting the files use emacs and have the
contents of their buffer reformatted when they open the file and when
they write it out, they strip any spaces and tabs on blank lines.
Thanks for any information,
Jordan
When recording a macro with "Use selection for find" it seems to work
for the find clipboard bur not the replace clipboard.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
HI,
Is it yet, or will it be possible to get a item like this in
Safari->Services : "Edit page source in TextMate"?
Thanks,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
I've started using tm_wait as my mutt editor, and have been working on
an email bundle to make editing mail easier in TextMate. I've finally
got automatic hard-wrapping working (I have a macro bound to <return>
that hands off the current paragraph to the 'par' wrapping utility; this
handles wrapping better than TM's "Reformat Paragraph" command). The
last thing I'd like to do to polish off the text-wrap is to set "Soft
wrap" on and adjust the wrap column whenever an email is opened.
Is there any way to do this? The soft wrap setting at least appears
to be stored on a per-window basis. I was thinking they would be
stashed in the file's metadata, but using the xattr tool (mentioned at
http://arstechnica.com/reviews/os/macosx-10.4.ars/7) shows that only
the caret location is saved. (Hmmm... I could use this to place the
cursor below the mail headers... but I digress.) I haven't seen mention
of "hooks" in TextMate for calling commands/macros, but maybe I just
haven't looked hard enough.
Suggestions are appreciated.
--
eric
So I'm lying here, just staring at the ceiling tiles.
And I'm thinking about what to think about
I use Version 1.1b17 and have the re-indent-preference activated.
When I have a text like this:
<table>
<tr>
<td></td>
</tr>
</table>
and copy the 3rd line (the _hole_ line) and paste it between the 3rd and
4th line, I get:
<table>
<tr>
<td></td>
<td></td>
</tr>
</table>
Instead I would rather expect:
<table>
<tr>
<td></td>
<td></td>
</tr>
</table>
This doesn't happen, if the line before has no starting td-tag.
Another problem: If you put the cursor between the starting and ending
td-tag and press return, you'll get this:
<table>
<tr>
<td>
(cursor here)
</td>
</tr>
</table>
However, I would expect the ending td-tag to be indented.
Hi -
I've been using TextMate for a short while to do a variety of
software development tasks. My day job involves mainframe
development, including developing and maintaining REXX Execs. As I
didn't see that anyone had done this before me, I've created a theme
and syntax highlighting bundle for it. The syntax highlighting is
working quite well - I'd personally say that it's about 95% there. At
this point, I've come up with some questions regarding themes (mine
I've called the-not-terribly-original "Mainframe")...
1) If themes are to syntax highlighting (a language) in the way that
CSS is to HTML, then why is there not a way to specify in the
language definition a specific theme to use? I want to use my
Mainframe only when doing REXX stuff (so far), and other themes when
doing say C for instance.
2) It would be easier to create and maintain themes if they were on
the Window menu as the Bundle Editor is. Having it buried under
Preferences -> Fonts & Colors is IMO odd.
3) Unlike a language definition which I could cut 'n' paste or even
cut 'n' email, where do user created themes reside? and how could I
export/import or cut 'n' paste one?
Thanks!
Brian Caldwell
Hi List,
I'm pretty sure this has come up before.
What's the best way of using TextMate to edit a remote project via
ftp or sftp? The OS X finder's ftp disk seems to be read-only, so
that's no good.
Any distilled wisdom?
Cheers,
Ian