Hi Allan,
I was thinking that it would be useful if, in the Open Recent menu, you
separated Projects from Files with a horizontal divider. See the
attached for one implementation idea.
Chris
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
Would it be possible to have tab-emulation only function at the start of a
line? Extremely few (if any) of the documents I edit directly have a column
layout (where tabs would be useful), I only really use them for
indentation.. and when editing regular text it'd be nice to have
backspace/delete only remove one space at the time.
Regards,
Martin
I know you are working heavily on the project drawer and may know this,
but FYI ...
Bug: TextMate does not consistently move files (on the hard disk) as
they are moved in the project drawer.
Reproduce: Set up a project with several existing files added from a
directory, lets say ~/Sites/lib/php/report . they are not grouped in
the project drawer, just loose. Then, in the project drawer there is a
group called unit_tests, which exists on disk as ~/Sites/unit_tests. I
have a file named settings.ini that is from the reports directory but
not grouped anywhere in the project drawer. I like to alphabetize my
list of files so I can easily find them later, which means dragging the
files into place manually. in doing so, say I accidentally move
settings.ini file into the group unit_tests. What happens is that
TextMate physically moves settings.ini into ~/Sites/unit_tests. Back
in the project drawer when I notice the mistake, I move it out of the
unit_tests group but TextMate does not physically move the file out of
~/Sites/unit_tests back into ~/Sites/lib/php/reports, like it should.
This confuses TextMate (and me) and when i repopen a project, the files
are back in unit_tests.
aside from that ... what about the ability to set a root directory for
the project drawer so the project drawer can be an instance of the mac
os x finder in list mode? Maybe you could have several roots if your
project contained files scattered around the hard disk (which doesn't
seem like a typical scenario to me).
if nothing else, I would like to have the option to alphabetize the
project drawer. This would just make dealing with large amounts of
files easier.
in any event the project drawer is still very useful in its current
state.
thanks, Kumar
Hi all,
Unless I'm doing something terribly stupid, it seems it's impossible to
use a snippet while in another snippet without losing the tab
placeholders of the first... Is that right? That'd be sort of
disappointing, especially since snippets are part of what makes
TextMate elegant and customizable---would that be hard to fix?
And a related automating-stuff point: Would it be possible for find
operations performed by macros not to wipe out the previous find
string? This too I think would immediately make lots of things possible
that were only semi-possible before... (Alternatively, you could get
the same functionality by allowing commands to select text and move the
cursor without the mediation of the separate window, which would be
even cooler---you could do stuff like selecting the current sentence or
the current block---but seems like it might be a larger undertaking...)
Marcin
Hi All,
Using my fingers and RegEx, I hardly manage to convert simple HTML
file to TeX file, something like :
find : <h1>([^<]+)</h1> replace : \\section{$1}
find : <h2>([^<]+)</h2> replace : \\subsection{$1}
find : <ul> replace : \\begin{itemize}
find : <blockquote>([^<]+)</blockquote>
replace : \\begin{quotation}\n$1\n\\end{quotation}
and so on...
Has someone here written a macro that does that job? It would be
very helpfull :)
Thanks,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
wow, accidentally pressed the Help key while typing in TextMate and
found a menu with the following options:
Dictionary Search
Google Search
Thesaurus Search
Wikipedia Search
Yahoo Search
Upon selecting an item, TextMate passes the current word under the
cursor to the said service. very nice. I haven't seen this in other
programs -- is this an OS X thing? Or better yet ... Is there a plist
somewhere in TextMate to add to the list?
k
I noticed that when dragging a .css file into a transitional XHTML
document, the link tag isn't properly closed. Just wondering if you
could add doctype detection for drag-inserting links to files.
Chris
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
wondering if this is a bug or intended somehow ...
I opened a file, params.ini, to edit in TextMate. TextMate handled it
fine besides no sytax highlighting since none has been defined
presumably. But when I added it to a project with other PHP files, the
file would not open in TextMate. For example, I clicked on it once
from the project drawer and nothing would happen. if I double-clicked
on it the file opened in SubEthaEdit (which I think was a decision made
by the Finder). Shouldn't undefined text files still open in TextMate
from the project drawer? Do I need to create a syntax plist as a
workaround in the meantime? TextMate 1.01.
thanks, kumar
I'm about to embark on a lengthy and complex project (changing 30-odd
FileMaker tables into MySQL). Usually I use the (excellent) CocoaMySQL
for table creation but I thought I'd explore using snippets in TM...
Basically it works like a charm (create table, add date field, add
varchar, add int...), though I haven't tested it vs CocoaMySQL to see
which will be faster (as CMS offers more tweaking of the field
definitions). But I figure I can whack out the fields in TM then import
the whole .sql file into CMS for the tweaking, adding indexes, etc.
> CREATE TABLE textmate (
> textmate_id int(11) NOT NULL auto_increment,
> tm_user varchar(50) default NULL,
> user_no int(5) default NULL,
> user_email varchar(50) default NULL,
> entry_date date default NULL,
> PRIMARY KEY (textmate_id)
> ) ENGINE=InnoDB;
The one thing I can't manage to sort out is including e.g.
"`textmate_id`" since the "`" is used in the snippets to evoke a shell
command... I tried escaping with "\`" but that didn't work. Am I
missing something obvious?
In any case, it's clear that snippets can revolutionize coding :) Wish
I had more time to explore... embedding shell commands could be
fantastic...
Paul
As the help file suggests, I've tried changing some keyboard shortcuts
with System Preferences->Keyboard & Mouse->Keyboard Shortcuts. I'm
trying to change the following items in the Text menu:
Reformat Paragraph
Reformat & Justify
Unwrap Paragraph
I can get Reformat & Justify to work but not Reformat Paragraph and
Unwrap Paragraph.
I suspect it's because both of those items change their name depending
on wether text is selected. I.e., when text is selected they become
Reformat Selection and Unwrap Selection.
I've tried setting the same shortcut for both, e.g., Reformat
Paragraph and Reformat Selection to try to cover both menu states, but
it doesn't work and the System Preferences warns me of an error
because of the duplicate shortcut key.
Does anyone know how/if I can make that work? Or am I just out of
luck because of the way the item changes names?
Incidentally, I've worked around it by creating a local
KeyBindings.dict, I'd just prefer to do it with the System Preferences
so I don't have to always keep my KeyBindings.dict up-to-date between
version changes.
Thanks much for any ideas!
Hi,
I've noticed from previous mailings in this mailinglist that there are
loads of keyboard shortcuts available in TextMate. Is there a list
available somewhere which lists all of the default ones ?
And I also saw that there are lots of default OS X keyboard shortcuts I
didn't know about, does anyone know of a list of those?
Jeroen.
I created a service that adds “Edit in TextMate” to the Services sub
menu. The key equivalent is command-escape (but there's an OS bug which
requires the menu to have been open at least once before the key
equivalent works).
It opens a TextMate window with the selected text, when you save and
then close the TextMate window, the modified text will be sent back to
the application.
There's currently a 3 hours timeout (the application will have the busy
wheel until you close the TextMate window).
Place the service in ~/Library/Services -- you need to log out/in for
the services menu to be rebuilt. If you launch the service manually,
the service should be available for new programs or programs which
hadn't already had the services menu built (but restart if it doesn't
work).
If you use the service from within TextMate, it may hang (until you
manually break the service) -- I'll add a workaround for this.
It currently can only handle one edit task at a time, and it requires
at least version 1.0.2b3 of TextMate.
The reason that it's an external service and not built into TextMate
has to do with the way services work -- I may be able to find a
combined solution later.
It uses a temporary file for exchanging the text, this is always named
“Data from <application>.txt” and placed in “/tmp/<uid>/TemporaryItems”
-- it doesn't remove the file afterwards and it doesn't ensure that the
file didn't already exist.
Unless I missed something (which, today, wouldn't surprise me in the
least..) it's not possible to create a project from a remote folder over
(S)FTP, is that correct? From what I understand of FTP and ODB this won't be
easy to implement?
Has anyone found a way to mount FTP folders as regular folders in the finder
(with read/write, not Apple's readonly way)?
A workaround I got was to open the files seperately, then dragging the
window's icons to a new project window (or if you open its parent folder
from the titlebar you can drag all the opened files to TM), selecting the
files in the project window once so they get a tab, and then you can close
the original windows - edit/saves will update the version on the server. If
you close the original window without 'tabbing' the file, the temporary file
will be removed (and editing will not be possible).
Regards,
Martin
Hello,
I feel like this should be easy, but I can't seem to figure it out.
How can I make TextMate give .dwt files the same Syntax highlights as .html
files?
Thanks!
Simon
P.S.- .dwt files are dreamweaver template files, by the way.
So I'm not the only one who doesn't bother making a GUI for the
preferences ;)
Begin forwarded message:
> From: David Kocher <dkocher(a)cyberduck.ch>
> Date: 8. November 2004 10:54:19 CET
> To: Allan Odgaard <allan(a)macromates.com>
> Cc: Steven Skoczen <steven(a)quantumimagery.com>
> Subject: Re: Thanks, and support for TextMate via ODB?
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> To test Cyberduck with TextMate, please change the defaults to
>
> defaults write ch.sudo.cyberduck editor.bundleIdentifier
> com.macromates.textmate
> defaults write ch.sudo.cyberduck editor.name TextMate
>
> Thanks!
> - -dk
I'm clearly doing something wrong here but--how on earth do I turn
tabs on?! Every time I open a new file (cmd-O) it opens in a new
window! I've looked through all the menu items, searched the wiki,
help *and* the mailing list and but I'm still tab-less. (I'm
embarrassed to say I can't figure out how to activate the "dynamic
file outline" working either--so I'm actually not able to use features
number 1 and 2 on the homepage...)
--
http://beebo.org
+44 78 2118 9049
Hi,
I'm having a go a writing a syntax highlighting format for markdown
(http://daringfireball.net/projects/markdown/), and I've run into a
couple of problems. The first is the lack negative look behind
assertions which makes matching escaped sequences (eg. * \* *) a lot
more complicated. I can use begin, end and swallow, but there isn't
any way to limit these to single line sequences. Are there any plans
for including them in the future?
The second problem, which I haven't been able to overcome, is matching
multiline sequences that end with (eg.) two newlines. For example:
begin = "\\*"; end = "\\n{2,}" doesn't match what I'd expect. Is this
a known problem?
Thanks,
Hadley
Hi Allan,
A few little suggestions.
1. Find dialogue should remember 'regular expression' setting between
invocations.
1a. Cool if Find dialogue remembered the last few searches and replaces.
2. Option to subtly highlight current line.
3. FYI. On occasions I can't quite duplicate, the last 'pixel' on the
right is not displayed. The document gets into that state and
resizing the window doesn't help. I'll try to collect more data on
that.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
If I have a bit of text like
$var1 = "some text";
$var2 = "some more text";
cursor-keying past the second quote will briefly light up the first, but the
third quote will briefly lite up the second (and the fourth the third
again). Seems odd?
But keying past a quote where it's matching quote is not visible, the whole
*window* flashes yellow..
This happens when working with syntax coloring for HTML (ASP) and HTML (PHP)
at least, probably others.
Can anyone reproduce?
Regards,
Martin
The latest beta of MarsEdit includes Edit with Textmate support:
> This is just a small update, an internal-only build, mainly for people
> who want to use TextMate.
>
> Other changes -- customizable ping list and Markdown preview support
> -- are still en route, they're just not ready yet.
>
> Changes:
>
> *** Edit with TextMate
>
> Edit with TextMate now appears in the File. ctrl-cmd-J. The feature
> requires TextMate 1.0.2b3 or better.
>
> There appears to be a TextMate bug regarding character encoding. I use
> the exact same code for TextMate as for BBEdit and SubEthaEdit -- but
> TextMate turns curly quotes (and so on) into weird characters. Either
> there's something I need to set in TextMate (that I couldn't find) or
> there's a TextMate bug. If someone who's in touch with the TextMate
> folks want to get the skinny on this, that would be appreciated.
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
I'm wondering about using CTRL-K to cut a line and CTRL-y to paste a
line.
Typing ctrl-k seems to cut the line out, but ctrl-y has no effect. I'm
used to typing
these commands in a terminal and in emacs.
Has anyone else experienced this?