Congrats on 1.5...TextMate is 100% my editing environment (bb what?).
I just wanted to ask what the status is of implementing chunk-undo. I
was really hoping to see it sooner than later, it's still the one
major issue that frustrates me about TextMate.
Hi,
I've been trying unsuccessfully this afternoon to create something
that would perform 'save' and 'close' on a file with a single
keyboard shortcut (which would be apple-shift-d, same and 'send ' in
Mail) for the Subversion bundle. After all, that's what my fingers
seem bound to pressing when I've finished writing a svn commit
message (they must know better and feel it's like I've been writing
an email)... :-)
But recording a macros doesn't appear to work -- save doesn't appear
to be recorded as a macro action, and close appears to cause the
current macro recording to be cancelled.
I also had a look at using a command, which would allow me to save
the file first, but I can't figure out how to tell TextMate to close
the current file from there.
Can it be done?
Cheers,
Graeme
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
hi, some comments on the new version
Comment 1
the button in textmate's terminal usage dialog tries to make an alias
to the mate command in usr/bin
For me this operation failed (not permitted).
Question: I have an existing copy of the link in "~/local" ... Didn't
textmate used to expect ~/local rather than ~/bin ? What are we going
to settle on?
PS: could you make this command also add whatever folder it looks for
to the .bash_profile and also create ~/bin if it doesn't exist? (is
it xmas or what :-) )
Comment 2:
"templates" offers only strict version 4 html as a template for html?
Lots of us probably don't write code which is strict v4, so that
might be asking for trouble? maybe transitional as an option?
Comment 3
There is no comment 3
take care,
t
Hi,
Is there a shortcut to "Jump to the symbol under the cursor"?
I tried to write a macro with ^W, Cmd-E, Cmd-G but it searches the
string an not the symbol.
Also ^W, Cmd-E, Cmd-Shift-T... I would suggest a Cmd-Shift-T + Alt to
jump to the symbol selected and then people could write that macro...
Thanks,
--
Pedro Melo
JID: melo(a)simplicidade.org
Hi all!
I've been using doxygen to write documentation for a wavelet image
compression codec of mine, which is written in C. There I noticed two
things on folding, which are the following:
/** This is the basic "pixel" type.
* \Warning This should not be less than 15 bits + sign!
**/
typedef short int wv_pel;
Here, the end-comment marker has to have two *s, it doesn't fold with
one, but if I add a third * to the open comment bit, then it still
works?
Another thing which I couldn't figure out is the following:
if (foo > (bar >> 3))
{ /* this does something nice */
foo++;
}
else
{ /* not nice */
bar++;
}
Here, the folding does not activate with the comment on the same
line, which I actually use quite often.
I am really bad with regular expressions, so I couldn't figure out
what they're trying to (referring to the folding patterns). I am
aware though, that I can change them myself if I were so inclined,
but I just wanted to ask whether TM expects me to do the above things
in different way which may be equally nice.
Oh, and Allan, nice website overhaul. :)
Thanks,
Daniel.
Hey all,
Not sure how many people out there work with both MTASC and TextMate
(more than just me I hope), but I just put this up and thought it might
be of interest:
http://tinyurl.com/d8syh
There's a video of it in action here:
http://www.unfitforprint.com/articles/2005/12/19/developing-flash-on-a-
mac
Let me know if you find it useful.
- Ben
P.S. Apologies for the cross-post :P
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
One option is to use a menu button, though I'd make it slightly more
awkward to perform a Replace in Selection but OTOH it would allow to
(also) show the Replace All in Selection key equivalent right there
in the find dialog.
Just a little yay! for the work on the manual. I was looking for
indentation rules and found it in justa few clicks in the manual. At
least this time; it just worked :D
Andreas
I like the TextMate auto-update feature except for one thing: After it
updates, I have to re-install my custom icons [1].
Is there any way I could protect them from auto-update? Does it use rsync?
If yes, maybe add an --exclude flag to it?
[1] http://one.textdrive.com/pipermail/textmate/2004-November/001211.html
For some time now i've noticed that, *occasionally*, when I do:
expr.each doo|<TAB>
I end up with
expr.each doo
|
instead of
expr.each do |_|
|
end
as I would expect. I had assumed that I was somehow pressing <CR>
instead of <TAB> but I just caught myself and I am 99% certain I
pressed <TAB>.
So it seems to me like, sometimes, the trigger doesn't fire to do the
snippet. I think I've noticed it for the last few versions.
Does anyone else see this?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
I've created the beginnings of a bundle for use in screenwriting and
I'm looking for help to develop it further. As it stands now,
TextMate is used solely for it's behavior (snippets, macros, etc.)
but I hope that it's abilities can expand with your help.
Specifically, I'm looking for:
* Code clean-up. I've hacked together a working prototype, but I'm
sure there is much redundancy and inefficiency in what I've done.
* Exporting options. The ability to export to HTML and PDF (perhaps
via LaTex?), so proper formatting can take place.
If you are interested in helping, download the bundle at the url
listed below and contact me. The objective here is to create an end-
to-end solution for screenwriting that rivals FinalDraft and
MMScreenwriter, and I believe we can do it.
link: http://www.ollieman.net/files/bundles/screenplay.zip
email: oliver at ollieman dot net
There is no documentation, but to get started:
"ext" and "int" are tab-triggers for slug-lines
"option+tab" creates transitions
"shift+tab" creates characters
poke around the bundle for more behavioral abilities.
P.S. Should I post this in the bundle dev list?
I may be mistaken, but is there a bug with the move line up/down feature?
Whenever I do this the line that is selected after the move is not the line
that I moved, in other words if I move a line down then the line that gets
selected is the line after the one that moved, so if I want to move a line
up 2 lines I have to move it then move the caret up a line then move it
again, is this how it it supposed to work? Or am I missing the point
somehow?
Many Thanks
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi,
I'm new here. Just started using TextMate, and I have a problem where it
is freezing for up to minutes at a time.
I’ve been using it to work from home. Whereas in the office we use
Microsoft Developer Studio (on Windows), that happens to be a bastard of
a slug of a text editor over a Remote Desktop connection, so I have
connected to my Windows file share over SMB over my VPN, and set up a
TextMate ‘project’ with all my files. (I compile remotely, over the
remote desktop connection, or via Ssh.)
Now TextMate is a lovely editor, and it didn’t take much effort to have
it syntax-highlighting C# code. Only one problem with the otherwise
(almost) perfect setup: when I have the project loaded into TextMate
(600-odd files), when I change focus to another application, then focus
again on TextMate, TextMate hangs for at least 20 seconds. I presume
that this is something to do with it checking the files, because a local
project doesn't seem to have this problem.
Potentially it’s some kind of network timeout (though I checked my
various firewalls to see if some bits of the windows file sharing were
being blocked, and that doesn’t seem to be the case).
I know that SMB is a dog over a remote connection (I'm on 2Mbps ADSL,
and my office is 512kbps, I think), but this is almost unworkable,
especially when it decides to go slow and takes 90 seconds rather than
20 (it's somewhat unpredictable. I assume it’s dependant on network
conditions).
Does anybody have any ideas? Or should I report it as a bug? (Even if it
is a network problem, TextMate could presumably check the files in the
background, or at least provide progress feedback.) Has anyone else had
this problem?
Thanks,
–Andrewf
I often need to compare two documents side by side so I wrote a little
applescript that repositions the two front windows. I've attached the
script in plain text format.
Just posted the following to my blog (you can post feedback here or
on the blog post, if you have any):
I am planning to release 1.1 final next week. While I do get many
repeated requests, one of the issues that has been hard to overlook
lately is the lack of thorough coherent updated documentation.
<!--more-->
This has now changed after spending a few weeks writing more or less
full-time (so that's why there has been no nightly builds, although I
will likely put out one later today with a dozen minor items in the
change log).
Here is the first public draft of the [TextMate manual](http://
macromates.com/textmate/manual/).
Don't hesitate to post feedback as comments to this entry.
Currently the documentation is low on use-cases. I hope to
iteratively improve this over time, as I think that when people ask
for documentation they are in fact much more interested in how to
combine the features of TextMate to solve the task at hand, than the
core facts about how to move the caret and such.
This of course is quite a challenge, as the tasks and possibilities
are infinite. I myself regularly find new ways to use TextMate to
improve my workflow in ways I would not have thought of just a few
weeks earlier. Writing the documentation was no exception. One of the
cooler things I discovered was that I could add the command below as
a preferences item to the `entity.name.reference.markdown` scope to
have escape suggest completion candidates from my aggregated
reference list, when inside a Markdown reference (given as `[link
text][REFERENCE]`).
{ completionCommand = 'sed -n \
"s/^\[\($TM_CURRENT_WORD[^]]*\).*/\1/p" \
"$TM_DIRECTORY/markdown.references"';
disableDefaultCompletion = 1;
}
Should you somehow have missed my countless references to [Markdown]
(http://daringfireball.net/projects/markdown/) then for the records
let me just state that the documentation was written in Markdown and
I absolutely love it!
Hello everyone,
I posted an applescript to make it easy to open the current finder window in
TextMate. Check it out here:
http://www.bigbold.com/snippets/posts/show/1037
I attached a screenshot of my finder window so you can see how nicely it can
be integrated into the finder.
Thought this might be useful to fellow TextMate users.
Cheerio,
Simon
hi,
i made a fairly complex match in a language (mx - a structural
equation modeling package)
The language formatter mis-sorts the capture list (sorts on the basis
of first digit, not on the numeric value of the match number).
Doesn't affect function, but it is a bit messy to read.
Here it is after autosorting:
{ name = 'meta.Start.values.matrices.mx';
match = '(?i)^\s*(Start|Value)\s+(\d*\.?\d*)\s+([A-Z])\s+(\d*)?\s*
((\d+)|([^, ]+))\s+((\d+)|([^, ]+))(\s(to|-)\s+([A-Z])\s+(\d*)?\s*((\d
+)|([^, ]+))\s+((\d+)|([^, \n]+)))?';
captures =
{ 1 = { name = 'keyword.control.start.mx'; };
10 = { name = 'constant.mx'; };
12 = { name = 'keyword.control.to.mx'; };
13 = { name = 'support.other.variable.matrix.mx'; };
14 = { name = 'constant.numeric.mx'; };
16 = { name = 'constant.numeric.mx'; };
17 = { name = 'constant.mx'; };
19 = { name = 'constant.numeric.mx'; };
2 = { name = 'constant.numeric.mx'; };
20 = { name = 'constant.mx'; };
3 = { name = 'support.other.variable.matrix.mx'; };
4 = { name = 'constant.numeric.mx'; };
6 = { name = 'constant.numeric.mx'; };
7 = { name = 'constant.mx'; };
9 = { name = 'constant.numeric.mx'; };
};
},
Is this possible? If not, could you put it on the roadmap, Allan? :)
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
hi, just made a new bundle and dragged an existing item into it.
All went well (like how the item shows where it will go), but the UI
did not update well: the list was displaced left during the drag, and
then it didn't redraw (all the disclosure triangles hidden).
Goes away after a forced redraw by altering the pane width.
Is there a way to change the language for the spell corrector ? Wether I
write a mail in french or in english I can get a whole red underlined text.
-- Erwan
When I am using the Ruby on Rails programming language, my cursor
positioning always seems to be off by one or two characters. Its very
strange, very frustrating!
When I am editing a plain text piece, its fine, but when I am doing
ROR it appears to be off ever so slightly, enough so that it doesn't
quite register properly.
has anyone else noticed that?
--Alan
I'm trying to match a curly bracket in a foldingStopMarker but I
can't for my life get it to work. The startmarker works but not the
stopmarker. Eg.
works {
hello
}
doesntwork {
hello
}
My language is defined as:
foldingStartMarker = '\{\s*$';
foldingStopMarker = '^\s*\}';
/Tomas
Hi,
just a little questions about the invisible helpers to see tabs and
line endings.
Why does TextMate uses other marks for line endings as for example
SubEthaEdit, you get use to the marks of TextMate but would really
like know why at all?
Second more interesting for me, where are the signs for spaces? There
are absolutely no signs for spaces. Which makes it quite annoying, you
have to guess how many spaces or just to try with the cursor.
I hope someone can help me. To find answers for my little questions.
Thomas
> > This would be an awesome feature. Has it been requested yet? Thanks,
>
> What does it actually mean?
Like, for example, I want to pipe my current file through some command
that would add some code at a specific point (say extract some lines to
a new function), and outputs a snippet. It would be as if I ran the
command with all the text selected and set the output to "replace with
snippet", except this way I can still get the current word or selected
text to pass as input to my command.
Is that clearer?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi. I've been trying to modify the HTML language so that it understands
embedded Python code, as you find in a Kid template. For example:
<?python
def shoe(potato):
pass
?>
By default TextMate thinks it's PHP code (source.php.embedded.html).
I thought it would be pretty straightforward, and copied the chunk
of config that appears to setup embedded ruby. I ended up with this,
defined just beneath php-source:
python =
{ name = 'source.python.embedded.html';
begin = '(?:^\s*)<\?python(?!.*\?>)';
end = '\?>(?:\s*$\n)?';
patterns = (
{ name = 'comment.line.number-sign.ruby';
match = '#.*?(?=-?%>)';
},
{ include = 'source.python'; },
);
};
However, when I click "Format" and "Test" in the Bundle Editor the text
in my editor is still marked up as PHP. I removed all the PHP stuff to
see if it was overriding the Python settings, but it didn't help.
What should I be doing for this?
Cheers...
--
Graham
This email is a bit off topic, but I thought it might be useful to any
developers who are making screencasts. I've written a little ruby
script called ghostwriter which uses apple gui event scripting to
produce applescript that makes it looks like you're typing. I've found
it very useful when for making demo code, because unlike me, the
computer never makes a typo!
It's available at http://www.had.co.nz/ghostwriter/
Hadley
On some occasions I use to code html pages with Romanian special
characters. Unlike with the German special characters (ä etc.) I
feel better to use the standardized entities for Romanian characters
in the form ă etc.
In TextMate I could not find out yet how to convert a text selection
with Romanian special characters typed so that only the special
characters are converted to entities. In my page *every* single
character is replaced by its entity and makes the text illegible.
Where is the solution I missed in the manual?
Hello,
the Move Selection Line Up / Down feature does not seem to work correctly.
I have
A
B <caret
C
then press cmd-ctrl-up and get
B
A <caret
C
The caret should also move up one line, so I can further move the line, no?
Moving down from
A <caret
B
C
gets me
B
A
C <caret
As you can see, the caret is misplaced again.
Can someone confirm this, or is it some local problem of mine? I use
Textmate r847.
Bye,
Martin
(Sorry, if this message goes through twice. I originally tried the
gmane NNTP access but don't see my posting in the archive)
Hi,
sorry if this is a common question, but I searched the wiki and the
ml archives a couple of months back and I could not find an answer.
The TextMate service does not appear on my services menu. TextMate
was installed a couple of weeks ago, and I've logged out and logged
in a couple of times since then and still nothing.
I'm using version Version 1.1b17 (847), and TextMate is installed
inside the /Applications folder.
Thanks in advance,
--
Pedro Melo
JID: melo(a)simplicidade.org
Greetings,
I've been searching for the official line on variable width fonts in
TextMate but cannot find it anywhere---though I seem to remember
reading it before. Is it on the to-do list at all? I understand that
for most(?) TM users it is a non-issue, being programmers, but as I
use TM 95% for ConTeXt/TeX paper writing, it sure would be nice.
Anyway, I bring it up again because it occasionally starts to bug me,
and I can't leave the editing capabilities of TM behind ;).
Kind regards,
David
This would be an awesome feature. Has it been requested yet? Thanks,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
I searched through the archives to see if there was some sort of
functionality that would list all your TM Projects in a concise list
(in either a sticky or popup window) to ease switching to different
projects.. Didn't find anything (did I miss something?) and ended up
putting something together with Butler that is really slick and
thought I'd share.
* I moved all my .tmproj files to a single folder in my Websites
directory
* added a container in Butler with the folder containing all
my .tmproj files inside it
* assigned the container a hotkey ctrl-opt-w and set it to: "Opens a
menu near the mouse"
I previously had all the .tmproj files inside each site's homedir,
and set Butler to only show files with a .tmproj extension with 2
levels of recursion, but it was too slow. Making a dedicated tmproj
folder makes this an instantaneous popup with ctrl-opt-w that shows
all my TM projects, which can be opened by keyboard or mouse. (I
guess this could be done with within TM with shell commands, too, in
a very similar manner, but using Butler allows you to open a project
from anywhere.)
Also, this is buried in the wiki, but what put me over the fence on
agreeing S/FTP integration in TM was unnecessary, allowed me to drop
Dreamweaver from my workflow completely, and caused me to buy
Transmit & TM instantly was this simple command:
osascript -e 'tell app "Transmit" to open POSIX file "'"$TM_FILEPATH"'"'
Set this to a command triggered with cmd-shift-u, and TM first saves
the local file, then sends the file to Transmit, which will then auto-
upload to the appropriate server if the file belongs to a DockSend-
enabled favorite in Transmit. (Allan has this listed for Interarchy
in the wiki: I just changed "Interarchy" to "Transmit".)
Nate.
---------------------
CLIXEL Design & Coding
http://clixel.com/
So, I know that this is already on the todo list, but I'm curious
what the status of nested snippets is. I'm talking about initiating
another snippet while still in the placeholder of another snippet.
Then when you tab out it would return to the previous snippet(s).
I'm sure a few thorny issues might come up in implementation, but the
general idea is just a stack of active snippets instead of a single one.
The reason I ask is because often when I create snippets I am forced
to choose between something like:
<p>$0</p>
and
<p>$1</p>$0
The first one is sometimes preferable because I can then put another
snippet right in. However in general I would prefer to use the
second form. With nested snippets we get the best of both worlds.
TextMate already had an easy time replacing BBEdit for me, but this
feature alone would probably double my HTML creation speed.
> I'm intrigued.
>
> are the movies teensy, or are my eyes failing? I wanna see what
> youre *doing* ..
Yeah, the movies are teensy... 30% I think. I'll up some larger
versions when I get around to re-recording them ;)
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi.
I have created a two reference cards for the TextMates default
keymap, and most of the RoR related snippets. Not much, but they have
helped me...
André M. Bonkowski
Hi,
If I set the scope of a doc to SQL and enter a select statement, I see this:
In pepper (TextMate¹s spiritual parent as far as I am concerned: soooo far
ahead of its time on everything except folding!), I get what I expect:
Am I doing something wrong?
tim
Hi,
Since I updated from the previous to the latest TM version, any time
I switch from another application to a TM window TM is unresponsive
(pizza wheel) for approximately 3 seconds (time appears to depend on
how many projects are open).
Even if I have TM front, click any other App's window and immediately
back to TM that delay is observed.
Gerd
(I read the manual, did a search of the archives for "diff FileMerge" and
read all hits before writing this email, and I have also tried a couple of
the Diff commands in the Subversion bundle.)
I am wondering if, either as part of Allan's documentation effort, or as
some bundle maintainer's efforts, a simple "How to Find Differences Using
TextMate" document could be written. Because I confess, I am at sea as to
how to get a useful, usable diff of two similar documents.
My gold standard for usable differences is (as many of the list postings
discussed) BBEdit. In particular, it has a menu command, "Compare Two Front
Documents", which provides a highly usable interface to locate, review, and
merge/modify the differences between two open documents. FileMerge, while
flawed in some important ways, also provides a reasonably useful way of
interacting with two files. (The diff output of the Subversion bundle is
not suitable to my group's needs.)
For me, it's *critical* that a usable diff command *not* require either
document to be under revision control. I am the first person in my group to
be using any form of revision control more sophisticated than DreamWeaver's
simple file locking. Subversion is being used only on new projects which I
am in charge of, which is a very small percentage of the stuff I'm working
on, so it'll be a good while before I can count on having stuff in
Subversion.
Perhaps this suggestion will be taken as rude (and it won't be useful for
non-BBEdit converts who don't have a BBEdit license), but it would be
perfectly acceptable for a TextMate differences command to simply pass
along the two file references to BBEdit's command line differences program,
bbdiff, if the process would allow me to resolve my differences there and
have the results saved back into my open documents in TextMate. A more
universal version might use FileMerge instead of bbdiff.
Last, an offer: If there is an acceptable differences command already, and
someone will write up a quick list of the steps to use it ala the "Compare
Two Front Documents" command, I will write up a complete tutorial, complete
with screenshots, etc., suitable for the complete newbie (such as myself,
and my co-workers).
I'm a good technical writer, by way of credentials, here are some URLs to
Mac OS X documentation I've written:
* PGP Desktop Manual Proxy Settings: <http://aldoblog.com/blog/493>
* Getting Started with m0n0wall:
<http://www.aldosoft.com/docs/m0n0wall-getting-started.html>
* A whole series of articles covering audiobooks on iTunes and the iPod:
<http://aldoblog.com/audiobooks/>
So, I'll commit to writing some quality docs for the wiki covering a
differences command, if someone will point me in the direction of a
differences command that is useful for my (and my co-workers') needs.
Thanks!
--
_____________________________________________________________
Michael A. Alderete <mailto:lists-2003@alderete.com>
<http://www.alderete.com>
> On 18/12/2005, at 2:10, Michael Sheets wrote:
>
> > Actually... allan will have to back me up on this but I think it's
> > impossible. An empty line has nothing on it but the ending return,
> > and then only if it's not the last line. Therefore there is nothing
> > to actually be matched [...]
>
> Indeed, yes.
I believe you, but it's confusing because I can match all the empty
lines in a given document with "^$". Oh well. No dice.
Hey all,
Thanks to Allan & co (is there really an '& co'?) for all the hard
work--been using TM for about a year and still loving it :) I'm
having an odd issue which I fear is actually a feature and not a bug
(and I'm not even positive it's TM's fault), so to speak, but am
asking anyway.
Most monospaced fonts such as Monaco, Bitstream Vera Sans Mono,
Andale Mono, &c, show up as vaguely bold when antialiasing is turned
on; however I only realized this recently when messing around with
Markdown and its syntax highlighting.
When surrounding text with double asterisks, which as I'm sure
everyone knows is Markdown for bold, the text actually gets *less
bold* compared to the rest of the text! With antialiasing off, the
amount of bolding is normal, e.g. stuff in double-asterisks is
noticeably stronger than everything else.
When using Courier or Courier New, things also look more normal (with
antialiasing on *or* off). However, I hate coding with serif fonts,
so just switching to Courier isn't really an option. I've looked
around a bit for other fonts but so far they all display the same
behavior as the bunch mentioned earlier.
So. Is this something TextMate is doing, or is it at the system
level? In the various terminal apps I've never had issues like this.
And regardless, does anyone have any suggestions? I realize that at
the end of the day it's a silly thing to complain about, but I tend
to be a stickler about stuff like this; if, when writing in Markdown,
my italics are italic, I'd like my bolds to be bold too =)
Thanks for your time,
Jeff
--
Jeffrey E. Forcier
Junior Developer, Research and Development
Stroz Friedberg, LLC
15 Maiden Lane, 12th Floor
New York, NY 10038
[main]212-981-6540 [direct]212-981-6546
http://www.strozllc.com
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No right to
confidential or privileged treatment of this message is waived or lost
by any error in transmission. If you have received this message in
error, please immediately notify the sender by e-mail or by telephone at
212.981.6540, delete the message and all copies from your system and
destroy any hard copies. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient.
Hi,
the Apache commands are fantastic! Using them highlighted a little
bug for me:
1. close all documents
2. go to Automation:Run Command:Apache:
expect: see "Open httpd.conf" usable
obtained: All commands grayed out
I think the best answer is to make them all available, even if this
is inappropriate, and let the command have some error checking to
feedback to the user that it needs a document, if necessary.
tim
我爱言论自由人权和民主
“I love freedom of speech, human rights, and democracy"
I also don't like the patriot act, or DCMA
I would assume that the following would assign a scope to an empty
line, but it's not working. Any ideas? Is this possible?
{ name = 'splay.empty';
match = '^$';
},
>> So, this was working perfectly, and then all of a sudden the
>> command started crashing TxMt. AFAIK I did nothing to make it start
>> crashing. Allan, any idea what might be up?
>
> No idea what would do that, other than a bug in WebKit :)
>
> Could you quote the first few lines of the stack dump?
dyld: /Applications/TextMate.app/Contents/MacOS/TextMate Undefined
symbols:
OpenGL undefined reference to _gll_noop expected to be defined in
/usr/X11R6/lib/libGL.dylib
OpenGL undefined reference to _gll_pkey expected to be defined in
/usr/X11R6/lib/libGL.dylib
Looks like an X11 conflict. Found a fix in the following thread:
http://forums.macosxhints.com/showthread.php?p=115505
Thanks :D
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Il giorno 17/dic/05, alle ore 22:22, Oliver Taylor ha scritto:
>> I would assume that the following would assign a scope to an empty
>> line, but it's not working. Any ideas? Is this possible?
>>
>> { name = 'splay.empty';
>> match = '^$';
>> },
>
> IIRC you have to match the \n as well in order to match the whole line
Yeah, I've tried every iteration, \n^$, ^\n$, ^$\n ... as you might
be able to tell I'm really bad with regexp.
any help is appreciated.
> Oh, and change .* to .+ to exclude the current word, i.e.:
>
> completionCommand = 'perl -pe "s/^\t{4}($TM_CURRENT_WORD.+)\$|.*
> \n?/\$1/" <"$TM_FILEPATH"|sort|uniq';
That works great. Don't know what changed. thanks.
I'm creating a custom bundle for screenwriting and I've got most of
it down, but I want to leverage textmate's completion abilities. For
example, I've got this is the language:
{ name = 'splay.character';
match = '\t\t\t\t+(.*)';
},
...to define anything that starts with 4 tabs as "splay.character"
Now, I want to collect all the words in the current document (but
only within the "splay.character" scope, and use them as a list for
auto-completion. So that when I tab 4 times and type "Ki" then
escape, "King John" will pop up.
I know this is done with a shell command (right?) but I have no idea
how to do this.
>> [...] Now, I want to collect all the words in the current document
>> (but only within the "splay.character" scope, and use them as a
>> list for auto-completion. So that when I tab 4 times and type "Ki"
>> then escape, "King John" will pop up.
>>
>> I know this is done with a shell command (right?) but I have no
>> idea how to do this.
> (I assumed the four tabs needs to be at the begin of the line):
yes, correct.
> { completionCommand = 'perl -pe "s/^\t{4}($TM_CURRENT_WORD.*)\$|.*
> \n?/\$1/" <"$TM_FILEPATH"';
> disableDefaultCompletion = 1;
> }
this is exactly what I'm looking for. but... it doesn't seem to be
working, in fact, it seems to be *excluding* everything in the
splay.character scope. Any ideas?
> (the completion command ought to get the entire document as stdin,
> but it currently doesn't).
bummer.
> Try: echo '<meta http-equiv="refresh" content="0;
> tm-file:///path/to/file.html">'
That worked perfectly! My compilation time has now been cut down by at
least another second and I can preview my Flash movie in the browser
where it will actually be used.
+1 for Allan.
:D
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Arrr mateys!
I'm a recent TextMate convert, and I absolutely love it ;). Still, I
have a couple of requests... I searched the archives and couldn't find
much about the first two:
1) On my (Belgian) keyboard, typing a [ or ] requires option+shift+( or
). This makes the block indent shortcuts very cumbersome to use because
the command key is also required, meaning it's a 4-key chord each. One
solution would be to add e.g. command+( and command+) as extra shortcuts
for this (which are 2-key chords for anyone else on a Belgian and French
keyboard).
But in many other editors, there is a much easier and intuitive way to
block-indent: just select multiple lines of text, and press Tab or
Shift-Tab. In TextMate, the first just replaces the selection with a tab
(not so useful IMO), and the second does nothing. So, please consider
adding this feature.
2) The bracket matching seems clumsy. The highlighting is only a short
flash, so you need to move the cursor back and forth to see it again.
And because it only highlights the opening bracket, it is often hard to
see which is the matching closing bracket. Especially when you are
around multiple nested parentheses, and you are doing the 'back and
forth' thing to see it flash again. Finally, it does not work in reverse
(highlight the closing bracket when you are at the opening bracket).
I think it would be a much more usable feature if it highlighted both
brackets in a pair, when you are at either of them and did so
permanently (i.e. based on cursor position) rather than just when moving
over a bracket from left to right (i.e. based on cursor movement). It
would also get rid of the artificial pause it has now.
3) I'd like to voice my support for smarter insertion of bracket pairs
in the middle of text (as has been requested before). All too often, I
get 'foo()bar(...)' when I want to wrap 'bar(...)'. Selecting the text
to wrap first (what was suggested before on the list) just doesn't feel
right to me. My instinct groups the bracket with the keyword in front of
it, so doing keyword -> highlight -> bracket is icky. I'd much rather
have no closing bracket inserted when the next character is not an
operator/whitespace/end-of-line.
I hope having a license gives me at least some nag credits ;).
Steven Wittens
When I try to run HTML Tidy I get following error instead of document:
../../src/config.c:331: failed assertion `option_defs[ optId ].type ==
TidyInteger'
It happens for any content.
I'm running latest build on iMac G5, with TM's plist files copied from my
older mac (if that matters...).
--
regards, porneL
Hi there,
This is some Unicode which looks all overlapped (should be characters
delimited by commas on the data lines) and doesn¹t select properly (half
characters not whole characters) or edit properly (several things rather
than one disappear when you press backspace)
Here¹s how it should look
Can give you the file if you need it.
Tim
the "mate" command-line tool is great, but i find myself also wishing
that i had some way to pipe input into a textmate html window, e.g.
rather than
long_running_command | mate
which waits until the command is completed, and then throws the
output in an editable text window, i'd like to be able to say
long_running_command | pre | mate -html
and get a continuously-updated, non-editable window (with the option
of adding javascript and formatting).
i could see how to hack this up myself if there were a way to
initiate a textmate command from outside textmate (i.e. provide
stdin, a command line, and one of the standard output choices
(arguably only "show as html", "show as tool tip", and "create new
document" would really make sense)) -- but i couldn't see how to do
this (i'm no applescript wizard, but i poked through the scripting
dictionary).
is there some trick here i'm missing? if not, consider this a
feature request...
I'm trying to update the svn-commit.tmp language definition to work with
SVK, but am having some difficulty. In SVN, the temporary commit file is
always named 'svn-commit.tmp' or 'svn-commit.2.tmp'. So the following works:
fileTypes = ( 'svn-commit.tmp', 'svn-commit.2.tmp' );
In SVK, the temporary commit file is named 'svk-commitXXXXX.tmp' where
XXXXX appear to be five random alpha-numerics. I haven't been able to
figure out how to match this. Am I missing something?
Thanks,
Sean
Hi,
sometimes I test quicly my html files on the Desktop and I use this
in bundle:
open "http://localhost/desktop${TM_FILEPATH#$HOME/Desktop}"
(after to set for this one the httpd.conf file)
ok, but if an html page has spaces in the filename (I know this is
not correct) the above command doesn't work.
Is it normal?
How to correct it, please?
thanks and regards
Salvo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
sorry to post this on the list rather than to the actual author of
the bundle, but i'm busy in the middle of a project and just wanted
to get the request off my chest and get right back to work.
whoever did that - you just scared the living s**t out of me, when I
hit ^d in the middle of coding (forward delete normally) and my whole
source code went wonky... argll...
thx,
tom
- --
Tom Lazar
http://tomster.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iQIVAwUBQ53ujdeSJSslDUEWAQIGnhAAiS4/JZDfkfeYegoEuZ6sIcOLVWizJo8z
4EqfD+RYgrP+F1Wn0Joa2VVR4NvyLUMCbW6+wZSKVEBf/ZirVCe7swbN8R5/11E3
meVV3yjIT26ixVNR9zcfVBEB8E2c+F/KSDeWWfS/UFTlf+9pvCUdLK8o9wCRJBFm
ShG9No+u251PuJ1QOZn1Qgw8TdlCykD1AwN3ABbIm0tUZFmZaE/wLAEFZxc7LwNu
JCQ1ImnLOBorzUr//81mw4wxgF1gWHxX1U3/5W5UjguDRWV2D8x/VwsxZSBmZTG6
07Yog9KI1TRt5iBQdRXyZ5CiLoXbp9evG7pyONYF9eMhnzg59ZvZP9s0hs85sJnq
yCwRjLmKHLc/z50OISd1g18CmlyvvuQvwI9WSpJgNpwFu5ECCYHTV6kj+Bo8R5xX
ANWx8c8D3X0/TSTtax9ifqkix86xZ9xxoNiMVOlvHlugD3sOUAaEH/2KVXTkKvzP
M1g/3p1iBucLcC5vSnDgyjDBUC5N6flWC05ujHYkofcboZ2oDYP3td56dLxv+AeM
awF/T2LvPvPPSsI4CWp7YdCgH/BtDwORMle13AziA2Dqr8NgC0YW+MeZ5tNsULBD
6wVbMBOspK0KRCxh8SMo+3YSk8JgBQpBZGpl2JKinDgK/mTgwrcdPeWhog7NFqOO
Rw8kP/XqVHo=
=Phat
-----END PGP SIGNATURE-----
Hi,
I got a couple of suggestions.
First of all, open URL:
I'm used to clicking on a URL in a text and go to that URL in a
webbrowser. In Mac OS 9, there was an extension that allowed to do that
by command-clicking on any URL. In Mac OS X virtually all text editors
or text viewers, if you right-click on a URL, you get a menu which
(among others) says "Open URL". Try BBEdit, SubEthaEdit, Stickies, or
TextEdit. They all have this feature. Except for TextMate. Perhaps I can
create it using "Filter Through Command...", but that's clumsy. I
suggest to add this feature like in all other editors.
Second, Diff's:
Well, this has been discussed on the list before. The diff function in
TextMate is not really useful. Actually, Compare Texts is still the only
thing I use BBEdit for. Even though Apple's FileMerge does a better job
of showing the diff's (much better then either BBEdit or TextMate),
BBEdit most definately has the best integration of viewing AND editing
diffs, as well as ignoring line endings and white space (TextMate diff
can't handle anything but unix line endings). This is very high on my
wish-list for TextMate.
Last, draffing URL's:
Dragging. I struggled long to understand "DragCommands" (there is not
useful mention of them in the help or on the wiki). I would love to be
able to make a DragCommand that allows me to drag a URL to a HTML text
file, and that the drag then automatically inserted a <a
href="$URL">$name</a>, preferable with the previous selection as the
$name. However, it seems that now, DragCommands only work on files, not
on other drags like URL's and images.
Oh, sorry if I sound critical. I love TextMate. I really adore the UTF-8
support (actually that was the single most important reason for me to
make the switch to TextMate as my default editor). Keep up the good work!
Regards,
Freek Dijkstra
Hi everyone,
Is there a way to display the files label colors in the project
drawer? I'm talking about the color labels that you set with a right
click on a file icon in the Finder. Somehow, every year or so, often
when merging several file hierarchies, that feature is invaluable.
Any ideas ?
Cheers,
- n.
Thank you for the quick responses.
I fixed the problem in the following way: opened "misc" in textmate
via "mate misc", saved it as UTF-8. Apparently the odd character
mentioned by Allan was fixed by this operation.
I had earlier tried a conversion via "reopen with encoding" UTF8 but
that did not make a difference. However, using "save as" w/ UTF8 on
top of the older version did fix the problem.
In terms of why not use a .sh extension, I have to confess to being
an old unix guy and never got in the habit of typing foo.sh when I
can type foo instead!
Anyway, we're go, thanks for the help.
-- Owen
Owen Densmore
http://backspaces.net - http://redfish.com - http://friam.org
Hey!
I just watched the 10 minute Ruby on Rails intro video
(http://rubyonrails.ams.cachefly.net/rails_setup.mov) where TextMate
used a pane for project files instead of the shelf. The pane looks
good, any chance it will return?
I realize this will make TextMate look a lot more like Xcode, but that
wouldn't bother me..
Perhaps something similar to the one in Mail2 (Tiger) .
hans petter.
Hi folks. I've tried TextMate a while back and in *instantly*
replaced my use of jEdit. Wow, hard to believe you can get a unix
class text editor with Mac grace all in one package. Congrats!
I've the following problem:
- I've created a project called Daily that I have the files I edit
often: Notes, Log, Bashrc, ToDo, etc. I add files to the project by
simply using Add Exiting Files ...
- This generally works but I've got one shell script file "misc"
that is used for quick shell hacks. When I include this in my
project, it does not show in the tabs or in the edit pane.
- The file is a bit odd: it looks like this:
#!/bin/sh
<current hack>
# ----------------------------------------------------------
exit
# ----------------------------------------------------------
<past hacks>
# ----------------------------------------------------------
...etc to EOF.
Note the "exit" used to let prior hacks be available for reference,
yet not be executed when misc is called. The file is here if that
would help: http://backspaces.net/files/misc
So basically I'm trying to add an existing file to the project and
although the name shows in the drawer just fine, double clicking on
it does not put it in the tabs or edit pane.
Note that the file works fine outside of the project .. i.e. if I
execute "mate misc" from the terminal, I get a new window with the
file showing correctly.
I suspect I'm doing something dumb but..any help appreciated!
-- Owen
Owen Densmore
http://backspaces.net - http://redfish.com - http://friam.org
Alan - thanks very much!
I love getting these autoupgrades when I launch TextMate - it's like a
little Christmas every time. I'll really be looking for the next one.
David - if you haven't found this yet, Xyle Scope already has TextMate
listed under Known Editors in the Preferences.
When you have something selected in Xyle Scope, you can choose File >
Open file_name With > TextMate, then edit with TextMate.
Thanks for chiming in, Ben!
Howdy,
a) I can't refresh Firefox 1.5 , I obtain a new empty window :(
The script is :
# Check if Firefox is running, if so refresh
[[ $(ps -xc|grep -i firefox) ]] && osascript -e 'tell app "FireFox"' -
e 'activate' -e 'Get URL "JavaScript:window.location.reload();"
inside window 1' -e 'end tell'
b) Is it possible to refresh Xyle ?
Thanks and Greetings
Alain Matthes
Hi,
I use my ftp client Cyberduck with Textmate, every time I edit a file
(double click on a file in cyberduck), it will open a new window in
Textmate, for every file I click on. Is there anyway to config
Textmate so that Textmate can open files in tab by default?
Thanks
Kelvin
Hi,
I'm new on the list, so sorry for stating the obvious.
The documentation of TextMate is terrible.
<rant>
After using TextMate for some time, and struggling with many features, a
collegue pointed that there is some documentation at
http://macromates.com/doc/
However, there is no link to this URL. Please make a link to this page
from the home page. Now, please.
Thanks. What? You haven't done so? Stop reading then! Please do it
*NOW*, before other people waste their precious time.
I had to find the function of multiple functions (e.g. how DragCommands
work, that they only work with file, not URL's, how tab triggers work,
etc. etc.) by Googling and reading earlier posts on the mailing list. I
really could have saved a lot of time if I knew earlier that there was
some documentation out there. In fact I strongly recommend to add a menu
item in the Help menu which directly links to this documentation, and
release a minor update :-)
</rant>
I just started reading the docs, and here is some first comments:
Please change the order of the paragraphs "Selecting Text" and "Editing
modes" on the "Working with Text" page. "Editing Modes" discusses the
column mode, which was introduced in "selecting text", so the later
paragraph must come first. In the current order, the "Editing Modes" was
hard to comprehend.
Regards,
Freek Dijkstra
PS: This is a re-sent; my original posting seems to be rejected because
the list software was a bit slow, and thought I wasn't on the list yet.
Sorry if you get this twice.
Hi,
I'm new on the list, so sorry for stating the obvious.
The documentation of TextMate is terrible.
<rant>
After using TextMate for some time, and struggling with many features, a
collegue pointed that there is some documentation at
http://macromates.com/doc/
However, there is no link to this URL. Please make a link to this page
from the home page. Now, please.
Thanks. What? You haven't done so? Stop reading then! Please do it
*NOW*, before other people waste their precious time.
I had to find the function of multiple functions (e.g. how DragCommands
work, that they only work with file, not URL's, how tab triggers work,
etc. etc.) by Googling and reading earlier posts on the mailing list. I
really could have saved a lot of time if I knew earlier that there was
some documentation out there. In fact I strongly recommend to add a menu
item in the Help menu which directly links to this documentation, and
release a minor update :-)
</rant>
I just started reading the docs, and here is some first comments:
Please change the order of the paragraphs "Selecting Text" and "Editing
modes" on the "Working with Text" page. "Editing Modes" discusses the
column mode, which was introduced in "selecting text", so the later
paragraph must come first. In the current order, the "Editing Modes" was
hard to comprehend.
Regards,
Freek Dijkstra
> Is there a way to add Xyle Scope to the list of browsers that will do a
> preview under the HTML Command?
That would be awesome!
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Are there any plans for, or any interest in, making it easier to see
and set the newline style of open files? Right now it seems you can
control this only through the Preferences dialog, and there's no
at-a-glance way to tell (or change) what newline style an open file is
actually using.
The absence of this bit me last night, when I made changes to
someone's PHP file that had been saved with Mac newlines. I had added
some HEREDOC-quoted text, and the script started throwing parsing
errors which completely stumped me until I opened the file in Some
Other Text Editor and saw that it was using Mac newlines.
A newline type selector/indicator in the bottom bar is the most
obvious thing to do (it might even be combined with the spaces/tabs
popup), but I'm sure there are other ways to do it as well.
Possible?
thanks
pb
--
Paul Bissex
http://e-scribe.com/news/
Northampton MA USA 01061-0847
First wanted to say I love textmate. It and amazing piece of work
and I just recently discovered it. (I just switched to a mac a few
months ago).
i'd like to see an option to sort folders first in the files panel.
I am not sure how possible this is with the cocoa controls
Another suggestion (and I think it was already purposed) is to be
able to double click on folder names.
I just wanted to see if this was a possibility before I purchased :)
-- Eric
--
Eric Coleman
http://aplosmedia.com
home: 412 399 1024
cell: 412 779 5176
i'm sure there's been discussion of this before, but was wondering if there
was anyway to add a preference to have the tabs for the open files of a
project wrap to multiple lines instead of limiting them to one line and
having that dropdown menu on the right show up. i like to see ALL the files
i have open at once and can't stand that dropdown. is this possible? it
seems the 'tab component' should be able to handle this. i can look into it
if you'd like...
thanx!
- jamal
I've been using the macro below on my laptop with TextMate for quite a
while, and just realized I didn't have it on my G5. I went to record
it and ended up having a terrible time. It seems that with newer
versions of textmate (I couldn't tell you which version I was on when
I recorded it on my laptop) when you record the macro below, it adds
an "insert text" command with whatever tag has been inserted.
The macro:
In an HTML document, type < (it inserts <>, but ignore
that), now do:
1) Automation / Start Macro Recording
2) Backwards delete (to delete <, which also removes >)
3) Automation / Insert Closing Tag
4) Automation / Stop Macro Recording
Now save this macro, give it key equivalent /, and here's the sneaky
part: set the scope to: text.html invalid.illegal.incomplete
The scope controls when the macro should "fire", and if you press
ctrl-shift P inside <>, you'll see the scope of that position, which
is what's quoted above. So only inside <> will / fire this macro,
which first removes the <> and then inserts the closing tag.
In newer versions, instead of just coming out with
deleteBackward:
insertClosingTag:
it also adds
insertText: </html> (or whichever tag you happened to be closing)
I was able to open up the recorded macro in the Property List Editor
and remove the third command, but that is not a very elegant solution.
This was working properly in the past!
-Kevin
Hi,
I suspect you're going to say 'no, it's a limitation of the way the
parsing is done', but would it be possible to collapse white space in
the display of symbols? See the attached example. The file itself
has these items being split by a newline and indentation...
Actually, on a related note, it would be really nice if the auto-
indentation would behave in the way I want it to for indented
function arguments. That is, if I hit enter inside an open bracket,
the next line should be indented to one beyond the open bracket on
the previous line. And when the corresponding closed bracket
happens, the indentation should revert to what it was before. As an
example:
tickets = self.sql.listTickets(ticket_id = id,
/* Caret should be placed at the
'/' of this comment. */
support_of = 123,
account = 'foo(a)acmewidgets.example')
/* Caret should be placed at the '/' of this comment. */
Is it possible to do this?
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
I do a lot of coursework for University in Textmate - which means I'm
always printing out my code for marking. Thing is, currently, I'm
having to switch over to Xcode to print each time so I can do so in
Colour. It makes it a ton easier for the marker.
Is there any chance Textmate could support colour printing and also
being able to set the text size and font?
Dave Winter
http://commanderbond.net
On 06/12/2005, at 15.45, Jamal Johnson wrote:
> i'm sure there's been discussion of this before, but was wondering
> if there was anyway to add a preference to have the tabs for the
> open files of a project wrap to multiple lines instead of limiting
> them to one line
I'm pretty sure the conclusion was that it's a bad design element to
have multi-line tab bars. I at least dislike it in Windows, and it
could also be hard to make it look 'right', but... :-p.
-- Sune.
yeah, from the quick research i did that's what most people were saying.
however, having it as a 'checkbox option' in the prefs would give those who
believe it's bad design the ability not to use it, and those who like it
that way the ability TO use it. but from what i also read, it might be a
little hairy to implement...
On 12/6/05, Sune Foldager <cryo(a)cyanite.org> wrote:
>
> On 06/12/2005, at 15.45, Jamal Johnson wrote:
>
> > i'm sure there's been discussion of this before, but was wondering
> > if there was anyway to add a preference to have the tabs for the
> > open files of a project wrap to multiple lines instead of limiting
> > them to one line
>
> I'm pretty sure the conclusion was that it's a bad design element to
> have multi-line tab bars. I at least dislike it in Windows, and it
> could also be hard to make it look 'right', but... :-p.
>
> -- Sune.
>
>
Hi,
Outliners are a good tool for organising many things.
I strive to keep everything in plain text.
The best outliner to my tastes that I've found so far is Vim's
excellent outliner mode.
http://vimoutliner.org/
It does that vim 2-keystrokes-and-you've-rearranged-the-furniture
thing to a tee (tea? T?). There's also a unix tool called hnb (not
sure if it's on OS X):
http://hnb.sourceforge.net/Links/
My question is, does anyone here on this list use, or hope / intend
to use, TextMate as an outliner? I mean, you could almost use the
drawer alone, but that kind of inverts the plain text thing (plain
file nodes, anyone?)
has anyone got any ideas on how TM could be scripted / used as-is /
etc to facilitate use as an outliner? I only get to use TM / OS X at
home (working on it though ..), so any advice from more practiced TM
users appreciated.
cheers,
David
Hi all!
Is it possible that whenever TM is invoked from a Spotlight query, it
automatically jumps (when present) to the first occurrence of the
search term(s)?
I've had a look at Apple's documentation on the developer site, but
not found any information on whether it's possible, although
Preview.app certainly does it for PDF documents.
Thanks,
Daniel.
Hi,
I don't suppose it would be possible for Textmate to make an attempt
to 'guess' the tab size (and whether the file is using hard/soft
tabs) when a file is opened? I often wind up editing other people's
code and, usually, they wind up using something other than 'soft
tabs: 2'. So I regularly have to fiddle with the tab size to make
things match up nicely.
ISTR a previous editor I've used, WingIDE[1], having this feature,
and it was really handy... And no, that's not an 'every other editor
does it' -- it's the only time I've seen that feature, but it was
really useful!
Oh, even better! I'm looking at the code for Typo just now, and it's
not even consistent throughout the code! In fact most of it is 'soft
tabs: 2', just views/articles/taglist.rhtml (the first one I happened
to want to edit) that's using hard tabs...
[1] http://www.wingware.com/
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
There is no bundle for Verilog HDL, but it has a lot in common with C
and Pascal, so I duplicated the C language and have been hacking on
that to get the syntax coloration mostly working. I've run into a bit
of trouble with the constant expression syntax though. In Verilog
constants have this form:
8'b00100011 (8 bit binary)
6'o35 (6 bit octal)
12'h3A2 (12 bit hex)
The initial number is optional, so 'b10110 would be a 5 bit binary
constant. In addition to numbers, z and ? can also appear sometimes to
indicate high impedance or indeterminate values. I've tried the
following syntax for the binary constants:
...|([0-9]*)\'b[0-1zZ\?]*)|...
When I hit the test button it highlights everything from the b on. I'm
guessing it is not able to escape the single quote. I've also tried
escaping the b as well and it didn't make any difference. Is there a
way around this? Is there somewhere I can find the detailed syntax
rules for the matching expressions and bundles in general? I did a
quick look through the WIKI and didn't see anything obvious.
Hi All,
Just wondering if anyone else is having issues with importing newer
Xcode projects with external project references into TextMate? Mine
throws the following error:
2005-12-04 22:15:20.646 xcode_to_tmproj[7025] Tried to set undefined
key 'projectReferences' of class 'PBXProject' to '(
{
ProductGroup = EAB7BCD90924DDB40067CDFD;
ProjectRef = EAB7BCD80924DDB40067CDFD;
},
{
ProductGroup = EAB7BCD00924DDAB0067CDFD;
ProjectRef = EAB7BCCF0924DDAB0067CDFD;
},
{
ProductGroup = EAB7C03C0924F7DD0067CDFD;
ProjectRef = EAB7C03B0924F7DD0067CDFD;
},
{
ProductGroup = EAF8C92B09076E8C003D54B1;
ProjectRef = EAF8C92A09076E8C003D54B1;
},
{
ProductGroup = EAF8C94E09076F38003D54B1;
ProjectRef = EAF8C94D09076F38003D54B1;
}
)'
2005-12-04 22:15:20.665 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'General User Interface
strings '
2005-12-04 22:15:20.665 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Action and Action Group
names and descriptions '
2005-12-04 22:15:20.666 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Built-in Primitive Names'
2005-12-04 22:15:20.666 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Virtue Bundle
Information Strings '
2005-12-04 22:15:20.666 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Desktop Color Label'
2005-12-04 22:15:20.667 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Desktop Name '
2005-12-04 22:15:20.667 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Desktop Template
Preferences'
2005-12-04 22:15:20.667 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Desktop Layout and
Pager Preferences '
2005-12-04 22:15:20.668 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Trigger Preferences'
2005-12-04 22:15:20.668 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Appearance Preferences'
2005-12-04 22:15:20.668 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Application Preferences'
2005-12-04 22:15:20.669 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Extension Preferences'
2005-12-04 22:15:20.675 xcode_to_tmproj[7025] unknown
class:PBXReferenceProxy
2005-12-04 22:15:20.675 xcode_to_tmproj[7025] *** Assertion failure
in -[XCProject unarchiveObjectForKey:], XCProject.m:143
2005-12-04 22:15:20.676 xcode_to_tmproj[7025] *** Uncaught exception:
<NSInternalInconsistencyException> Invalid parameter not satisfying:
theClass
Is this something I can fix myself? I'd rather be using TextMate for
my coding purely for speed and convenience, but this error is
stopping me dead in my tracks!
Tony Arnold
http://tonyarnold.com/
“The university was great. They gave us money and facilities,
but we didn’t have to produce anything. I’ve worked in the
private sector. You don’t know what it’s like out there. They
expect results.” -- Dr Ray Stanz, Ghostbusters
Hi,
I am a big fan of the Sunburst theme (thanks Soryu). I like it
because it has a black background with lots of contrast and a crisp
feel to it. I really hate white backgrounds for editing.
So it spoils the editing experience a little then the way the drawer
stands so starkly "black on white" right next to my editing surface.
Would it be possible to include styling of the drawer (and maybe other
TxMt elements such as the tab bar) in a Theme?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
I just had a little idea for a symbol list in markdown, and thought
other people might be interested in it. I wanted to get the symbol
list to show the first 8 or so words of each paragraph, kind of like
a mini summary. You can accomplish this by creating a new preferences
file, pasting the following code in it and setting its scope to:
"text.html.markdown markup.paragraph"
/* preferences */
{ showInSymbolList = '1';
symbolTransformation = 's/^([A-Z](([^ \t]*[ \t]*){1,8})).*$/$1/g;';
}
This is supposed to only pick lines that start with a capital letter.
For some reason though, it doesn't. Any ideas?
Haris
I generally like smart typing feature, but it gets in the way sometimes.
For example if I want to add parens around expression, I often just get ()
before it (if expression starts with ! or $).
It's horror when I need to change double quotes to single quotes. I end up
having something like: "'""'"
Is it possible to configure it to work only when there is whitespace/EOL
ahead of cursor? Or to disable it for cases I mentioned above?
I don't want to disable it completly and I don't want to add symbols to
word characters list.
--
regards, porneL
Hi,
Will there be more text encoding support? Like for Japanese(Shift-
JIS), Chinese(GB-2312) or Korean? I think this issue has been bought
up before, but it didn't get my attention until lately.
I have been working on websites in different language: Chinese,
Japanese and Korean, and it was a horrible experience. I had to add
some pages to the existing websites, so i can't really changed all
the text encoding to unicode. Also, I have been told that there are
some missing characters in unicode for Japanese, so even the
government won't use that.
My nightmare stopped when bbedit came to rescue, it supposed all of
the text encoding I need. But then I want to stick to Textmate, and,
well, bbedit is simply far too expensive!
My guess is that I will need to maintain those websites in the
future, so it will be great to see textmate supporting more text
encoding!
Thanks
Kelvin
Hi folks,
I quite often seem to find stray whitepsace at the end of my lines
when I'm editing Ruby code. I'm reasonably certain that I'm not going
around adding a tab here or there to the end of lines (it's not every
line).
It doesn't seem to be harmful but, as a neat freak, I find it
distressing. I assume that it's TxMt that's adding it because I can't
think where else it can be coming from. Does anyone else see this?
Does anyone know how to stop it?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
I work in either 9 points monaco or 12 points anti-aliased monaco, is
it possible to switch between these two with a simple hotkey?
(also, to be really perfect, I'd like it to switch themes because I
disable all bold and italics in my favourite themes because of 9
points monaco, but they look good with 12 points and so ideally I
should switch between two themes as well, I think this can be done
but I'm not entirely sure how)
Andreas
Hi :)
Sorry, if this has already been this discussed, but I couldn't find
anything related. I'm looking for a way to alter the appearance of let's
say subsection headers in the Symbol Popup. Normally these would appear
the same way as would sections. So I want to have subsections be
slightly intended as for example class methods are in Python language
bundle. My problem now is, I couldn't yet find out how this is achieved
there :) I'd really appreciate any help on this matter :)
Best wishes,
Horst "zeroK" Gutmann
http://weblog.zerokspot.com
http://bradchoate.com/downloads/Movable%20Type.tmbundle.zip
Features:
* Syntax highlighting for MT templates
* Scope of MT container tags: entity.name.tag.mt, scope of MT
variable tags: variable.other.mt
* Common MT 3.2 default templates provided as new file templates
* A couple of snippets
* A context-sensitive help command for MT tags
This is my first bundle, so I'm still learning, but I'm very
impressed with what you can do with TextMate bundles. This is the
kind of power I've been looking for in an editor. Feedback is most
welcome.
A few questions:
- MT templates are usually HTML based templates, so I invoke the
HTML bundle rules too-- however, some MT tags aren't syntax
highlighted properly since they're really "embedded" in the HTML
syntax. For example:
<tag><$MTTag$></tag>
That's no problem. But this isn't processed right:
<tag attribute="<$MTTag$>">
The embedded mt tag is never seen. Is there a way to handle this
without modifying the HTML bundle itself?
- When you create a new file using one of the supplied MT file
templates, the syntax mode is left as HTML, not Movable Type. Is
there a way to force the Movable Type syntax?
- I wish it were more obvious how to customize the colors for the MT
tags. The user has to set these up manually. If TextMate were to
scan for available scopes and at least list them as inactive in the
color preferences tab, that would be phenomenal.
- What on earth is the key to use for the TextMate "Edit in
TextMate" service? It looks like Command + A caret with a bar on top
of it. What is that key? I also can't make out the key shown for
Ruby's "embed string variable" snippet. Or the key to use for the
"Web Searches" bundle.
Thanks!
-Brad
Good day all,
First, I really like the drawer; please Allan don't do anything bad
to it.
I would like it even more if there were a way to filter the drawer
listing. Most practical and useful to me would be an ability to
create a list of file types and folder names to either include or
exclude from view in the drawer.
Beyond Compare (a regrettably windows only directory & file compare
app) does this by means of a list as mentioned above. You are also
offered the possibility of filtering by various dates as well as file
attributes. Please see attached screen shot.

Does anyone know of a way to do something like this with TextMate's
current state?
Thanks,
Matt Erker
Web Developer
TOKY Branding + Design
3139 Olive Street
Saint Louis, Missouri 63103
314.534.2000
Hi all,
I was exploring a little bit and changed the activation on one of my
snippets from Tab Trigger to Key Equivalent. I have done
*everything* I can think of to change it back, but the change won't
stick. I go into the Edit Snippets dialog, find my snippet, select
Tab Trigger, and close the dialog and quit the program completely.
When I come back, it's still on Key Equivalent.
Is there some trick to this that I'm missing?
Thanks a bunch,
bryan thompson
On 29/11/2005, at 21:45, Nicholas Orr wrote:
> <?xml version="1.0" encoding="UTF-16"?>
That's the problem. This will make xmllint (used by the Tidy command)
return the result as utf-16, but TextMate expects it to be utf-8, and
so it'll show up wrong.
There's a few options:
1) convert the files from a script instead
2) change to "UTF-8" (remember to convert the files to utf-8 as
well, if they're currently in utf-16 format)
3) change the “xmllint --format -” line to “xmllint --format -|
iconv -f ucs-2 -t utf-8” in the Tidy command (Bundle Editor -> Show
Bundle Editor -> XML -> Tidy).
Since it sounds like you have a lot of files to convert, option 1 has
advantages in itself over manually selecting Tidy from TM.
Personally I'd use a script, but also let the script convert the
files to utf-8 (utf-8 is generally a better encoding than utf-16, and
while my reference to this is vague, I think part of the Unicode
consortium do see utf-16 as legacy, especially now that it no longer
has a 1:1 mapping to unicode code points (because of ucs-4)).
I have nothing against emacs -- I like it and use it a lot, in fact --
but I had to laugh when i followed a Google URL in my referrer log and
discovered that the current top Google result for these words
emacs markdown integration
is a blog posting of mine about TextMate!
pb
--
Paul Bissex
http://e-scribe.com/news/
Northampton MA USA 01061-0847
Hi,
I tried to get fancy / tweak the php run command, but in the proccess
I broke it.
I have a machine on our network that I have mounted as a shared
drive. I'm trying to define a variable for the project that is its url
and then changa the run command (modeled after lookup keyword), to be:
exit_show_html "<meta http-equiv='Refresh'
content='0;URL=$TM_PROJ_URL/$TM_FILEPATH
The problem is that filepath is full.
Any ideas?
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
nice, this works great. thank you very much!!
On 11/30/05, Charilaos Skiadas <cskiadas(a)uchicago.edu> wrote:
>
> On Nov 30, 2005, at 3:54 PM, Jamal Johnson wrote:
>
>
> > i've taken a look and to be honest i'm terrible with regexp's and
> > could use some help. i'm trying to define a way to see objects in a
> > certain format in my JS files:
> >
> > var CustomObject = Class.create();
> > CustomObject.prototype = Object.extend( (new ViewObject()), {
> > member1 : true,
> > member2 : "someString",
> > member3 : "anotherString",
> >
> > someFunction : function(){
> > //doSomething
> > },
> >
> > someOtherFunction : function(){
> >
> > }
> > };
> >
> > so then in the tmCodeBrowser i'd see something like:
> > Objects
> > - CustomObject
> > - member1
> > - member2
> > - member3
> > - someFunction
> > - someOtherFunction etc....
> >
> > something along those lines anyway. can one of you point me in a
> > starting direction for howto setup the .ctags.tmcodebrowser file to
> > do this for javascript files?
> >
>
> Try adding this to .ctags.tmcodebrowser
>
> --langdef=javascript
> --langmap=javascript:.js
> --regex-javascript=/^(.*).prototype *= *(.*)/-\1/o,object/
> --regex-javascript=/^[ \t]*(.*) *: (([^f]*)|(f[^u]*)|(fu[^n]*))[\t]*
> $/---var: \1/o,object/
> --regex-javascript=/^[ \t]*(.*) *: *function/---fun: \1/o,object/
>
> This might do something close to what you want. Just make sure to not
> ask TmCodeBrowser to sort things. With the simple regexp additions,
> you cannot recognize things in multiple lines, so there is no way of
> grouping the variable and function definitions with a particular
> object, this way at least visually they will be close to what you want.
>
> I believe that if one really wants to, one can write a parser and add
> it to the ctags source code and recompile, that is provided that Gerd
> Knops provides you the source code, or is willing to add the parser
> ofr you. I am guessing someone out there has already written a parser
> for javascript that maybe does what you want it to better, but I
> wouldn't know anything about it.
>
> I was under the impression that tmcodebrowser supported actionscript,
> which might be close to what you want, but I couldn't find it in
> the .ctags.tmcodebrowser format.
>
> Haris
>
>
On Nov 30, 2005, at 3:54 PM, Jamal Johnson wrote:
> i've taken a look and to be honest i'm terrible with regexp's and
> could use some help. i'm trying to define a way to see objects in a
> certain format in my JS files:
>
> var CustomObject = Class.create();
> CustomObject.prototype = Object.extend( (new ViewObject()), {
> member1 : true,
> member2 : "someString",
> member3 : "anotherString",
>
> someFunction : function(){
> //doSomething
> },
>
> someOtherFunction : function(){
>
> }
> };
>
> so then in the tmCodeBrowser i'd see something like:
> Objects
> - CustomObject
> - member1
> - member2
> - member3
> - someFunction
> - someOtherFunction etc....
>
> something along those lines anyway. can one of you point me in a
> starting direction for howto setup the .ctags.tmcodebrowser file to
> do this for javascript files?
>
>
Try adding this to .ctags.tmcodebrowser
--langdef=javascript
--langmap=javascript:.js
--regex-javascript=/^(.*).prototype *= *(.*)/-\1/o,object/
--regex-javascript=/^[ \t]*(.*) *: (([^f]*)|(f[^u]*)|(fu[^n]*))[\t]*
$/---var: \1/o,object/
--regex-javascript=/^[ \t]*(.*) *: *function/---fun: \1/o,object/
This might do something close to what you want. Just make sure to not
ask TmCodeBrowser to sort things. With the simple regexp additions,
you cannot recognize things in multiple lines, so there is no way of
grouping the variable and function definitions with a particular
object, this way at least visually they will be close to what you want.
I believe that if one really wants to, one can write a parser and add
it to the ctags source code and recompile, that is provided that Gerd
Knops provides you the source code, or is willing to add the parser
ofr you. I am guessing someone out there has already written a parser
for javascript that maybe does what you want it to better, but I
wouldn't know anything about it.
I was under the impression that tmcodebrowser supported actionscript,
which might be close to what you want, but I couldn't find it in
the .ctags.tmcodebrowser format.
Haris
is there some sort of control over the symbol selector (dropdown on
the lower right in files such as javascript that allow you to 'jump'
to functions)?
> From: Jay Soffian <jay(a)soffian.org>
>
>> Finally, pycheckmate didn't work for me. The first reason had
>> something to do with using a specific Python installation, rather
>> than the environment Python.
>
> Not sure what this is referring to. pycheckmate.py should work fine
> with /usr/bin/python. At least, it does on the systems I've tested
> it on.
>
>> I fixed that, and then the second problem was that the custom
>> popen relied on poll, which wasn't included in the framework
>> Python build.
>
> Yep, that was an oversight and the latest version I sent you uses
> select intead.
>
>> I am using ActiveState's Python2.4, so I got rid of the
>> customization of the standard library class. The general approach
>> I took probably would let you use some of the 2.3 popens too, and
>> get rid of maintaining that extra bit of code.
>
> 2.3.5 doesn't include subprocess otherwise I would have happily
> used it.
>
>> Pycheckmate also wasn't guessing where to find an installed
>> pychecker very well--I guess the intent was that you were supposed
>> to configure the environment variable in TextMate. That seemed
>> unnecessary for the common case of installing via distutils. I
>> fixed that at the start of the attached file--a bit of a hack,
>> maybe, but nicer first-use experience.
>
> I've already fixed this in the latest version I sent you. The
> contributor must have been looking at the previous version.
looks like it was my fault :)
> Please forward this back to the original sender. :-)
>
> j.
Hi. I liked TextMate but it wasn't quite ready for me. I'll check
back in on it in 2006 sometime and see how it's doing then.
In the course of my evaluation, I changed some settings to try and
get closer to what I expected. I gave up when I discovered that the
current approach to code folding (finding code block ends,
specifically) was apparently fundamentally incompatible with Python.
However, I thought some of my changes might be worth reincorporating
in your product. Some of them are arguably preferences, and others
have odd dependencies, but they are at least worth a look.
First, I added an increaseIndent that increases indent on an open
parenthesis:
/* preferences */
{ increaseIndentPattern = '^\s*(class|def|elif|else|except|finally|
for|if|try|while)\b.*:|^.*\(\s*$';
shellVariables = (
{ name = 'TM_COMMENT_START';
value = '# ';
},
{ name = 'TM_COMMENT_END';
value = '';
},
{ name = 'TM_COMMENT_MODE';
value = 'line';
},
);
}
That's pretty standard Python style. I was also curious to see if I
could make a line break inside a parenthesis autoindent to the open
parenthesis, but didn't see a way to do that.
Second, the foldingStartMarker probably should include `if` and
`for`, and maybe even some others...I didn't bother thinking about it
once I got into a seeming dead end with the foldingStopMarker. That
said, here's a little improvement in this part of the parsing.
foldingStartMarker = '^\s*(if|for|def|class)\s+([.a-zA-Z0-9_ b]+)\s*
(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$';
Finally, pycheckmate didn't work for me. The first reason had
something to do with using a specific Python installation, rather
than the environment Python. I fixed that, and then the second
problem was that the custom popen relied on poll, which wasn't
included in the framework Python build. I am using ActiveState's
Python2.4, so I got rid of the customization of the standard library
class. The general approach I took probably would let you use some
of the 2.3 popens too, and get rid of maintaining that extra bit of
code.
Pycheckmate also wasn't guessing where to find an installed pychecker
very well--I guess the intent was that you were supposed to configure
the environment variable in TextMate. That seemed unnecessary for
the common case of installing via distutils. I fixed that at the
start of the attached file--a bit of a hack, maybe, but nicer first-
use experience.
Hope some of that is helpful.
Gary
Hello.
I know the mac isn't really the most popular platform to develop for
windows.
But...
Does anyone here use textMate to develop ASP VB.NET code?
Is there a VisualBasic language module other than the ASP bundle?
Is anyone working on an ASP.NET bundle?
If I made an ASP.NET bundle, would anyone use it?
What are the requirements for submitting a new bundle to the official
deal?
I don't have a lot of time to work on this stuff, but over the past
year i've cobbled together a usable asp.net bundle from the asp
language (as it existed at the time)
I had to modify the HTML language module to get it to work properly.
Recently I just made a copy of my custom HTML for asp.net language
and updated my html bundle to the latest svn checkout so that I could
use it with ruby. (they both use the <% %> syntax for code in html)
I havn't been able to figure out how to overwrite rules properly.
I want to update my asp.net language to use the latest HTML bundle,
but I need to force it to understand my ASP instead of ruby or the
normal asp, without modifying the HTML bundle.
In CSS, you can force importance by using the !important keyword.
I'd like to be able to do something similar with scope definition. I
want to select the ASP VB.net (HTML) language, and it import the
entire HTML bundle & say, import everything in the HTML language,
except, everything within <%%> & <tag runat="server">...</tag> ,
don't let the HTML language mess with that stuff, no matter where it
is in the code.
I havn't gotten any sleep lately, i'm probably blithering
I'm running r790 and can't seem to find the PHPDoc snippets that used
to be included. I know I saw them there last week. Were they
intentionally removed?
Thanks,
Bryce
The symbol list has never worked for me -- nothing ever shows up in
it, whether I'm working in Python, PHP, HTML, Markdown, etc. Same for
the "Go To Symbol" popup. Always empty.
I've tried deleting my preferences file. No change.
I'm running build 790 with a current repository checkout of bundles.
OS X 10.4.3.
Am I missing something obvious?
thanks
pb
--
Paul Bissex
http://e-scribe.com/news/
Northampton MA USA 01061-0847
I'm trying to find a good text editor for editing very large XML
files (40,000 plus lines). I've got BBEdit, but when I saw the code
folding thing that TextMate does I almost bought a copy on the spot.
But I've had trouble getting the tidy to work in TextMate. The
default XML - Tidy command just adds spaces between every single
character in the file.
Does anyone know enough about Tidy to give me some advice about
this? From my reading on the web, I'd need to have a separate
command to do output reflowed xml.
Thanks,
Nick
howdy,
i know there used to be a global default fold level you could set and it was
pulled due to issues. that was a long time ago however. is there a bundle
level default fold level these days? or even a global one again?
thanx...
Hi,
I was looking earlier on at a video some guy did of a VIM macro he'd
written that could turn:
object.method { |x| op( x ) }
into
object.method do |x|
op( x )
end
and back again. At the time I didn't think much of it and now of
course I find myself wanting to do it.
I thought for a few minutes about how you might achieve this in TxMt
and then realised I didn't have the first clue. I tried recording a
macro but of course it would only work for the simple case, as soon as
I did:
object.meth2 { |x,y| op(x,y) }
it broke.
Can this (and/or the inverse) be done with a simple recordable macro?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
@tek theme author:
Why no announcment on the mailing list, and why no credits to yourself?
I also really like the colours, but they're a bit to "bland" to be of
use as a general theme, it'd be cool to see them shifted around a bit
and create a useful theme ... :)
Andreas
hi.
question to Allan - how hard would it be to provide an applet / hook
that gives an option to Edit File In Textmate in the context menu?
sure, there's Open With, but it's suboptimal most of the time and
you're a smart guy so i thought I'd ask.
cheers,
David
> question to Allan - how hard would it be to provide an applet /
> hook that gives an option to Edit File In Textmate in the context
> menu? sure, there's Open With, but it's suboptimal most of the
> time and you're a smart guy so i thought I'd ask.download onmycommand
> and omcedit (google them for links) and make a new context menu
> action:
Name: Open with TxMt
Location: First Level
Execution Mode: Silent
Command: mate __OBJ_PATH__
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Anyone here use or has used TypeIt4Me? I loved the idea while it worked
on my machine, but after 5 minutes it disappeared from my menu bar and
the developer is not responsive. Basically every time you press a space
it scans a list of abbreviations and expands the text if it finds a
match. Is this something I could do in tm with a command?
- Ben
intrigued by its accompanying commit-messages I was curious to try
out the newly surfaced Storehouse plugin from the Themes repository -
however, I must admit, that I can't figure out, how to use and/or
install it.
since it's just displayed as a folder in the finder double clicking
doesn't help and dragging it onto TM just opens it as a project (but
without a README etc.)
anybody care to enlighten me/the list on this matter? thanks!
curious in Berlin,
tom
Easy one...
When I copy and paste code from my Agile Rails PDF file, the
indentation gets totally lost and looks like this:
===========================
<h1>Display Cart</h1>
<table>
<%
for item in @items
product = item.product
-%>
<tr>
<td><%= item.quantity %></td>
<td><%= h(product.title) %></td>
<td align="right"><%= item.unit_price %></td>
<td align="right"><%= item.unit_price * item.quantity %></td>
</tr>
<% end -%>
</table>
===========================
Is there an easy way to indent my code? I tried using tidy but it
likes to convert my special chars into HTML entities which ruins my
Ruby code.
Any solution?
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
I think the clipboard managing in TM is the best I've seen, I'd love
to have a simmilar thing system wide. The closest I've found is KoolClip
http://kudang.com/koolclip/welcome.html
which as far as I can tell is actually freeware.
Any other tips?
Andreas
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: [TxMt] wanker alert
From: blalor(a)bravo5.org;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: [TxMt] wanker alert
From: blalor(a)bravo5.org;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: textmate-bounces(a)lists.macromates.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: jeroen(a)je-ju.net;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: jeroen(a)je-ju.net;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: blalor(a)bravo5.org;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: domenico.carbotta(a)fastwebnet.it;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: domenico.carbotta(a)fastwebnet.it;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: blalor(a)bravo5.org;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: matt2(a)makalumedia.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: matt2(a)makalumedia.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: paul.bissex(a)gmail.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: textmate-bounces(a)lists.macromates.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] wanker alert
From: paul.bissex(a)gmail.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject:
From: textmate-bounces(a)lists.macromates.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] Ditch the drawer
From: cfeldmann(a)gmail.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] Ditch the drawer
From: cfeldmann(a)gmail.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] Ditch the drawer
From: cdevroe(a)theubergeeks.net;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] Ditch the drawer
From: ed(a)westernfreight.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject:
From: textmate-bounces(a)lists.macromates.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] Ditch the drawer
From: cdevroe(a)theubergeeks.net;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] Ditch the drawer
From: ed(a)westernfreight.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
Hi.
wondering if I'm missing something, or else how I'd go about this.
in vim / emacs one can specify a 'repeat count' for input, so i could
easily insert 80 '-'s by typing (in vim) 80i-<esc>
which is far less boring than holding the key down, and maps well to
instances where a more complex repeated sequence is needed.
can we do something like this in TM, as a built-in ? I mean in the
general sense, though if there are commands to 'underline words' etc
I'm still interested in those.
cheers,
David
> I can add it to the default bundle, if this is of
> general use.
Please do :)
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi.
When using a construct:
x = case x
when expr1
...
when expr2
...
else
...
end
I find that TxMt does not correctly indent after the CR after "case x"
and then de-dents after the first "when" so that:
x = case x
when...
becomes:
x = case x
when expr1
However it correctly indents when not assigning from case so that:
case x
when...
becomes:
case x
when expr1
Which seems like a bug.
M
--
Matt Mower :: http://matt.blogs.it/
I think the draw is okay. Saying that Edmundo's mock looks nice but
it's just fussing if you ask me (which you didn't :D).
I didn't make the switch to SubEthaEdit from BBEdit because it didn't
have a project draw. BBEdit v8 had a project draw that cost me more
to upgrade than Textmate cost me to buy outright.
Go Textmate and it's Draw! Infact BBEdit from memory didn't have
heriachical listings either. But that part of my memory is a bit
vauge. The pain! The pain (of developing in 3 colour syntax
highlighting).
Howdy,
I'm evaluating build r790 and chose to create the "mate" link in
~/Applications, which is already in my path when I open Terminal.app.
However, TextMate somehow requested admin privileges; I _cancelled_ and
I got back an error message: "Creating the link “/bin/mate” failed with
the following reason: Permission denied".
Am I expecting the wrong thing?
Thanks,
--
Luís Bruno
I've got PC USB keyboard connected to Mac Mini.
Using Ukelele I've remapped Context-Menu key to act as Delete (&x7f;). It
works in all applications except TextMate, which keeps opening context
menu (offering various web searches) when I press that key. Other remapped
keys work in TextMate fine.
Is that a bug/feature? Can it be fixed/disabled?
--
regards, porneL
Hi,
I noticed that the mate CL tool has a -r --recent option to add the
file to the Open Recent menu but this doesn't seem to work for me.
Am I doing something wrong? Also I would say that this should be the
default but it isn't a big deal since I can just alias mate as mate -r.
Thanks,
Jason
> Heh, I suppose I'm somewhat demanding then, even coming close to
> the mouse would be a showstopper for me.
> I used triggers though and got it all working nicely with that,
> however, it does not paste after being selected. Not even if I
> double-click the mouse. What happens is that the item gets pushed
> up to first place in the clipboard, you then manually have to paste
> it in.
> And now I have probably spent more time talking about this than
> I'll ever gain even by having the behaviour I want :)
>
> anyways, despite it's "shortcomings", this is the best clipboard
> manager I've seen (or rather, best to my tastes)
>
> Andreas
Butler <http://www.petermaurer.de/butler/> is an excellent launcher
similar to Quicksilver, and has a clipboard manager mapped to ctrl-
alt-v which shows the last 7 clipboard entries, any of which can be
pasted by pressing the corresponding number. This seems to be more
kind to the keyboard-fanatical.
(& I highly recommend Butler overall: extremely customizable, fast
and unobtrusive. Beats the hell out of using Spotlight for opening
apps, preferences, a terminal window, etc.)
Nate.
---------------------
CLIXEL Design & Coding -- http://clixel.com/
BRAINFAG Comics -- http://brainfag.com/
Hi,
I'm not sure there's anything to be done about this but I figured I
would ask anyway.
I'm using Fugu to manage a remote site via SFTP and have configured it
to invoke TextMate as my editor. This makes it quite easy to edit
files on the remote site.
However the unintended consequence is that, every time I switch away
from TxMt, it saves the remote file which is, quite often, a work in
progress.
I'm not sure there is any sense in which TxMt is aware that it is
editing a file that is being edited from a remote site but, in case
there is, would it be possible to control whether auto-save is
activated for such files?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
Are there any plans to ditch the drawer? I wouldn't mind the file
list working like Mail, iTunes, iPhoto or most of the newer apps
coming out lately. I don't think the Drawer works, especially for
large hierarchies and 12-inch screens - both of which I am plagued with.
Thanks,
Colin D. Devroe
I'm trying to get the Template functionality working. I have authored
a template, but when I use the New from Template... menu item, I get
the file name 'untitled', which is not what I want to use in my file.
I see that if I have a project, I can choose a template to use, but
the list is different to the one in New from Template..., and I
cannot choose my newly created template.
Is this functionality useable, or is it still in a state of flux? Am
I missing something?
Drew
---------------------------------------------------------
Drew McCormack
www.maniacalextent.com
Can anyone out there with superpowers in writing shell script help with the
following? Id like to write a command that can locate the currently selected
word as a file within the project (assuming the word is the name of a class
or some such thing) and open that file. Now I know what you¹re all saying,
just copy the selection and paste it into the ³Go To file...² window, I just
thought this might be, you know, fractionally quicker, add up all those
extra clicks and key presses and over the course of a day I might save, oh,
10 seconds or so. ;-)
I just know someone out there can do this, but the more I stare at
combinations of locate, grep, perl and whatnot the more I can feel my sanity
ebb away.
Go on, you know you want to.
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi,
I just noticed that my syntax highlighting seems a bit messed up.
I've attached a screenshot, you can see that the "def" isn't getting
the keyword style but, by a process of switching themes about,
appears to be getting the entity style.
I also attached screenshots of the ctrl+shift+p output for the def &
end statement to show what TxMt thinks they are.
I updated to 790 this morning, don't remember seeing this before then.
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
>> [...] Also a command to take the selected text, add ".inspect # =>"
>> and push it to the clipboard.
>
> Have a look at Ruby -> Execute Line as Ruby (ctrl-shift E, which is
> unscoped, so it works in all contexts).
>
> It will execute the current line or selection via Ruby and insert the
> result (either using .to_s or .inspect, depending on the result type).
Yeah, but the script I linked to actually runs the program and gives
you (almost) real-time debugging while you're editing the file. Do you
have any good ruby one-liners that you use a lot?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
I like the fact that I can have several folders each representing a
"project" within a TM Project.
However, it becomes quite confusing when editing files in a Project
set up this way.
- TurbogearsProject(group)
- Admin/
-admin/
-controllers.py
-static/
.
.
-Website/
-website/
-controllers.py
-static/
.
.
When editing the file "controllers.py" from folder Admin/admin/ and
Website/website/controllers.py there's no distinction between the two
files in the editor.
The list in cmd-T shows the files as "controllers.py - website" and
"controllers.py - admin". Is there any way I can get the same in the
file tab in the editor?
regards
/rune
---------------------------------------------------------------------
Behind the firewall, nobody can hear you scream...
Hi all,
Have downloaded the demo (1.1b17 (769)) and currently evaluate
TextMate (vs bbedit/textwrangler) against my needs. It looks like the
editor I was missing :)
Indeed I work on the support of the CLAIRE language which have
special construct that are often impossible to describe with other
editor's syntax facilities. The way TM handles languages/scopes and
other language inclusion is the best I've ever seen. I could create a
CLAIRE bundle that, for the first time, handles correctly the syntax
of CLAIRE (and, trust me, I'm not a regex guru...)!
My question is about a language description design. I tried (but
failed) to design the grammar such anything that is a valid CLAIRE
construct is described by a specific pattern and anything else falls
into the scope of 'invalid.illegal.something'. For instance, in
CLAIRE, a variable scope is introduced with a 'let' construct :
let x := 1, y := 2 in (x + y) // valid
let x := 1, y := 2 *BAD* in (x + y) // invalid : *BAD* illegal
The rule that describe the 'let' construct would look like :
let <#var-def-list> in <#any>
Which can't be described with a begin/end pattern, unless I can
reference a repository rule from whitin the begin/end pattern. Can we
do that ?
Is there a way to acheive this ?
Sylvain
I posted a bug report about TextMate basically not handling Japanese
well at all but am wondering if anyone has had problems working with
other double-byte languages or Arabic?
Cheers
Kyle
--
mobile web gear | pukupi.com | 34°40'n 135°30'e
I may simply be confused, but I just had a global find/replace
operation appear to go rather haywire on me and thought I'd ask about
it. The following values were entered in the dialog...
Find: <cfif Session.InAdminGroup IS "Yes">
Replace: <cfif Session.InAdminGroup>
"Ignore case" was checked and "Regular expression" was unchecked.
Here's what I ended up with in each replaced instance...
<cfif NOT Session.In<cfif Session.InAdminGroup>>
That doesn't seem quite right to me.
--
Jack Baty
Fusionary Media - http://www.fusionary.com
Found this util today:
http://eigenclass.org/hiki.rb?
Enhanced+xmp+code+evaluation+and+annotation
You feed it code and it puts the output in comments, i.e.
a = 5
a # =>
would return
a = 5
a # => 5
I set up a command to save and run this filter to replace the document
and bound it to F10. Also a command to take the selected text, add
".inspect # =>" and push it to the clipboard.
Anyone interested?
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 9997-0593
ben(a)incomumdesign.com
http://www.incomumdesign.com
How do I add my precious KID templates to the dropdown menu in the
dialog resulting from cmd-N?
(Yes, they are present and working in the File->New from template
menu item)
regards
/rune
"Never attribute to malice what can be adequately explained by
incompetence"
Like most on this list, I love TextMate.
There are tons of useful features in it, and I keep finding new ones every date.
I just stumbled on the Cmd-T file-find the other day, in fact. I just
learned that my peeve about columnar selection was based on my
ignorance of the fact that you can toggle to columnar by hitting
Option after starting the selection. Every day, I'm pleasantly
surprised by a new feature.
However (and you knew that was coming...), the help files are a bit
sparse, and the discoverability of some features is pretty bad.
(By the way, the documentation wiki[1] seems to be down right now.)
Screencasts are all the rage now, and I was thinking of making little
30 second - 1 minute demo vids of some useful but hidden TextMate
features.
The problem with that idea is that it's not just the screen people
will be interested in, but the keyboard interaction.
I'd like to provide a keyboard overlay on the demo vids, which would
show which keys are being depressed to get the specific features to
activate.
Does anyone know how to do this?
I'm familiar with vnc2swf and wink. I'm also considering buying
Camtasia and/or Snapz Pro.
I guess a "stay-on-top" utility could be used and just be captured
along with the subject app usage.
Any pointers appreciated...
[1]
http://macromates.com:3000/read/book/1
I didn't see this in the list, but that doesn't mean it's not there.
It would be cool to have a back/forward functionality like in a
browser. For example, I often use cmd-T to find a file to look up the
signature of a class method or whatever. Then I want to go back to
the last file I was viewing. If I have more than 8 files open, the
tabs become useless. I could use cmd-W to close the file, but often
times I have three files that I'm working on at one time and it would
be nice to be able to just quickly switch between them in the order
in which i've looked at them.
Browser-ifying the tab system is a pet request of mine that I hope to
someday see realized. TextMate is an amazing editor - thank you
again, Allan.
Ed
> Did you try with tm-file:// ? The following works for me:
>
> echo "<meta http-equiv='Refresh' content='0; URL=tm-file://localhost$
> {HOME}/Sites/index.html'>"
>
> And alternate way to redirect is btw via the html “support library”
> found in the TM_SUPPORT_PATH (first library “includes” (sources) the
> library):
>
> . "${TM_SUPPORT_PATH}/lib/html.sh"
> redirect "tm-file://localhost${HOME}/Sites/index.html"
Neither of these are working for me:
. "${TM_SUPPORT_PATH}/lib/html.sh"
redirect "tm-file://localhost${TM_PROJECT_DIRECTORY}/public/index.html"
echo "<meta http-equiv='Refresh' content='0;
URL=tm-file://localhost${TM_PROJECT_DIRECTORY}/public/index.html'>"
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 9997-0593
ben(a)incomumdesign.com
http://www.incomumdesign.com
I apologize if this has been brought up before.
Cutting and pasting text when in Python mode always pastes the text
four spaces (my indent width) to far to the right .
When pasting inside a <class>, text is pasted 8 spaces to far to the
right measured from the current cursor position.
<cmd>[ shift left does not work on my norwegian key map. (<cmd>]
shift right does.)
As you might imagine these two together is quite annoying ;)
regards
/rune
"Never attribute to malice what can be adequately explained by
incompetence"
Greetings,
I am using Subversion on OSX and I seem to be having trouble using TM
as the editor for commit messages. When I set the environment
variable SVN_EDITOR to mate, it pulls up the editor whenever I do an
svn commit, but when I save the file and type continue, it does the
commit with no message.
Is this a known bug or am I doing something incorrectly?
-Aaron
I've only been using TextMate a day, like it, but am struggling to
find resources on $TM_DROPPED_FILE, etc.
In HTML, I would like links created with $TM_DROPPED_FILE to use
absolute not relative paths to the project root and I would
appreciate any info on how to do this.
Cheers
Kyle
On Nov 22, 2005, at 7:08 PM, Urbanose wrote:
> Maybe a "/" between "localhost" and "$TM_PROJECT_DIRECTORY" ?
>
> Le 22 nov. 05 à 21:04, Benjamin Jackson a écrit :
>> I'd like to do a simple preview command to keep an html file in live
>> update as I edit css. This doesn't seem to work:
>>
>> echo "<meta http-equiv='Refresh' content='0;
>> URL=file://localhost$TM_PROJECT_DIRECTORY/public/index.html'>"
>>
>> What am I missing here?
>> ___________________
>> Ben Jackson
>> Diretor de Desenvolvimento
>>
>> ben(a)incomumdesign.com
>> http://www.incomumdesign.com
>>
>>
>> ______________________________________________________________________
>> 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
>
>
>
>
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 9997-0593
ben(a)incomumdesign.com
http://www.incomumdesign.com
I'd like to do a simple preview command to keep an html file in live
update as I edit css. This doesn't seem to work:
echo "<meta http-equiv='Refresh' content='0;
URL=file://localhost$TM_PROJECT_DIRECTORY/public/index.html'>"
What am I missing here?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
While searching for "drawer" on the tm user list via google (
http://www.google.com/search?&q=drawer+site%3Acomox.textdrive.com%2Fpiperma…
) I found that the mailing list archive isn't being indexed by google,
since May 2005.
I thought I'd just link to prior discussions, but finding them will be tough..
The domain doesn't have robots.txt, so I'm not sure what's going on there...
Allan,
I have a question about the list of templates available under the "New
File.." dialog (the one you get when inside a project), the ordering of
available templates seems a little bizarre and I was wondering whether there
is any underlying logic there I could take advantage of to get my templates
to always appear at the top. In a bundle I have made 7 or so templates and
one of them always sites at the bottom of the list, whereas the others site
at the top, they are for Actionscript so each one starts with AS2.. As the
name, I would have thought they would site together but for some reason they
don't. The other thing that I wondered if could be changed was the items
actually in that list, it doesn't seem to be affected by which bundles are
active whereas the "New From Template" menu command is. Got any plans for
this dialog or improvements in the pipeline?
Regards
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
I know find in project is in for a revamp some time in the future, but
in the mean time, if I run it on a project with many many many files or
with a few really really big files, it goes spinning beachball of death
for eternity and killing is the only thing left to do -- which kinda
sucks when you have unsaved changes.
Is there anything that can be done about this?
Hi. I've just started using Mutt as my primary mail reader on my Mac, and
I'm having trouble relearning my emacs key bindings from my Linux days
(Ctrl/Alt aren't quite the same!). So I thought I'd give TM a try as my
default email editor.
Is there any support for editing emails out there? I'm specifically
wondering whether it's possible to turn the following on when opening in
some kind of "email mode":
* highlighting of quoted text (i.e. different colour)
* automatically entering line wrap mode
* knowledge of how to wrap quoted paragraphs (i.e. with ">" at the
start of each line)
Thanks,
Graham
--
Graham Ashton
Hi,
I'm trying to make my TextMate behave more or less in the same way as
emacs (I understand that Meta-x-u and similar keybindings may become
available in the future..)
Until then, I've created the DefaultKeyBinding.dict file (and It
works) but I can't for the life of me find how to issue a "undo"
command.
I really "need" to bind $^- to "undo".
I also "need" to rebind (rather than unlearn) crtl-s to save and
possibly disalble ctrl-x in the process. Can anyone help me with this?
btw. TextMate is great. Bought a license to day.
/rune
"Never attribute to malice what can be adequately explained by
incompetence"
This may have been answered before and I didn't see it. Is there a
reason that the snippets variables/values (not sure what they're
called) can only go to 9?
Mike Stickel
Screenflicker Developments
www.screenflicker.com
p: 403-923-7667
e: mike(a)screenflicker.com
> Why doesn't it come close?
>
> The only advantage I see with the separate window is keyboard support
> for the results, and probably easier to setup the capture stuff, but
> for that I could add a bash function or similar, that one would pipe
> the output through.
That's exactly it, it seems purpose designed for debugging, all the extra
fields for specifying line number, file name and so on, I think its very
clever, getting the same result in the html option is a lot more effort,
plus there's the keyboard navigation thing. I think its one of your best
inventions, is there any harm in leaving it in?
Chris Jenkins
Working in Python I clicked on the 'Tools widget' (is there an
official nomenclature for that? I mean the one with the gears icon
that gives access to the commands and macros...) and it opened up
positioned at the 'Python' submenu.
"That's cool!" I thought, but a quick test with a Textile document
showed that it was just a coincidence pertaining to my particular
list of enabled languages.
So: why no add it as a feature:
when activating the 'tools widget' it will focus on the submenu of
the currently active language.
just my $0.02
best regards,
tom
Hola,
if I well remember, in a previous version of TextMate there was an
html command, in HTML bundle, to tidy the page collecting in she
<style<</style> section all the attributes of the tags into body. i.e.:
<p align="center">hello</p> become <style ...> text-align:
center; </style> in the Head section, and in the bode we have
<p>hello</p>
How can I find this command to insert in the bundle?
Many thanks and regards!
Salvo M.
In looking at the Markdown bundle I came up with the idea that a
dropped HTML file (or snippet) could be run through html2text.py or
similar to generate Markdown formatting. I went to add a new drop
command, but realized I don't know what the approved way to add the
script is -- if there is one. I wil refrain from adding it as a
template file :)
pb
--
Paul Bissex
http://e-scribe.com/news/
Northampton MA USA 01061-0847
Hi,
[novice question alert!]
I would like to tell TextMate that if it encounters a heredoc with the
name 'END_SQL' in my perl script, the text within the heredoc is sql.
For example:
my $rows = $dbh->selectall_arrayref( <<END_SQL );
SELECT name, city
FROM people
WHERE country='nl'
END_SQL
>From
<http://macromates.com/blog/archives/2005/07/06/introduction-to-scopes>,
I get the impression that something like that is possible. But I cannot
get it to work. Can someone hint me in the right direction?
It seems TextMate is the only application I know where it is hard to
find a solution because there are /too many/ information resources:
mailing list, wiki, manual, irc and weblog. ;-)
Thanks
http://nslog.com/textmate
--
__ ____
/ / / __/ Brian Lalor "If you still have gas, you're
not lost."
/ _ \/__ \ blalor(a)bravo5.org -- Jacques Strappe
/_.__/____/ http://bravo5.org/
Hi,
While applescript is not how TextMate does its magic internally, it would be
nice to have some document creation tools, as this is how apps work together
in workflows on Mac.
I'd like to see the following script which works in SubEthaEdit work for
TM.
(*
View Source in SEE
Chris Biagini <http://assortedgeekery.com>
updated Jan. 5, 2005
*)
tell application "Safari"
set mySource to the source of document 1 as string
set myName to name of document 1 as string
end tell
tell application "SubEthaEdit"
make new text document at end of documents with properties {mode:"HTML",
text:mySource, name:"Source of: " & myName}
activate
end tell
Dr Timothy Bates <tim.bates(a)ed.ac.uk>
Reader in Differential Psychology
University of Edinburgh
Dept Psychology
PPLS
7 George Square
EH8 9JZ
wk +44 131 651 1945
FAX +44 131 651 3461
home +44 131 332 3543
Mob +44 790 386 4573
Easy on the flames, boys:
http://www.theappleblog.com/2005/11/18/textmate/
It's a weak review, not even scratching the surface of TM's
extensibility and ease of use, but that kind of review could take
weeks to write. :-)
--
Brian Lalor / blalor(a)bravo5.org
Stewardess: We know you have your choice of bankrupt carriers
and we
appreciate you choosing us.
I just noticed something strange. I turned off Soft Wrap, and then
set Wrap Column to use Window Frame. I had show right margin
indicator turned on in preferences. What I get is this:
I guess it's a drawing problem...
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
Does anyone know if it is possible to use forms in the html output window
when running a command?, Id like to use a form to take certain certain user
input and pass those values to a perl script hidden inside the language
bundle and get the result from that perl script back inside the same html
window. This is for a help lookup facility that asks the user to type a
search term in and select various scoping options. I can do it using
osascript to open an Applescript ask dialog, but I wanted something that was
more integrated with TM.
Many thanks to anyone who can suggest something,
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hello All,
I'm new to TextMate, moving over from BBEdit. I'm still exploring the
application, but have already purchased a license, as it really
"feels right."
First question relates to something I frequently did in BBEdit --
"Process All Lines", where I might prefix and suffix each line in a
selection. Is there a way to do this in TextMate?
(I've seen there's an "Edit Each Line in Selection" menu item in
TextMate, but I can't figure out what it does, or how to use it.)
Many thanks in advance.
--
Matt Henderson
matt.henderson(a)gmail.com (personal) | matt(a)makalumedia.com (work)
http://matt.makalumedia.com
What I'm looking for is the ability to select the contents of a quoted
attribute (HTML for instance), preferably with a keyboard shortcut.
About 75% of my workday is spent editing existing HTML documents, and
this ability would be a HUGE time-, and wrist-, saver. I hate having to
go to the mouse and drag select every time I need to change the href
contents of an A tag.
If this ability already exists, either in TextMate, or even native to
OS X (I'm a newcomer), please, please, please tell me where to find it.
If it doesn't, please, I beg you, add it to this AMAZING piece of
software.
Thank you.
Warren L. Parsons
This isn't quite what I'm talking about.
I want to be able to place my cursor inside *any* given quote pair, hit
a keyboard shortcut, and have everything between the quotes selected. I
just gave "href" as an example.
>
> command-F
> Find : (?<=href\=")[^"]+
> Regular expression
> Next
>
> Manually replace the address selected
>
> command-G to select next match